Unable to start service with nohup due to 'INFO spawnerr: unknown error making dispatchers for 'app_name': EACCES'

后端 未结 5 1012
闹比i
闹比i 2021-02-13 17:44

I\'m trying to start a service with supervisor, but I get an error saying

INFO spawnerr: unknown error making dispatchers for \'app_name\': EACCES

5条回答
  •  迷失自我
    2021-02-13 18:08

    I had the same issue, I recommend doing the following

    1. Add user who runs the service. user=youruser

    2. moving your log to a supervisor dir

    from:

    logfile=/tmp/supervisord.log
    

    to:

    logfile=/var/log/supervisor/supervisord.log
    

    The same goes to you pid file

    pidfile=/tmp/supervisord.pid >> pidfile=/var/run/supervisor/supervisord.pid 
    

    Make both dirs

    mkdir /var/run/supervisor/
    
    mkdir /var/log/supervisor/
    

    then change the of the dir with

    chown youuser:youuser -R /var/log/supervisor/
    

    If this dosen't work double check who can write on you log files and pid files.

    ls -l /var/log/supervisor/supervisord.log
    

    If it still dosen't work try updating you supervisor

提交回复
热议问题