Cron instead of Scheduler

45 views
Skip to first unread message

Gaël Princivalle

unread,
Nov 20, 2020, 2:51:32 PM11/20/20
to web2py-users
Hi.

I'm still having troubles to start a worker on Opalstack for my schedulers.
I've this error:
----------
[myuser web2pyfolder]$ nohup env/bin/python web2py/web2py.py -K myapp &
[1] 21916
[ myuser web2pyfolder ]$ nohup: ignoring input and appending output to ‘nohup.out’

[1]+  Exit 1                  nohup env/bin/python web2py/web2py.py -K myapp
-----------------

If I don't put the & at the end it sometimes runs, sometimes not.

I've tried to use the older Web2py version that I was using on Webfaction and the error still the same.

Is there another way to start a worker?

Or can I run some functions of my application with cron?

Thanks, regards.

AGRogers

unread,
Nov 24, 2020, 2:04:19 AM11/24/20
to web...@googlegroups.com
Have you tried running it as sudo? 
What does it say in the nohup.out file? Maybe a permissions issue?

___________________________
www.TenOutOfTen.org



--
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/bff7c13e-7766-4d78-973a-1a075352c61cn%40googlegroups.com.

Gaël Princivalle

unread,
Nov 24, 2020, 3:02:38 AM11/24/20
to web2py-users
Thank you for your reply.

The problem was in the psycop2 library.
Running these commands now I'm able to run the web2py workers:

mv env env.old2
virtualenv --python $HOME/opt/bin/python2.7 env
source env/bin/activate
pip2 install uwsgi psycopg2-binary http://effbot.org/downloads/Imaging-1.1.7.tar.gz
./stop
sleep 3
./start

AGRogers

unread,
Nov 24, 2020, 10:27:32 PM11/24/20
to web...@googlegroups.com
Glad to hear you got it sorted.


___________________________
www.TenOutOfTen.org


Reply all
Reply to author
Forward
0 new messages