Cuando trato de verificar el estado de gunicorn, aparece el siguiente error:
gunicorn.service - gunicorn daemon Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2017-04-22 19:23:39 UTC; 10min ago Main PID: 7295 (code=exited, status=3) Apr 22 19:23:39 vp-first gunicorn[7295]: return util.import_app(self.app_uri) Apr 22 19:23:39 vp-first gunicorn[7295]: File "/home/tony/vp/vpenv/lib/python3.5/site-packages/guni Apr 22 19:23:39 vp-first gunicorn[7295]: __import__(module) Apr 22 19:23:39 vp-first gunicorn[7295]: ImportError: No module named 'vp.wsgi' Apr 22 19:23:39 vp-first gunicorn[7295]: [2017-04-22 19:23:39 +0000] [7300] [INFO] Worker exiting (pi Apr 22 19:23:39 vp-first gunicorn[7295]: [2017-04-22 19:23:39 +0000] [7295] [INFO] Shutting down: Mas Apr 22 19:23:39 vp-first gunicorn[7295]: [2017-04-22 19:23:39 +0000] [7295] [INFO] Reason: Worker fai Apr 22 19:23:39 vp-first systemd[1]: gunicorn.service: Main process exited, code=exited, status=3/NOT Apr 22 19:23:39 vp-first systemd[1]: gunicorn.service: Unit entered failed state. Apr 22 19:23:39 vp-first systemd[1]: gunicorn.service: Failed with result 'exit-code'.Dice ImportError: ningún módulo llamado 'vp.wsgi'
Cuando edito mi archivo de configuración de gunicorn, aparece lo siguiente:
[Unit] Description=gunicorn daemon After=network.target [Service] User=tony Group=www-data WorkingDirectory=/home/tony/vp/vp ExecStart=/home/tony/vp/vpenv/bin/gunicorn --workers 3 --bind unix:/home/tony/vp/vp/vp.sock vp.wsgi:$ [Install] WantedBy=multi-user.targetDebo señalar que mi archivo wsgi.py se encuentra:
~/vp/vp/vp/vp/wsgi.pyMi virtualenv se encuentra en:
~/vp/vpenvMi configuración se encuentra en:
~/vp/vp/vp/config/settings/production.pySupongo que hay algo mal con mi ruta, pero he intentado muchas cosas y no funcionan. ¿Alguna sugerencia?
¡Gracias de antemano!
PD: no puedo encontrar ningún archivo .sock