celery problems

1,135 views
Skip to first unread message

Dima

unread,
Sep 2, 2014, 2:43:21 PM9/2/14
to django...@googlegroups.com
The question is not really about Django, but can someone faced. Trying to run on the server -
/manage.py celeryd -l INFO

output
Running a worker with superuser privileges when the
worker accepts messages serialized
with pickle is a very bad idea!


If you really want to continue then you have to set the C_FORCE_ROOT
environment variable
(but please think about this before you do).


User information: uid=0 euid=0 gid=0 egid=0

And of course when you run through the same supervisor. How to run without root access? 

Dima

unread,
Sep 2, 2014, 3:06:24 PM9/2/14
to django...@googlegroups.com
tried to run as a different user, now -
IOError: [Errno 13] Permission denied: '/home/linguion/log/supervisord/supervisord.log'
help(


вторник, 2 сентября 2014 г., 21:43:21 UTC+3 пользователь Dima написал:

Tom Evans

unread,
Sep 4, 2014, 9:38:55 AM9/4/14
to django...@googlegroups.com
Don't run celery as root, run it as another user. supervisord has an
option "user" to specify which user to run as, so that supervisord can
be run as root and switch to the correct user.

Whatever user you choose will need to have access to the files and
resources that your celeryd requires, eg your log file will need to be
owned by the user you intend to run it as, and be in a directory that
is readable and writable by that user. It should probably not be using
anything inside a regular users home directory...

Cheers

Tom
Reply all
Reply to author
Forward
0 new messages