LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-18-2012, 02:55 AM   #1
Brodi816
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
Server refusing all connections


My server is refusing to establish any connection from any port including ssh. The problem started Saturday, I had the server rebooted but the problem has come up again. I currently have a ticket submitted to get the server rebooted again. I'm using debian 6 and I'm wondering where I should start looking for the problem once my server comes back online.

Last edited by Brodi816; 04-18-2012 at 03:00 AM.
 
Old 04-18-2012, 03:10 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,508

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
do you have outgoing traffic, or it has no network at all?
 
Old 04-18-2012, 04:13 AM   #3
Brodi816
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
There's no traffic at all, any connection made to the server is immediately closed.
 
Old 04-18-2012, 04:17 AM   #4
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,508

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
in /var/log/messages you may find error messages
you need to check the network configuration, but as you told they were not changed at all. it looks like a hw failure.
 
Old 04-18-2012, 03:57 PM   #5
Brodi816
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
So the server was rebooted and now it's not accepting connections and they're just timing out.
Code:
1  DD-WRT (192.168.1.1)  0.376 ms  0.556 ms  0.877 ms
 2  * * *
 3  te-0-1-0-3-sur01.****.pa.pitt.comcast.net (**.**.**.***)  51.093 ms  56.714 ms  62.324 ms
 4  te-0-12-0-2-ar03.lowerpaxton.pa.pitt.comcast.net (69.139.194.57)  67.971 ms  74.273 ms  80.052 ms
 5  te-0-6-0-1-ar03.pittsburgh.pa.pitt.comcast.net (69.139.195.245)  86.266 ms  91.897 ms  97.565 ms
 6  pos-4-15-0-0-cr01.newyork.ny.ibone.comcast.net (68.86.94.189)  103.401 ms  105.129 ms  110.891 ms
 7  tengigabitethernet1-4.ar5.NYC1.gblx.net (64.208.222.57)  116.758 ms  75.296 ms  75.295 ms
 8  HURRICANE-ELECTRIC-LLC.GigabitEthernet3-23.ar2.CHI2.gblx.net (64.208.205.42)  76.225 ms  76.224 ms  75.828 ms
 9  184.105.249.202 (184.105.249.202)  75.762 ms  75.197 ms  75.218 ms
10  * * *

Last edited by Brodi816; 04-18-2012 at 04:09 PM.
 
Old 04-18-2012, 06:27 PM   #6
Brodi816
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I'm connected through kvm right now and the only thing I noticed in the syslog file was:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) QMYSQL: Unable to connect


Could this indicate a socket problem for the server? I'm still going through some of the logs though.

Edit:
iptraf also shows that there is 0 packets going in/out through any of the different types.

Edit:
I was going through the kern.log and saw that ip_tables took 1586 seconds to initiate. nf_conntrack also took 256 seconds to initiate.

Edit:
Disabled iptables and the kernal boots in 7 seconds now, but the timeout issue is still occuring

Edit:
When I shut down the service apache2, I get the error apr_sockaddr_info_get().

Last edited by Brodi816; 04-18-2012 at 07:11 PM.
 
Old 04-18-2012, 07:01 PM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
The MySQL message can be what you get if the MySQL service isn't running. It seems that other services aren't running as well. I'd look closer at the boot log again. Start with the health of the partitions.Are they all mounted? Are any 100% full? A missing /lib/ would cause modules not to load. Then the NICs won't work. Services write to /var/run/ even if they just create a PID file. If there is a problem with the filesystem, it will be mounted ro possible causing services like MySQL and SSH to fail.
 
Old 04-18-2012, 07:10 PM   #8
Brodi816
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
My server has one hardrive and it's only 5% full. Although it may have been earlier as I forgot to delete a huge amount of backups.
Edit:
I backed up all my important data and reformatted the server.

Last edited by Brodi816; 04-19-2012 at 02:19 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
proxy server refusing connections. cjagdish69 Linux - Software 1 12-17-2007 07:05 AM
proxy server that is refusing connections manolakis Linux - General 6 01-25-2007 10:47 AM
qmail - mail server refusing connections? shadoxity Linux - Software 1 04-06-2005 03:41 AM
Web Server Refusing Connections zoso Linux - Networking 2 12-27-2004 11:41 AM
POP daemon server refusing connections tubhost Linux - Software 0 08-30-2004 04:41 AM


All times are GMT -5. The time now is 01:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration