익명 22:46

Supervisor (Debian Strech) - couldn't chdir to Folder:EACCES

Supervisor (Debian Strech) - couldn't chdir to Folder:EACCES

I am trying to use supervisor in order to launch gunicorn with a Flask (python3) project. Unfortunately, the project is not starting:

root@play003:/home/debian# supervisorctl status 
play                       FATAL     Exited too quickly (process log may have details)

Detail:

root@play003:/home/debian#cat /var/log/supervisor/play.log
supervisor: couldn't chdir to /var/www/Play : EACCES
supervisor: child process was not spawned

Everything seems fine on the folder ownership :

root@play003:~$ ls -alh /var/www/
total 12K
drwxr-xr-x  3 root       root       4.0K Sep 10 15:12 .
drwxr-xr-x 12 root       root       4.0K Sep 10 14:47 ..
drwxrwx---  7 play       play       4.0K Sep 10 16:42 Play

My configuration :

root@play003:~$ cat /etc/supervisor/conf.d/froggyplay.conf 
[program:play]
user = play
directory = /var/www/Play
command = /var/www/Play/env/bin/gunicorn -b 0.0.0.0:5000 play:application

priority = 900
autostart = true
autorestart = true
stopsignal = TERM

redirect_stderr = true
stdout_logfile = /var/log/supervisor/%(program_name)s.log
stderr_logfile = /var/log/supervisor/%(program_name)s.log

I have tested two versions of supervisor but I am currently in 3.3.5-1 (3.3.1-1 before that).

Do you have any idea why my project isn't starting ?



Top Answer/Comment:

I have found something interesting.

In order to progress, I have change the rights on the folders

root@play003:/var# chmod 755 www/
root@play003:/var/www# chmod 770 Play/
상단 광고의 [X] 버튼을 누르면 내용이 보입니다