Am attempting to deploy a Django app on Digital Ocean’s Droplet.
I have gunicorn, nginx, postgresql and my domain ip connected.
However, am unable to load the site when I visit the domain.
Running – sudo tail -f /var/log/gunicorn_supervisor.log
(venv) root@pmkattorneys-droplet:/var/www/pmkattorneys# sudo tail -f /var/log/gunicorn_supervisor.log
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named '—'
[2024-08-07 07:50:23 +0000] [396636] [INFO] Worker exiting (pid: 396636)
[2024-08-07 07:50:23 +0000] [396635] [ERROR] Worker (pid:396636) exited with code 3
[2024-08-07 07:50:23 +0000] [396635] [ERROR] Shutting down: Master
[2024-08-07 07:50:23 +0000] [396635] [ERROR] Reason: Worker failed to boot.
nginx error
2024/08/07 07:50:53 [crit] 381423#381423: *355 connect() to unix:/var/www/pmkattorneys/web.sock failed (2: No such file or directory) while connecting to upstream, client: 194.28.224.213, server: pmkattorneys.com, request: "GET /.env HTTP/1.1", upstream: "http://unix:/var/www/pmkattorneys/web.sock:/.env", host: "104.131.178.60"
Anyone else has expereienced this ? Your help is highly appreciated
I tried downgrading my oython ftom 3.12 to 3.6 and back to 3.12.
Deleted the virtual env and recreated it.
Sheesh Abby is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.