Skip to content

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

Closed
@waketzheng

Description

@waketzheng

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions