Supervisord is running as root

2020-12-10 11:24:43,231 CRIT Supervisor running as root (no user in config file)
Getting this from docker logs bluecherry, in looking over the Dockerfile, I see this:
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
So should a user be specified in supervisord.conf:

[supervisord]
nodaemon=true

[program:apache2]
command=/bin/bash -c “source /etc/apache2/envvars && exec /usr/sbin/apache2 -DFOREGROUND”

[program:rsyslog]
command=service rsyslog start
autostart=true
autorestart=true
startretries=3

[program:bc]
environment=LD_LIBRARY_PATH=/usr/lib/bluecherry
command=/usr/sbin/bc-server -u bluecherry -g bluecherry
autostart=true
autorestart=true
startretries=3

[program:permissions]
command=chown bluecherry:bluecherry /recordings

The web page loads, no errors, other than those above.
I don’t yet have a camera attached, arriving Tuesday, just looking things over.
Thanks

Can you try adding this to the docker file in the supervisord section? I don’t have time right now to test it:

user=nobody

sure I can try, would need to rebuild again, correct?

Yep, that should resolve the issue.

ok, put that line in supervisord.conf, and also tried Dockerfile.
On first build, it found the db, but not /bluecherry.conf, deleted the db, second build failed, changed user=bluecherry, build failed, deleted user=nobody, build suceeded, the errors persist

here’s a pastebin:


remove user=nobody from supervisord.conf, build completes

ok, cleaned the git pull, started from scratch, with
[supervisord]
nodaemon=true
user=nobody

[program:apache2]
command=/bin/bash -c “source /etc/apache2/envvars && exec /usr/sbin/apache2 -DFOREGROUND”

[program:rsyslog]
command=service rsyslog start
autostart=true
autorestart=true
startretries=3

[program:bc]
environment=LD_LIBRARY_PATH=/usr/lib/bluecherry
command=/usr/sbin/bc-server -u bluecherry -g bluecherry
autostart=true
autorestart=true
startretries=3

[program:permissions]
command=chown bluecherry:bluecherry /recordings

Different error, here’s the pastebin: