python - Unable to start service with nohup due to 'INFO spawnerr: unknown error making dispatchers for 'app_name': EACCES' -
i'm trying start service supervisor, error saying
info spawnerr: unknown error making dispatchers 'app_name': eacces
here's supervisord.conf file:
[supervisord] logfile=/tmp/supervisord.log logfile_maxbytes=50mb ; change these depending on how many logs logfile_backups=10 ; want keep loglevel=info pidfile=/tmp/supervisord.pid nodaemon=true minfds=1024 minprocs=200 [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [supervisorctl] serverurl=unix:///tmp/supervisor.sock socket [program:myscript] command= python -u /home/ubuntu/appfolder/app_name.py autostart=true autorestart=unexpected redirect_stderr=true stdout_logfile=/var/log/app_name.log
i had same issue - celery sub program logs being written in logs subfolder under app folder , turns out had set owner www-user
while debugging issue nginx. changed owner of app folder ubuntu (>> whoami
)
sudo chown -r ubuntu:ubuntu /var/www/myapp/
to work.
Comments
Post a Comment