pb after a virtual procedure

10 views
Skip to first unread message

maurice Libes

unread,
Jun 21, 2021, 6:20:03 AM6/21/21
to istSOS
 hello
we have made a wrong operation which had for consequences that we can not see anymore  the procedures for a given service

we have created a "virtual procedure" which code is probably wrong
and now we can not see  anymore the "normal" procedure of the same service

the error message is :

Can't instantiate abstract class istvp with abstract methods execute
Status response: OK
Resource: waGetlist
Method: GET
Path /istsos/services/htmnet/procedures/operations/getlist

thanks if you can give us a solution which allows to see again the procedures

Maurice

Milan Antonovic

unread,
Jun 21, 2021, 12:06:58 PM6/21/21
to istSOS
Hi Maurice,
Please take a look at the apache error log (/var/log/apache2/error.log), there you should be able to see what's wrong with your virtual procedure.
Just open a terminal and launch this command:

tail -f /var/log/apache2/error.log

Then on another terminal window restart apache:

sudo service apache2 restart

You should be able to see the python error.

Otherwise you can remove the misconfigured virtual procedure by hand. First make a backup of the postgresql database and the /services folder.
Then connect to your postgresql db (via psql or pgadmin or else) and delete the virtual procedure from the "SCHEMA.procedures" table and
delete the files virtual procedure folder (/INSTALLATION_PATH/istsos/services/sos/virtual/PROCEDURE_NAME).

Best regards

Milan

--
You received this message because you are subscribed to the Google Groups "istSOS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to istsos+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/istsos/aec63687-19e7-4aad-8cfc-5e074a93d16dn%40googlegroups.com.

maurice Libes

unread,
Jun 22, 2021, 10:52:42 AM6/22/21
to istSOS
thanks to your answer Milan

here is the error log, when I click on the "procedures" menu of the service which has the virtual procedure
maybe it tells something to you ?

I will try to remove the misconfigured virtual procedure by hand as you suggest

thanks

Maurice

[Tue Jun 22 16:49:26.498860 2021] [wsgi:error] [pid 5588:tid 140608077219584] [client 172.20.133.47:49644] Traceback (most recent call last):, referer: http://istsos.osupytheas.fr/istsos/admin/
[Tue Jun 22 16:49:26.498961 2021] [wsgi:error] [pid 5588:tid 140608077219584] [client 172.20.133.47:49644]   File "/usr/share/istsos/application_walib.py", line 102, in executeWa, referer: http://istsos.osupytheas.fr/istsos/admin/
[Tue Jun 22 16:49:26.498969 2021] [wsgi:error] [pid 5588:tid 140608077219584] [client 172.20.133.47:49644]     op.executeGet(), referer: http://istsos.osupytheas.fr/istsos/admin/
[Tue Jun 22 16:49:26.498977 2021] [wsgi:error] [pid 5588:tid 140608077219584] [client 172.20.133.47:49644]   File "/usr/share/istsos/walib/istsos/services/procedures/procedures.py", line 795, in executeGet, referer: http://istsos.osupytheas.fr/istsos/admin/
[Tue Jun 22 16:49:26.499005 2021] [wsgi:error] [pid 5588:tid 140608077219584] [client 172.20.133.47:49644]     servicedb, self.servicename), referer: http://istsos.osupytheas.fr/istsos/admin/
[Tue Jun 22 16:49:26.499013 2021] [wsgi:error] [pid 5588:tid 140608077219584] [client 172.20.133.47:49644]   File "/usr/share/istsos/walib/utils.py", line 463, in getProcedureNamesList, referer: http://istsos.osupytheas.fr/istsos/admin/
[Tue Jun 22 16:49:26.499044 2021] [wsgi:error] [pid 5588:tid 140608077219584] [client 172.20.133.47:49644]     vp = vproc.istvp(), referer: http://istsos.osupytheas.fr/istsos/admin/
[Tue Jun 22 16:49:26.499062 2021] [wsgi:error] [pid 5588:tid 140608077219584] [client 172.20.133.47:49644] TypeError: Can't instantiate abstract class istvp with abstract methods execute, referer: http://istsos.osupytheas.fr/istsos/admin/
[Tue Jun 22 16:49:26.499110 2021] [wsgi:error] [pid 5588:tid 140608077219584] [client 172.20.133.47:49644] None, referer: http://istsos.osupytheas.fr/istsos/admin/


maurice Libes

unread,
Jun 22, 2021, 5:59:00 PM6/22/21
to istSOS
ok thanks I have deleted the virtual procedure from the "SCHEMA.procedures" table
and that solved the problem

istsos=# delete from htmnet.procedures where name_prc='Virtual_PortCros' ;
DELETE 1

It remains to be seen what caused the error when we created a virtual procedure

thanks
Maurice

Le lundi 21 juin 2021 à 18:06:58 UTC+2, Milan A. a écrit :
Reply all
Reply to author
Forward
0 new messages