2

I changed user for supervisor from root to non-root called dev.

All is good, supervisor is running as dev:

me@server$ ps aux | grep supervisor
dev  25230  0.2  1.0  60404 21392 ?        Ss   21:42   0:00 /usr/bin/python /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf

...but logs shows this message:

Nov 15 21:45:00 server supervisord[25473]: 2019-11-15 21:45:00,880 CRIT Set uid to user 1003

This is uid for user dev:

me@server$ id dev
uid=1003(dev) gid=1000(ww) groups=1000(ww)

What does it mean? How should I change uid when user with this uid is already running supervisor?

1

According to docs, you have to start supervised as root, and let her drop privileges.

Current version logs the user change like Set uid to user dev succeeded

Probably you are using some older version, if you upgrade for current, this misleading log message will disappear. For now, you can safely ignore it.

Here is the github commit for the mentioned change/fix

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.