LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2013, 12:59 AM   #1
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Rep: Reputation: Disabled
Critical Problem with Internet by squid server


Hi Friends,

I have squid configured RHEL-5 Server, on same box DHCP, MYSQL, FTP & HTTPD services are running...

this server is running from 2 years, we didnot face any problems, but now one problem has started... while running internet suddenly internet is disconnecting, when i restart the server then only internet works for a hours again its getting same problem... Not understanding where is issue...

Please reply on this asap...

Regards,
Sandeep CC
 
Old 12-18-2013, 01:38 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
what do the logfiles say? what happens if you run it from a command line in debug mode?
 
Old 12-18-2013, 02:20 AM   #3
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Original Poster
Rep: Reputation: Disabled
Thanks for reply,

log files are updating when internet is working, and its not updating when internet is stopping...

regards,
sandeep cc
 
Old 12-18-2013, 04:36 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
there will be other logs for the actual service, not the sites being reached, i.e. squid.out. also check /var/log/messages and other usual suspects. Clearly the fact that when it's not working it doesn't log the sites isn't really a whole lot of use.
 
Old 12-18-2013, 05:46 AM   #5
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by sandeepc04 View Post
internet suddenly internet is disconnecting
How do you know this? Is there any error message?
Just saying "the internet disconnects" doesn't give us any information what might be wrong, as there are millions of possible reasons that the "internet disconnects".

You might want to start by asking yourself a few specific questions. Examples:
  • How is the server connected to the internet.
  • What are the symptoms when "it" happens.
  • What are the symptoms when it doesn't happen.
  • When the system is disconnected, what do tools like ifconfig, ping etc. report. What happens if you don't reboot but just restart networking.
  • Is there anything half-relevant in the log files around the time of the disconnect (files in /var/log and subdirectories, in particular /var/log/messages).
  • Is there anything else, e.g. how are the services doing that you mention.
 
Old 12-19-2013, 03:38 AM   #6
sandeepc04
Member
 
Registered: Jun 2012
Location: India
Posts: 66

Original Poster
Rep: Reputation: Disabled
Hi thanks for the reply...

Sorry i could not pick exact logs... Because in working hours i am unable to wait and do this all checking so if internet is not working that time our person is restarting immediately so i am fail to find the reasons...

But i have monitored one thing when i am clearing /var/log/squid/all 4 files then one day internet is working without disconnect...The file size is like below...
[root@proxy1 squid]# ls -ltr
total 76072
-rw-r--r-- 1 root root 136392 Dec 19 13:42 squid.out
-rw-r----- 1 squid squid 68335 Dec 19 13:43 cache.log
-rw-r----- 1 squid squid 42308222 Dec 19 13:56 store.log
-rw-r----- 1 squid squid 35278700 Dec 19 13:56 access.log
[root@proxy1 squid]#

This file size we are getting daily... even the same server we are using from 2 years, i had kept auto rotate every 15days... it clearing files every 15 days(for 15 days file size were too much) even we didnot face any issue from 2 years... but now facing problem...

I am not sure what i did, that is correct or not, In server disk space is available there is no problem for disk space
[root@proxy1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda7 9.5G 610M 8.4G 7% /
/dev/hda6 9.5G 213M 8.8G 3% /tmp
/dev/hda5 9.5G 2.1G 7.0G 23% /usr
/dev/hda3 9.5G 4.8G 4.2G 54% /var
/dev/hda2 95G 25G 65G 28% /home
/dev/hda1 9.5G 156M 8.9G 2% /boot
tmpfs 759M 0 759M 0% /dev/shm

... just for testing purpose i had cleared files it worked fine... If my intention is correct then what is solution for this issue?

Regards,
Sandeep CC
 
  


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
Squid server internet access problem ashishkhandelwal Linux - Server 3 02-20-2010 09:13 AM
[SOLVED] Squid server with two internet connections ashishkhandelwal Linux - Networking 4 02-04-2010 05:00 PM
Problem with configuration of Squid server behind a squid ajitup Linux - Server 13 08-12-2009 11:55 PM
Internet Connection Problem At Squid Server On Suse, Due to IP of DNS change ShadowoftheDarkgod Linux - Networking 4 06-04-2006 08:24 PM
config squid so some IP can access internet, and others just the server? 4mix Linux - Networking 5 07-20-2004 06:08 PM


All times are GMT -5. The time now is 12:16 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration