Server Setup Error

21 views
Skip to first unread message

Soumen Khatua

unread,
Jun 12, 2019, 10:16:02 AM6/12/19
to django...@googlegroups.com
Hi Folks,
After run this command:   sudo systemctl status gunicorn

● gunicorn.service - gunicorn daemon
   Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-06-12 14:01:44 UTC; 10min ago
  Process: 20765 ExecStart=/home/sai/myproject/env/bin/gunicorn --access-logfile - --workers 3 --bind unix:/home/sai/myproject/gunicorn.sock clothproject1.wsgi:applica
 Main PID: 20765 (code=exited, status=1/FAILURE)

Jun 12 14:01:44 sai-foundation gunicorn[20765]:     self.stop()
Jun 12 14:01:44 sai-foundation gunicorn[20765]:   File "/home/sai/myproject/env/lib/python3.6/site-packages/gunicorn/arbiter.py", line 393, in stop
Jun 12 14:01:44 sai-foundation gunicorn[20765]:     time.sleep(0.1)
Jun 12 14:01:44 sai-foundation gunicorn[20765]:   File "/home/sai/myproject/env/lib/python3.6/site-packages/gunicorn/arbiter.py", line 245, in handle_chld
Jun 12 14:01:44 sai-foundation gunicorn[20765]:     self.reap_workers()
Jun 12 14:01:44 sai-foundation gunicorn[20765]:   File "/home/sai/myproject/env/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
Jun 12 14:01:44 sai-foundation gunicorn[20765]:     raise HaltServer(reason, self.WORKER_BOOT_ERROR)
Jun 12 14:01:44 sai-foundation gunicorn[20765]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
Jun 12 14:01:44 sai-foundation systemd[1]: gunicorn.service: Main process exited, code=exited, status=1/FAILURE
Jun 12 14:01:44 sai-foundation systemd[1]: gunicorn.service: Failed with result 'exit-code'.
lines 1-16/16 (END)



please help me guys if you know this solutions?

Thank You

Regards,
Soumen

Rob W

unread,
Jun 12, 2019, 10:23:24 AM6/12/19
to django...@googlegroups.com
Hi all,

I need to see a django rest api, with proper endpoint design - REST-ish by using paths, HTTP methods, response codes, JSONs, errors returned in JSON,

Anyone have this already completed that I can take a look at?

Ahmed Ishtiaque

unread,
Jun 12, 2019, 10:44:00 AM6/12/19
to django...@googlegroups.com
I think DRF has pretty good examples of API designs, even though I can't point you to a specifically constructed API for you to look at. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/DE361A10-F522-421D-94EC-56473F1D01FA%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages