On Tue, Sep 2, 2014 at 7:43 PM, Dima <paliy...@gmail.com> wrote:
> 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?
>

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1KukNH_ULtX%3D7jsuWLBU47vYeqxhank3C8Hq7xzE6h9Yg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to