Get 502 Bad Gateways after reboot

Hi.

I'm a new beginner and sorry if I ask some stupid questions.

I have a python script that installed by another person. Everything works normal. Today I want to change root password and shutdown linode. After reboot I start get 502 bad gateways error.

Here is the error log

2018/02/21 06:59:38 [error] 3414#3414: *35 connect() failed (111: Connection refused) while connecting to upstream, client: 85.132.36.118, server: 69.164.202.246, request: "GET / HTTP/1.1", upstream: "http://69.164.202.246:8000/", host: "69.164.202.246"
2018/02/21 06:59:39 [error] 3414#3414: *35 connect() failed (111: Connection refused) while connecting to upstream, client: 85.132.36.118, server: 69.164.202.246, request: "GET /favicon.ico HTTP/1.1", upstream: "http://69.164.202.246:8000/favicon.ico", host: "69.164.202.246", referrer: "http://69.164.202.246/"
2018/02/21 09:54:05 [error] 3414#3414: *39 connect() failed (111: Connection refused) while connecting to upstream, client: 85.132.36.118, server: 69.164.202.246, request: "GET / HTTP/1.1", upstream: "http://69.164.202.246:8000/", host: "69.164.202.246"
2018/02/21 09:54:06 [error] 3414#3414: *39 connect() failed (111: Connection refused) while connecting to upstream, client: 85.132.36.118, server: 69.164.202.246, request: "GET /favicon.ico HTTP/1.1", upstream: "http://69.164.202.246:8000/favicon.ico", host: "69.164.202.246", referrer: "http://69.164.202.246/"
2018/02/21 10:02:14 [error] 3414#3414: *45 connect() failed (111: Connection refused) while connecting to upstream, client: 62.210.9.89, server: 69.164.202.246, request: "GET / HTTP/1.1", upstream: "http://69.164.202.246:8000/", host: "69.164.202.246"
2018/02/21 10:06:07 [error] 3414#3414: *47 connect() failed (111: Connection refused) while connecting to upstream, client: 212.83.178.105, server: 69.164.202.246, request: "GET / HTTP/1.1", upstream: "http://69.164.202.246:8000/", host: "69.164.202.246"
2018/02/21 11:34:39 [error] 3414#3414: *49 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.93.78, server: box.mgtuts.com, request: "GET / HTTP/1.1", upstream: "http://69.164.202.246:8000/", host: "box.mgtuts.com"
2018/02/21 11:34:40 [error] 3414#3414: *51 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.93.78, server: box.mgtuts.com, request: "GET / HTTP/1.1", upstream: "http://69.164.202.246:8000/", host: "box.mgtuts.com"
2018/02/21 11:34:41 [error] 3414#3414: *53 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.92.157, server: box.mgtuts.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://69.164.202.246:8000/favicon.ico", host: "box.mgtuts.com", referrer: "https://box.mgtuts.com/"
2018/02/21 13:44:35 [error] 3414#3414: *55 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.93.78, server: box.mgtuts.com, request: "GET / HTTP/1.1", upstream: "http://69.164.202.246:8000/", host: "box.mgtuts.com"
2018/02/21 13:44:35 [error] 3414#3414: *57 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.93.78, server: box.mgtuts.com, request: "GET / HTTP/1.1", upstream: "http://69.164.202.246:8000/", host: "box.mgtuts.com"
2018/02/21 13:44:37 [error] 3414#3414: *59 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.92.157, server: box.mgtuts.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://69.164.202.246:8000/favicon.ico", host: "box.mgtuts.com", referrer: "https://box.mgtuts.com/"
2018/02/21 13:45:14 [error] 3414#3414: *61 connect() failed (111: Connection refused) while connecting to upstream, client: 45.79.164.212, server: 69.164.202.246, request: "HEAD / HTTP/1.1", upstream: "http://69.164.202.246:8000/", host: "69.164.202.246"
2018/02/21 13:56:45 [warn] 4557#4557: conflicting server name "69.164.202.246" on 0.0.0.0:80, ignored
2018/02/21 13:56:45 [warn] 4557#4557: conflicting server name "69.164.202.246" on [::]:80, ignored
2018/02/21 13:56:45 [warn] 4559#4559: conflicting server name "69.164.202.246" on 0.0.0.0:80, ignored
2018/02/21 13:56:45 [warn] 4559#4559: conflicting server name "69.164.202.246" on [::]:80, ignored
2018/02/21 14:45:58 [error] 4565#4565: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 5.197.147.111, server: 69.164.202.246, request: "GET / HTTP/1.1", upstream: "http://69.164.202.246:8000/", host: "69.164.202.246"
2018/02/21 14:46:00 [error] 4565#4565: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 5.197.147.111, server: 69.164.202.246, request: "GET /favicon.ico HTTP/1.1", upstream: "http://69.164.202.246:8000/favicon.ico", host: "69.164.202.246", referrer: "http://69.164.202.246/"
2018/02/21 14:53:52 [warn] 4688#4688: conflicting server name "69.164.202.246" on 0.0.0.0:80, ignored
2018/02/21 14:53:52 [warn] 4688#4688: conflicting server name "69.164.202.246" on [::]:80, ignored
2018/02/21 14:53:52 [warn] 4691#4691: conflicting server name "69.164.202.246" on 0.0.0.0:80, ignored
2018/02/21 14:53:52 [warn] 4691#4691: conflicting server name "69.164.202.246" on [::]:80, ignored

Can anyone help me understand what is the problem here?

Regards

1 Reply

69.164.202.246 isn't serving requests on port 8000. Assuming that IP is your linode, then perhaps there's a service that's supposed to listen on port 8000 that didn't automatically start after you rebooted the server.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct