LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-26-2010, 08:10 AM   #1
Carpintonto
LQ Newbie
 
Registered: Dec 2006
Distribution: fc5
Posts: 4

Rep: Reputation: 0
All connections being refused on LAN server


I have a little file server, which also acts as a printer server and it has a web server implementation for Mapserver too.

Suddenly, nothing can connect.

if I try ssh
Code:
john@john-desktop ~ $ ssh -vv 192.168.1.100
OpenSSH_5.1p1 Debian-5ubuntu1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.100 [192.168.1.100] port 22.
debug1: Connection established.
debug1: identity file /home/john/.ssh/identity type -1
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/john/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/john/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
or ftp
Code:
Looking up 192.168.1.100
Trying 192.168.1.100:21
Connected to 192.168.1.100:21
Disconnecting from site 192.168.1.100
Webmin
Code:
Firefox can't establish a connection to the server at 192.168.1.100:10000.
MapServer
Code:
Firefox can't establish a connection to the server at 192.168.1.100:8090.
The little server had been running Debian Etch headless (no gui, no monitor, no keyboard) for a couple years just fine. Suddenly all connections are refused, from both Linux boxes (LinuxMint Gloria)

I am not running any software firewalls on any of the boxes, nor have I messed with anything on our router (Linksys Wireless-G)

Also, all connections are ethernet, not wireless, and the server and the other two boxes are assigned IPs - no dhcp issue
thanks for looking -

Last edited by Carpintonto; 05-26-2010 at 08:25 AM.
 
Old 05-26-2010, 08:31 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,142

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Can you ping the server?
can you still access files and print?
 
Old 05-26-2010, 08:34 AM   #3
Carpintonto
LQ Newbie
 
Registered: Dec 2006
Distribution: fc5
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Can you ping the server?
can you still access files and print?
I can ping, but not print. Being unable to print is how I discovered the problem.
 
Old 05-26-2010, 10:52 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,036

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
It's a "little" file server, and it has been running for a couple of years (gotta love linux!).
Maybe the logs have filled up your diskspace? So now there's no room to run anything?

Root should have 5% of diskspace reserved, so if you can login as root, maybe you can fix things. Root logins by ssh are usually disabled by default though.

Can you attach a keyboard and monitor to it, and then login as root?
 
1 members found this post helpful.
Old 05-26-2010, 11:08 AM   #5
Carpintonto
LQ Newbie
 
Registered: Dec 2006
Distribution: fc5
Posts: 4

Original Poster
Rep: Reputation: 0
@ tredegar -

thanks - that was my suspicion too, and that is what I will try next. I recall I had less than 10% space left the last time I looked and my cups error log was saying something about "too big." I did try logging in as root via ssh - no go. I'll report back after I attempt to log in as root with a keyboard and monitor attached.
 
Old 05-26-2010, 01:33 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,036

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
OK

Please let us know how you get on.
 
Old 05-26-2010, 03:01 PM   #7
Carpintonto
LQ Newbie
 
Registered: Dec 2006
Distribution: fc5
Posts: 4

Original Poster
Rep: Reputation: 0
On boot up, fsck died with exit status 4
Went to maintenance shell when prompted for root password and ran fsck.
fsck reported
Quote:
File /var/log/samba/cores/smbd/core ... has multiply claimed block(s) shared with one file(s)
I went with default for all the prompts and rebooted when fsck finish.

When I try to log in as root, I always get this error message
Quote:
/bin/login: error while loading shared libraries: /lib/libpam_misc.so.0: ELF file data encoding not little-endian
Ok now - I tried rebooting to single user mode and got stuck again, then let it reboot again and fsck ran again on it's own and fixed some more stuff, and I was in as root. Opened another virtual console (Left-Alt -F2) and logged in as me, then tried ssh from one of the linux boxes as yet another user - all good, and I have a little over 5 GB free space so there's room to move. I think my object lesson for today is rtfm for fsck.

Last edited by Carpintonto; 05-26-2010 at 04:40 PM.
 
Old 05-26-2010, 04:54 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,036

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Thanks for the follow-up.

fsck is not happy. So the filesystem isn't able to function properly. That's possibly why you are getting obscure messages like "/bin/login: error while loading shared libraries:..."

Could be that your server has died, for reasons, at present, unknown.

You can perhaps boot your server from a live CD mount its filesystem, and rescue personal files you need to an external HDD. I suggest you try this now if your personal files are important.

Then maybe a reinstall, or functioning hardware on your server, is required.

You will have to do some diagnosing.
 
1 members found this post helpful.
  


Reply

Tags
fsck


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
Network connections cut-out but pinging IP works: two lan cards+dhcp server+www Cyberman Linux - Networking 4 02-14-2010 10:30 PM
Telnet connections refused drosen Linux - Networking 4 07-28-2006 02:13 PM
connection refused, tcp betwee client and server on different pc on same lan JoeyWong Linux - Networking 1 05-14-2006 03:14 AM
ssh: remote connections refused Skurge Linux - Networking 8 08-18-2003 01:28 PM
SSH - Refused Connections bfloeagle Linux - Networking 6 08-31-2001 01:16 AM


All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
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