Supervisor / supervisor

Supervisor process control system for Unix (supervisord)
http://supervisord.org
Other
8.53k stars 1.25k forks source link

Program section that defined directory with `~` raises: `couldn't chdir to ~/coding/jolin: ENOENT` #1655

Open waketzheng opened 3 months ago

waketzheng commented 3 months ago

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

numprocs=1 autostart=true startsecs=10 autorestart=true startretried=3 redirect_stderr=true stdout_logfile_maxbytes=20MB stdout_logfile_backups=20

-  main.py
```py
# poetry add fastapi fastapi-cli
from fastapi import FastAPI

app = FastAPI()

@app.get('/')
def root():
    return 'homepage'