How do I fix error 1078#0? Bad Gateway nginx/1.4.6 (Ubuntu)?
Hello guys and girls,
I am getting an error 1078#0 while trying to get my website up and going. Let me give you a chronology of events plus an error log:
I first brought Putty up and went to access my server. I got the Django “It Worked!” message.
After that I went to upgrade my Django and it updated to 1.11. i ran, in the Putty command, “service gunicorn restart”.
Got 502 Bad Gateway
I unistalled Django and was back to version 1.6.1. Refreshed. “Internal Server Error”
So i “pip install django==1.9” and checked version to ensure i was running Django 1.9. “service gunicorn restart”. Restarted. Refreshed. 502 Bad Gateway Error nginx/1.4.6 (Ubuntu).
Here are the errors I am getting when I run “tail -f /var/log/nginx/error.log”: [error] 1078#0: *263 connect() failed (111: Connection refused) while connecting to upstream, client: XX.XXX.XXX.XX, server: _, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:9000/”, host: “XXX.XXX.X.XX”
Can someone please tell me what is going on here and why? It is very frustrating and getting this website up is mission critical as I have just filed my company and am ready to begin operation.