Gunicorn. Служба Executive путь указывает каталог без VirtualENV - PullRequest
0 голосов
/ 05 ноября 2019

У меня есть настройки на digital ocean, и я пытаюсь развернуть приложение django через nginx и gunicorn, но до сих пор у меня были проблемы с gunicorn и я получил правильное подключение.

Это также безлюбая виртуальная среда.

Может кто-нибудь помочь, любая помощь будет высоко ценится.

Failed to start gunicorn.service: Unit gunicorn.service is not loaded properly: Exec format error.
See system logs and 'systemctl status gunicorn.service' for details.
root@ubuntu-vpc-do-moon:~# systemctl status gunicorn.service
● gunicorn.service - gunicorn service
   Loaded: error (Reason: Exec format error)
   Active: failed (Result: exit-code) since Tue 2019-11-05 10:25:52 UTC; 4h 12min ago
 Main PID: 13071 (code=exited, status=203/EXEC)

Nov 05 10:25:52 ubuntu-vpc-do-moon systemd[1]: Started gunicorn service.
Nov 05 10:25:52 ubuntu-vpc-do-moon systemd[1]: gunicorn.service: Main process exited, code=exited, status=203/EXEC
Nov 05 10:25:52 ubuntu-vpc-do-moon systemd[1]: gunicorn.service: Failed with result 'exit-code'.
Nov 05 12:23:59 ubuntu-vpc-do-moon systemd[1]: /etc/systemd/system/gunicorn.service:9: Executable path specifies a directory: /home/bridgetsarah/voyage/bridgetsarah/ --access-logfile 
Nov 05 14:30:23 ubuntu-vpc-do-moon systemd[1]: /etc/systemd/system/gunicorn.service:9: Executable path specifies a directory: /home/bridgetsarah/voyage/bridgetsarah/ --access-logfile 
Nov 05 14:37:04 ubuntu-vpc-do-moon systemd[1]: /etc/systemd/system/gunicorn.service:9: Executable path specifies a directory: /home/bridgetsarah/voyage/bridgetsarah/ --access-logfile 
lines 1-11/11 (END)
root@ubuntu-vpc-do-moon:~# curl –unix-socket /run/gunicorn/socket http
curl: (3) Failed to convert –unix-socket to ACE; string contains a disallowed character

curl: (3) <url> malformed
curl: (6) Could not resolve host: http
root@ubuntu-vpc-do-moon:~# 
...