Closed
Description
Error detail
After running sudo supervisorctl update
, got error like this:
supervisor: couldn't chdir to ~/coding/jolin: ENOENT
supervisor: child process was not spawned
supervisor: couldn't chdir to ~/coding/jolin: ENOENT
supervisor: child process was not spawned
supervisor: couldn't chdir to ~/coding/jolin: ENOENT
supervisor: child process was not spawned
supervisor: couldn't chdir to ~/coding/jolin: ENOENT
supervisor: child process was not spawned
How reproduce
- jolin.conf
[program:jolin]
command=poetry run fastapi run --workers=1 --port=9170
user=wenping
directory=~/coding/%(program_name)s
stdout_logfile=/home/wenping/coding/%(program_name)s/supervisor.log
numprocs=1
autostart=true
startsecs=10
autorestart=true
startretried=3
redirect_stderr=true
stdout_logfile_maxbytes=20MB
stdout_logfile_backups=20
- main.py
# poetry add fastapi fastapi-cli
from fastapi import FastAPI
app = FastAPI()
@app.get('/')
def root():
return 'homepage'
Metadata
Metadata
Assignees
Labels
No labels