On 21/01/20 15:10, Manuele Pesenti wrote:

So I guess I have to try using the second web2py (R-2.18 under python3 virtualenv) instance through mod_proxy... right?

So I'm trying to run a web2py (R-2.18.3) instance for deploy purposes using apache mod_proxy.

First I want to install the necessary daemon... I'm following the documentation[1] but without success, it seams the daemon is not running after starting it. How can I log errors? I cannot find them, this are the only information I have found:

   # service web2py218 stop
   # service web2py218 start
   # service web2py218 status
   ● web2py218.service - LSB: web2py initscript
       Loaded: loaded (/etc/init.d/web2py218; generated)
       Active: active (exited) since Tue 2020-01-21 16:20:46 CET; 3s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 31480 ExecStop=/etc/init.d/web2py218 stop (code=exited,
   status=1/FAILURE)
      Process: 31514 ExecStart=/etc/init.d/web2py218 start
   (code=exited, status=0/SUCCESS)

   Jan 21 16:20:46 Ubuntu-1804-bionic-64-nextcloud systemd[1]: Starting
   LSB: web2py initscript...
   Jan 21 16:20:46 Ubuntu-1804-bionic-64-nextcloud web2py218[31514]:  *
   Starting Web Framework web2py218
   Jan 21 16:20:46 Ubuntu-1804-bionic-64-nextcloud web2py218[31514]:   
   ...done.
   Jan 21 16:20:46 Ubuntu-1804-bionic-64-nextcloud systemd[1]: Started
   LSB: web2py initscript.

When I try to access the web2py instance through ssh tunneling it says:

   channel 3: open failed: connect failed: Connection refused

Looking in syslog I read:

   # tail /var/log/syslog
   Jan 21 16:20:41 Ubuntu-1804-bionic-64-nextcloud web2py218[31480]:  *
   Stopping Web Framework web2py218
   Jan 21 16:20:41 Ubuntu-1804-bionic-64-nextcloud web2py218[31480]:
   start-stop-daemon: warning: failed to kill 31269: No such process
   Jan 21 16:20:41 Ubuntu-1804-bionic-64-nextcloud web2py218[31480]:   
   ...done.
   Jan 21 16:20:41 Ubuntu-1804-bionic-64-nextcloud systemd[1]:
   web2py218.service: Control process exited, code=exited status=1
   Jan 21 16:20:41 Ubuntu-1804-bionic-64-nextcloud systemd[1]:
   web2py218.service: Failed with result 'exit-code'.
   Jan 21 16:20:41 Ubuntu-1804-bionic-64-nextcloud systemd[1]: Stopped
   LSB: web2py initscript.
   Jan 21 16:20:46 Ubuntu-1804-bionic-64-nextcloud systemd[1]: Starting
   LSB: web2py initscript...
   Jan 21 16:20:46 Ubuntu-1804-bionic-64-nextcloud web2py218[31514]:  *
   Starting Web Framework web2py218
   Jan 21 16:20:46 Ubuntu-1804-bionic-64-nextcloud web2py218[31514]:   
   ...done.
   Jan 21 16:20:46 Ubuntu-1804-bionic-64-nextcloud systemd[1]: Started
   LSB: web2py initscript.

This is my script version: http://paste.debian.net/hidden/e3917c71/

Thank you for any help.

Best regards

    Manuele

[1] http://web2py.com/books/default/chapter/29/13/deployment-recipes#Start-as-Linux-daemon

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/21c4ff49-b8a3-f41f-0891-b60ba855af00%40gmail.com.

Reply via email to