TEXT 83
Untitled By pronto on 13th August 2024 01:53:00 AM
  1. this works:
  2.  
  3. pronto@ifconfig:~/ifpro$ /home/pronto/ifpro/ifproenv/bin/gunicorn --workers 3 --bind unix:ifpro.sock -m 007 wsgi:app
  4. [2024-08-13 01:45:11 +0000] [46447] [INFO] Starting gunicorn 23.0.0
  5. [2024-08-13 01:45:11 +0000] [46447] [INFO] Listening at: unix:ifpro.sock (46447)
  6. [2024-08-13 01:45:11 +0000] [46447] [INFO] Using worker: sync
  7. [2024-08-13 01:45:11 +0000] [46448] [INFO] Booting worker with pid: 46448
  8. [2024-08-13 01:45:11 +0000] [46449] [INFO] Booting worker with pid: 46449
  9. [2024-08-13 01:45:11 +0000] [46450] [INFO] Booting worker with pid: 46450
  10.  
  11. ------------------------------
  12.  
  13. ; systemd service
  14.  
  15. [Unit]
  16. Description=wtf ifconfig pro pysite
  17. After=network.target
  18. [Service]
  19. User=pronto
  20. Group=www-data
  21. WorkingDirectory=/home/pronto/ifpro
  22. Environment="PATH=/home/pronto/ifpro/ifproenv/bin"
  23. ExecStart="/home/pronto/ifpro/ifproenv/bin/gunicorn --workers 3 --bind unix:ifpro.sock -m 007 wsgi:app"
  24.  
  25. [Install]
  26. WantedBy=multi-user.target
  27.  
  28.  
  29.  
  30. ------------------------------
  31. × ifpro.service - wtf ifconfig pro pysite
  32.      Loaded: loaded (/etc/systemd/system/ifpro.service; disabled; preset: enabled)
  33.      Active: failed (Result: exit-code) since Tue 2024-08-13 01:47:57 UTC; 1s ago
  34.    Duration: 3ms
  35.     Process: 46556 ExecStart=/home/pronto/ifpro/ifproenv/bin/gunicorn --workers 3 --bind unix:ifpro.sock -m 007 wsgi:app (code=exited, status=203/EXEC)
  36.    Main PID: 46556 (code=exited, status=203/EXEC)
  37.         CPU: 621us
  38.  
  39. Aug 13 01:47:57 ifconfig systemd[1]: Started ifpro.service - wtf ifconfig pro pysite.
  40. Aug 13 01:47:57 ifconfig (wsgi:app)[46556]: ifpro.service: Failed to locate executable /home/pronto/ifpro/ifproenv/bin/gunicorn --workers 3 --bind unix:ifpro.sock -m 007 wsgi:app: No such file or directory
  41. Aug 13 01:47:57 ifconfig (wsgi:app)[46556]: ifpro.service: Failed at step EXEC spawning /home/pronto/ifpro/ifproenv/bin/gunicorn --workers 3 --bind unix:ifpro.sock -m 007 wsgi:app: No such file or directory
  42. Aug 13 01:47:57 ifconfig systemd[1]: ifpro.service: Main process exited, code=exited, status=203/EXEC
  43. Aug 13 01:47:57 ifconfig systemd[1]: ifpro.service: Failed with result 'exit-code'.
  44.  
  45.  
  46. ----------------------------------------
  47.  
  48.  
  49.  
  50. pronto@ifconfig:~/ifpro$ file /home/pronto/ifpro/ifproenv/bin
  51. /home/pronto/ifpro/ifproenv/bin: directory
  52. pronto@ifconfig:~/ifpro$ file /home/pronto/ifpro/ifproenv/bin/gunicorn
  53. /home/pronto/ifpro/ifproenv/bin/gunicorn: Python script, ASCII text executable

ifconfig paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.