If you turned off gunicorn, will you still get the 502 error? If yes,
the orginal error it means your nginx cannot connect to your gunicorn.

Have you tested your app on dev server, i.e: `python manage.py runserver` ?

On Sat, Apr 11, 2020 at 11:53 PM Jagtar Singh Lakhyan <
jagtar.lakhe...@gmail.com> wrote:

> Im trying to deploy django app using nginx & gunicorn but its showing error
>
> sudo nginx -t
>
> nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
>
> nginx: configuration file /etc/nginx/nginx.conf test is successful
>
>
> sudo systemctl status gunicorn.service
>
> gunicorn.service - gunicorn service
>
>    Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor
> preset:
>
>    Active: *active (running)* since Sat 2020-04-11 21:19:19 IST; 11s ago
>
>  Main PID: 16326 (gunicorn)
>
>     Tasks: 4 (limit: 1689)
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b1031a40-e33c-4bca-8764-13849c75968e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/b1031a40-e33c-4bca-8764-13849c75968e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Regards,

Aldian Fazrihady
http://aldianfazrihady.com

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN7EoAaeBOPBq0NbvJYYV1n%3D7ZZkKLjcvYvVE1Aiw9ero8wS%2BA%40mail.gmail.com.

Reply via email to