점프 투 장고 gunicorn 오류
mysite.service를 이렇게 작성했는데 자꾸 오류가 나옵니다.
점프 투 장고 4-10 그대로 따라했는데 이러네요 ㅠㅠ
[Unit]
Description=gunicorn daemon
After=network.target
[Service]
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/projects/mysite
EnvironmentFile=/home/ubuntu/venvs/mysite.env
ExecStart=/home/ubuntu/venvs/mysite/bin/gunicorn \
--workers 2 \
--bind unix:/tmp/gunicorn.sock \
config.wsgi:application
[Install]
WantedBy=multi-user.target
sudo systemctl start mysite.service하고
sudo systemctl status mysite.service를 쳤을 때 이런 오류가 생깁니다
● mysite.service - gunicorn daemon
Loaded: loaded (/etc/systemd/system/mysite.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2022-07-07 20:21:13 KST; 8min ago
Main PID: 4422 (code=exited, status=2)
Jul 07 20:21:12 ip-172-26-4-149 systemd[1]: Started gunicorn daemon.
Jul 07 20:21:12 ip-172-26-4-149 gunicorn[4422]: usage: gunicorn [OPTIONS] [APP_MODULE]
Jul 07 20:21:12 ip-172-26-4-149 gunicorn[4422]: gunicorn: error: No application module specified.
Jul 07 20:21:13 ip-172-26-4-149 systemd[1]: mysite.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 07 20:21:13 ip-172-26-4-149 systemd[1]: mysite.service: Failed with result 'exit-code'.
Jul 07 20:29:45 ip-172-26-4-149 systemd[1]: /etc/systemd/system/mysite.service:21: Missing '=', ignoring line.
Jul 07 20:29:45 ip-172-26-4-149 systemd[1]: /etc/systemd/system/mysite.service:23: Missing '=', ignoring line.
Jul 07 20:29:45 ip-172-26-4-149 systemd[1]: /etc/systemd/system/mysite.service:24: Missing '=', ignoring line.
code=exited, status=2 이건 무슨 오류며
또한 Missing = ignoring line은 인코딩 문제인가요?
그리고 책 그대로 unix설정도 해줬는데 tmp파일에
snap.lxd
systemd-private-65c291e245c04f6ca52d7bb70852eb4f-systemd-resolved.service-7QhI6f
systemd-private-65c291e245c04f6ca52d7bb70852eb4f-systemd-logind.service-0k8Ydg systemd-private-65c291e245c04f6ca52d7bb70852eb4f-systemd-timesyncd.service-ktO2Pf
```
소켓파일이 없습니다.
kim73916 님 1158
M 2022년 7월 8일 6:16 오후