What to look for when unable to connect message

I am running several sites on a with Linode 768 server. I am getting an unable to connect message on my web browser. Can someone give me some ideas as to what might be causing the issues and ideas on what to look for to diagnose the issues.

Thanks

10 Replies

Firewall(logs), webserver logs (unless you get a timeout), messages/syslog, stuff like that… And of course check with a service like downornot, to see if it's not a problem on your end.

You're sure the services are enabled? You can check with netstat if they're listening.

The ip address and domain would be handy too then the lovely folks on this forum could do some tests.

This is the domain. Tests would be appreciated.

www.nygiantstweets.com

The site loads fine for me.

Can you locally even ping the site? Does it resolve the IP? Did you try a different browser, and/or PC?

It's probably somewhere in your local network, since the site works fine from here.

Yep works fine here try running mtr and posting the results (see http://library.linode.com/linux-tools/mtr)

I have since restarted nginx. When I get the issue again I will see if I can run some of the tests you recommend and then paste the output to the board. Not sure if I can leave the site down to wait for a response from the board.

Thanks

Definitely has something to do with nginx shutting down for some reason. The nginx daemon was stopped. I am not sure what is causing this. Any suggestions on how to debug this.

basically logged into my server then did ps axf | grep nginx

to see that there was no nginx running. Then restarted now nginx is running.

Check your nginx error logs normally in /var/log/nginx/error.log

This time something is killing both my nginx and monit processes. Could it be a memory issue when the server spikes here is my free-m

process printout

total used free shared buffers cached

Mem: 747 452 294 0 9 92

-/+ buffers/cache: 350 397

Swap: 255 1 254

do I need to upgrade?

please let me know if there are any other commands that I should run to print out here. I don't think it is a networking issue. I think this

happens when googlebot visits my sites but not absolutely sure. Any help would be appreciated.

I have installed monit to restart nginx if it goes down for the time being will see if that works.

Both my nginx and monit are going down here is a current printout of my top command.

Mem: 765280k total, 693668k used, 71612k free, 6516k buffers

Swap: 262140k total, 3544k used, 258596k free, 157136k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

23162 root 20 0 9200 5468 1928 S 0 0.7 0:01.61 ruby

23241 nobody 20 0 111m 54m 4120 S 0 7.3 0:03.02 ruby

23269 nobody 20 0 125m 68m 4188 S 0 9.1 0:04.95 ruby

23272 nobody 20 0 111m 55m 4604 S 0 7.4 0:14.86 ruby

23289 nobody 20 0 112m 55m 3736 S 0 7.4 0:01.84 ruby

23317 nobody 20 0 108m 52m 3956 S 0 7.0 0:01.85 ruby

23383 nobody 20 0 114m 59m 4584 S 0 7.9 0:16.73 ruby

23415 nobody 20 0 106m 50m 4604 S 0 6.8 0:13.90 ruby

23432 nobody 20 0 109m 52m 4000 S 0 7.0 0:01.35 ruby

1 root 20 0 2732 512 260 S 0 0.1 0:02.55 init

2 root 20 0 0 0 0 S 0 0.0 0:00.00 kthreadd

3 root 20 0 0 0 0 S 0 0.0 0:13.78 ksoftirqd/0

4 root 20 0 0 0 0 S 0 0.0 0:14.00 kworker/0:0

5 root 20 0 0 0 0 S 0 0.0 0:00.07 kworker/u:0

6 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/0

7 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/1

8 root 20 0 0 0 0 S 0 0.0 0:00.00 kworker/1:0

9 root 20 0 0 0 0 S 0 0.0 0:04.29 ksoftirqd/1

10 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/2

11 root 20 0 0 0 0 S 0 0.0 0:00.00 kworker/2:0

12 root 20 0 0 0 0 S 0 0.0 0:03.92 ksoftirqd/2

13 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/3

14 root 20 0 0 0 0 S 0 0.0 0:00.00 kworker/3:0

15 root 20 0 0 0 0 S 0 0.0 0:03.76 ksoftirqd/3

16 root 0 -20 0 0 0 S 0 0.0 0:00.00 cpuset

17 root 0 -20 0 0 0 S 0 0.0 0:00.00 khelper

18 root 20 0 0 0 0 S 0 0.0 0:00.00 kworker/u:1

22 root 20 0 0 0 0 S 0 0.0 0:00.00 xenwatch

23 root 20 0 0 0 0 S 0 0.0 0:00.00 xenbus

149 root 20 0 0 0 0 S 0 0.0 0:01.03 sync_supers

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