Running it without nohup I can see this error. How can I debug that? This app was running first on Web2py 2.14.16 and now it runs on the 2.20.4 version.
~/apps/web2py_folder2/env/bin/python ~/apps/web2py_folder2/web2py/web2py.py -K myapp2 Traceback (most recent call last): File "apps/web2py_folder2/web2py/web2py.py", line 41, in <module> import gluon.widget File "/home/user/apps/web2py_folder2/web2py/gluon/widget.py", line 27, in <module> from gluon.shell import die, run, test File "/home/user/apps/web2py_folder2/web2py/gluon/shell.py", line 285 exec(read_pyc(pycfile), _env) SyntaxError: unqualified exec is not allowed in function 'run' it contains a nested function with free variables Il giorno mercoledì 11 novembre 2020 alle 09:41:56 UTC+1 Gaël Princivalle ha scritto: > Ok the problem was that the python command must be the one of the env. > So this works: > nohup ~/apps/web2py_folder1/env/bin/python > ~/apps/web2py_folder1/web2py/web2py.py -K myapp1 & > > However I've another another web2py in another folder with another app and > it don't works: > nohup ~/apps/web2py_folder2/env/bin/python > ~/apps/web2py_folder2/web2py/web2py.py -K myapp2 & > [1] 29291 > $ nohup: ignoring input and appending output to ‘nohup.out’ > [1]+ Exit 1 nohup env/bin/python web2py/web2py.py -K > myapp2 > > What a headache... > Il giorno martedì 10 novembre 2020 alle 12:55:35 UTC+1 Ramos ha scritto: > >> it worked for me. >> >> Em ter., 10 de nov. de 2020 às 09:25, Gaël Princivalle < >> gaelpri...@gmail.com> escreveu: >> >>> >>> Hello. >>> >>> Did someone tried to use the scheduler on Opalstack? >>> >>> I was used to run this command to start a worker in Webfaction but in >>> Opalstack it don't works: >>> nohup python web2py.py -K applicationname & >>> >>> I've tried in also in the virtualenv no way. >>> >>> Someone knows how I can do it? >>> >>> Thanks. >>> >>> -- >>> 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+un...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/web2py/58d806b1-48e1-473b-82d4-5e2aaa0c8002n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/web2py/58d806b1-48e1-473b-82d4-5e2aaa0c8002n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- 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/1d083dd4-2957-4fb1-b34e-26b0c0b0f2b2n%40googlegroups.com.