Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server keeps going offline, or so it seems.

Status
Not open for further replies.

gohard

Vendor
Jan 15, 2002
43
CA
Hi,
I am running freebsd 4.5 with the generic kernel, and am not doing anything exciting with it at the moment, it is currently running sendmail & Apache. The problem I am running into is that it seems to go offline every 5-10 minutes. Yet when the machine is offline to the outside world, meaning it won't connect via port 80 or ssh (22). I can go to the console and ping to my heart's content and get the outside world.
I have swapped NICS, I have swapped cat5e cables. nothing seems to be working. If I reboot it, it will work for a short time.

Any help would be greatly appreciated.

Thanks.

Jaye
 
u might want to check for segmentation faults, which may come up as signal 11's on your system.. this usually means u may be having a hardware error... check your RAM and hard drives for integrity.. doing a memory test may tell you a few things.. good luck..

 
I am having the exact same problems for over a week. Did this solution work? I sure could use some help.

Thank you in advance,

Mark.Osterholt@attbi.com
 
Well, I wasn't getting any segmentation faults, and there were no obvious messages in the logs leading me to the problem. I did swap nic's which didn't seem to make a difference, swapped cables, made no difference. I finally, for what it was worth, and the fact that it was a new installation, I just reinstalled the FreeBSD OS, and I haven't had the problem since.
I wish could be a little more scientific in order to help you out, but that is what did it.
 
This is a toughy but Ill see what theories might point you in the right direction.

First it must be determined whether it is a network problem or an internal problem, being the hardware or operating system in the pc.

Network check:
Im sure you know several netstat, ps, and sockstat commands and arguments so I wont discuss those if anything.
I like using nmap. Yes a port-scanner.

If you are behind a firewall of anytype. First scan the machine running Apache, Sendmail, from the machine itself.
If that s successful scan it from another machine local and behind the firewall of your network. If that is successful, then scan your firewall. If that is succesfull, then check to see if your ISP is giving you a dynamic ip, static we all know doesnt change so I wont discuss that. But a dynamic address, depending on your ISP, can change rapidly. Many cable companies do not like their customre serving anything and therefore will block or dump your server activites.
And one more thing sacrifice harddrive space by running TCPDUMP to monitor your network activity. Leave it in promiscous mode. That will keep live network action without you doing very much other than observing activity. My freind who use attbi or adelphia havent really had that problem(YET).

That covers some of the network troubleshootin. Now as far as the system is concerned, Its more complicated.
Segmentaion faults, signal interrupts, etc. are obvious and could happen hours after boot time. Your current terminal may freeze but you may be able to use other terminals. Thats not worth it. You may need to keep rebooting the system over for every interval that event happens. If that error emerges, it not may be bad memory in itself but a bad combination of memory. Unix/Linux are very sensitive when it comes to hardware. They do not like wierd ram or hardware combinations and may not even let you boot at times. Others they will operate for a limited amount of time and repeat what ever other errors happened before.

Im not an apache, or sendmail admin to walk you through a check of those servers. But it wont hurt to run through them since you know them, and look for any time limiting or manipulating parameters. Like on a dial-up or pppoe connection on a network (which i should have mentioned earlier), "keep-alives" or synonymous statements of that sort. I dont think inet.conf has that option that I could think of, but comment out any servers you dont need on like tftp, or anything like that, check your rc.conf or whatever the name of the config file is, you get the idea, the file that allows you to start services, on system startup.

The best but most expensive trick of all, run bsd with your same kernel on a whole separate machine, that step should even be tried before anything I discussed prior to this. Other wise enjoy, hard and time consumng work, along with reading howtos and getting hit and miss responses from people.

good luck .. .I hope this helped somewhat..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top