Server Setup Error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Server Setup Error

Soumen Khatua
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

--
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 [hidden email].
To post to this group, send email to [hidden email].
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/CAPUw6WZFXvvW9BvVtxN4rMb5VEBGByRoPmajGOg-Eq0MBx%2Bf9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Djano rest api

Robert Wahoo
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?

--
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 [hidden email].
To post to this group, send email to [hidden email].
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 | Threaded
Open this post in threaded view
|

Re: Djano rest api

aishtiaque
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. 

On Wed, Jun 12, 2019 at 10:23 AM Rob W <[hidden email]> wrote:
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?

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
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/CAKizqR59sgYxW75gdNyCz7c0SCLSX5B1DHZj6zEeNQvNsxWnqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.