Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
waketzheng opened this issue Aug 29, 2024 · 0 comments · May be fixed by #1656
Open

Comments

@waketzheng
Copy link

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant