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

supervisior not auto create stdout_logfile #1573

Closed
BlackSinny opened this issue Feb 9, 2023 · 2 comments
Closed

supervisior not auto create stdout_logfile #1573

BlackSinny opened this issue Feb 9, 2023 · 2 comments
Labels

Comments

@BlackSinny
Copy link

my supervisor conf file like this

[program:xxxsrv]
directory=/data/projects/xxxsrv/
command=/data/projects/xxxsrv/xxxsrv -config=/data/projects/xxxsrv/qcloud.toml
stdout_logfile=/data/log/xxxsrv/xxxsrv.log
stdout_logfile_backups=50
redirect_stderr=true
autostart=true
autorestart=true

when i run command

supervisorctl restart xxxsrv

server running successfully,but nothing my log file ** /data/log/xxxsrv/xxxsrv.log **

when i touch file,everything is ok

vim /data/log/xxxsrv/xxxsrv.log

my question

Should I have to manually create log files every time I start a new project?

when i mkdir log dir,file will created autoly

@mnaberez
Copy link
Member

mnaberez commented Feb 9, 2023

when i mkdir log dir,file will created autoly

Duplicate of #120

@mnaberez mnaberez closed this as completed Feb 9, 2023
@BlackSinny
Copy link
Author

Maybe I wasn't clear enough yesterday, I created the directory before running, but supervisor didn't automatically create log files after the restart

  • this is miss directory error msg
error: <class 'xmlrpclib.Fault'>, <Fault 92: "CANT_REREAD: The directory named as part of the path /data/log/testsrv/testsrv.log does not exist in section 'program:test_srv' (file: '/etc/supervisord.d/test_srv.ini')">: file: /usr/lib64/python2.7/xmlrpclib.py line: 794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants