lapitsky
@lapitsky
python как хобби

Gunicorn в ubuntu server выдает ошибку?

ввожу sudo systemctl status gunicorn
вывод
● gunicorn.service - gunicorn daemon
Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-04-03 22:37:39 UTC; 17s ago
TriggeredBy: ● gunicorn.socket
Process: 1347 ExecStart=/var/www/repocrm3/repocrm3_env/bin/gunicorn --workers 5 --bind unix:/run/gunicorn.sock ghproj.wsgi:applicati>
Main PID: 1347 (code=exited, status=200/CHDIR)

crm3 systemd[1]: Started gunicorn daemon.
crm3 systemd[1347]: gunicorn.service: Changing to the requested working directory failed: No such file or directory
crm3 systemd[1347]: gunicorn.service: Failed at step CHDIR spawning /var/www/repocrm3/repocrm3_env/bin/gunicorn: No such>

crm3 systemd[1]: gunicorn.service: Main process exited, code=exited, status=200/CHDIR
crm3 systemd[1]: gunicorn.service: Failed with result 'exit-code'.


я так понял у меня что-то с правами на папку /var/www/repocrm3/repocrm3_env/bin/gunicorn?

вывод cat /etc/systemd/system/gunicorn.service
[Unit]
Description=gunicorn daemon
Requires=gunicorn.socket
After=network.target

[Service]
User=root
WorkingDirectory=/var/www/repocrm3/RepositoryCRM3/
ExecStart=/var/www/repocrm3/repocrm3_env/bin/gunicorn --workers 5 --bind unix:/run/gunicorn.sock ghproj.wsgi:application

--bind unix:/home/user/myproject/myproject.sock myproject.wsgi:application

[Install]
WantedBy=multi-user.target
  • Вопрос задан
  • 651 просмотр
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы