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 04-10-2012, 11:48 PM   #1
yanto
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
Unhappy Service Squid start failed


Dear all, i need help cause i'm newbie in linux..
my proxy got error to start squid, then i try to open the cache.log and found like this...:

2012/04/11 10:34:45| Starting Squid Cache version 2.6.STABLE21 for i686-redhat-linux-gnu...
2012/04/11 10:34:45| Process ID 3511
2012/04/11 10:34:45| With 1024 file descriptors available
2012/04/11 10:34:45| Using epoll for the IO loop
2012/04/11 10:34:45| DNS Socket created at 0.0.0.0, port 46567, FD 6
2012/04/11 10:34:45| Adding nameserver 180.131.144.144, from squid.conf
2012/04/11 10:34:45| WARNING: rejecting '180.131.144.144,' as a name server, because it is not a numeric IP address
2012/04/11 10:34:45| Adding nameserver 180.131.145.145 from squid.conf
2012/04/11 10:34:45| helperOpenServers: Starting 5 'ncsa_auth' processes
2012/04/11 10:34:45| User-Agent logging is disabled.
2012/04/11 10:34:45| Referer logging is disabled.
2012/04/11 10:34:45| Unlinkd pipe opened on FD 16
2012/04/11 10:34:45| Swap maxSize 1024000 + 524288 KB, estimated 0 objects
2012/04/11 10:34:45| Target number of buckets: 5954
2012/04/11 10:34:45| Using 8192 Store buckets
2012/04/11 10:34:45| Max Mem size: 524288 KB
2012/04/11 10:34:45| Max Swap size: 1024000 KB
2012/04/11 10:34:45| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2012/04/11 10:34:45| Rebuilding storage in /var/spool/squid (DIRTY)
2012/04/11 10:34:45| Using Least Load store dir selection
2012/04/11 10:34:45| Set Current Directory to /var/spool/squid
2012/04/11 10:34:45| Loaded Icons.
2012/04/11 10:34:45| commBind: Cannot bind socket FD 18 to 192.168.11.1:8080: (99) Cannot assign requested address
FATAL: Cannot open HTTP Port

can you help me what to do.tq
 
Old 04-11-2012, 12:53 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
post your

Code:
#cat /var/log/messages
 
Old 04-11-2012, 01:21 AM   #3
yanto
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Tq deep however i still confuse what for i type like you ask me to do, but however the result like this :
Apr 11 10:27:13 emporiumpluit pcscd: winscard.c:304:SCardConnect() Reader E-Gate 0 0 Not Found
Apr 11 10:27:16 emporiumpluit last message repeated 3 times
Apr 11 10:34:35 emporiumpluit squid[3473]: Squid Parent: child process 3475 started
Apr 11 10:34:35 emporiumpluit squid[3475]: Cannot open HTTP Port
Apr 11 10:34:35 emporiumpluit squid[3473]: Squid Parent: child process 3475 exited due to signal 6
Apr 11 10:34:38 emporiumpluit squid[3473]: Squid Parent: child process 3487 started
Apr 11 10:34:39 emporiumpluit squid[3487]: Cannot open HTTP Port
Apr 11 10:34:39 emporiumpluit squid[3473]: Squid Parent: child process 3487 exited due to signal 6
Apr 11 10:34:42 emporiumpluit squid[3473]: Squid Parent: child process 3499 started
Apr 11 10:34:42 emporiumpluit squid[3499]: Cannot open HTTP Port
Apr 11 10:34:42 emporiumpluit squid[3473]: Squid Parent: child process 3499 exited due to signal 6
Apr 11 10:34:45 emporiumpluit squid[3473]: Squid Parent: child process 3511 started
Apr 11 10:34:45 emporiumpluit squid[3511]: Cannot open HTTP Port
Apr 11 10:34:45 emporiumpluit squid[3473]: Squid Parent: child process 3511 exited due to signal 6
Apr 11 10:34:48 emporiumpluit squid[3473]: Squid Parent: child process 3522 started
Apr 11 10:34:49 emporiumpluit squid[3522]: Cannot open HTTP Port
Apr 11 10:34:49 emporiumpluit squid[3473]: Squid Parent: child process 3522 exited due to signal 6
Apr 11 10:34:49 emporiumpluit squid[3473]: Exiting due to repeated, frequent failures
Apr 11 10:53:19 emporiumpluit squid[3911]: Squid Parent: child process 3913 started
Apr 11 10:53:19 emporiumpluit squid[3913]: Cannot open HTTP Port
Apr 11 10:53:19 emporiumpluit squid[3911]: Squid Parent: child process 3913 exited due to signal 6
Apr 11 10:53:22 emporiumpluit squid[3911]: Squid Parent: child process 3925 started
Apr 11 10:53:23 emporiumpluit squid[3925]: Cannot open HTTP Port
Apr 11 10:53:23 emporiumpluit squid[3911]: Squid Parent: child process 3925 exited due to signal 6
Apr 11 10:53:26 emporiumpluit squid[3911]: Squid Parent: child process 3937 started
Apr 11 10:53:26 emporiumpluit squid[3937]: Cannot open HTTP Port
Apr 11 10:53:26 emporiumpluit squid[3911]: Squid Parent: child process 3937 exited due to signal 6
Apr 11 10:53:29 emporiumpluit squid[3911]: Squid Parent: child process 3948 started
Apr 11 10:53:29 emporiumpluit squid[3948]: Cannot open HTTP Port
Apr 11 10:53:29 emporiumpluit squid[3911]: Squid Parent: child process 3948 exited due to signal 6
Apr 11 10:53:32 emporiumpluit squid[3911]: Squid Parent: child process 3960 started
Apr 11 10:53:33 emporiumpluit squid[3960]: Cannot open HTTP Port
Apr 11 10:53:33 emporiumpluit squid[3911]: Squid Parent: child process 3960 exited due to signal 6
Apr 11 10:53:33 emporiumpluit squid[3911]: Exiting due to repeated, frequent failures
Apr 11 11:05:13 emporiumpluit squid[4374]: Squid Parent: child process 4376 started
Apr 11 11:05:13 emporiumpluit squid[4376]: Cannot open HTTP Port
Apr 11 11:05:13 emporiumpluit squid[4374]: Squid Parent: child process 4376 exited due to signal 6
Apr 11 11:05:16 emporiumpluit squid[4374]: Squid Parent: child process 4388 started
Apr 11 11:05:16 emporiumpluit squid[4388]: Cannot open HTTP Port
Apr 11 11:05:16 emporiumpluit squid[4374]: Squid Parent: child process 4388 exited due to signal 6
Apr 11 11:05:19 emporiumpluit squid[4374]: Squid Parent: child process 4399 started
Apr 11 11:05:20 emporiumpluit squid[4399]: Cannot open HTTP Port
Apr 11 11:05:20 emporiumpluit squid[4374]: Squid Parent: child process 4399 exited due to signal 6
Apr 11 11:05:23 emporiumpluit squid[4374]: Squid Parent: child process 4410 started
Apr 11 11:05:23 emporiumpluit squid[4410]: Cannot open HTTP Port
Apr 11 11:05:23 emporiumpluit squid[4374]: Squid Parent: child process 4410 exited due to signal 6
Apr 11 11:05:26 emporiumpluit squid[4374]: Squid Parent: child process 4422 started
Apr 11 11:05:26 emporiumpluit squid[4422]: Cannot open HTTP Port
Apr 11 11:05:26 emporiumpluit squid[4374]: Squid Parent: child process 4422 exited due to signal 6
Apr 11 11:05:26 emporiumpluit squid[4374]: Exiting due to repeated, frequent failures
Apr 11 11:13:09 emporiumpluit squid[4488]: Squid Parent: child process 4490 started
Apr 11 11:13:10 emporiumpluit squid[4490]: Cannot open HTTP Port
Apr 11 11:13:10 emporiumpluit squid[4488]: Squid Parent: child process 4490 exited due to signal 6
Apr 11 11:13:13 emporiumpluit squid[4488]: Squid Parent: child process 4502 started
Apr 11 11:13:13 emporiumpluit squid[4502]: Cannot open HTTP Port
Apr 11 11:13:13 emporiumpluit squid[4488]: Squid Parent: child process 4502 exited due to signal 6
Apr 11 11:13:16 emporiumpluit squid[4488]: Squid Parent: child process 4513 started
Apr 11 11:13:16 emporiumpluit squid[4513]: Cannot open HTTP Port
Apr 11 11:13:16 emporiumpluit squid[4488]: Squid Parent: child process 4513 exited due to signal 6
Apr 11 11:13:19 emporiumpluit squid[4488]: Squid Parent: child process 4524 started
Apr 11 11:13:20 emporiumpluit squid[4524]: Cannot open HTTP Port
Apr 11 11:13:20 emporiumpluit squid[4488]: Squid Parent: child process 4524 exited due to signal 6
Apr 11 11:13:23 emporiumpluit squid[4488]: Squid Parent: child process 4536 started
Apr 11 11:13:23 emporiumpluit squid[4536]: Cannot open HTTP Port
Apr 11 11:13:23 emporiumpluit squid[4488]: Squid Parent: child process 4536 exited due to signal 6
Apr 11 11:13:23 emporiumpluit squid[4488]: Exiting due to repeated, frequent failures
Apr 11 12:00:01 emporiumpluit squid[4865]: Squid Parent: child process 4867 started
Apr 11 12:00:02 emporiumpluit squid[4867]: Cannot open HTTP Port
Apr 11 12:00:02 emporiumpluit squid[4865]: Squid Parent: child process 4867 exited due to signal 6
Apr 11 12:00:05 emporiumpluit squid[4865]: Squid Parent: child process 4879 started
Apr 11 12:00:05 emporiumpluit squid[4879]: Cannot open HTTP Port
Apr 11 12:00:05 emporiumpluit squid[4865]: Squid Parent: child process 4879 exited due to signal 6
Apr 11 12:00:08 emporiumpluit squid[4865]: Squid Parent: child process 4890 started
Apr 11 12:00:08 emporiumpluit squid[4890]: Cannot open HTTP Port
Apr 11 12:00:08 emporiumpluit squid[4865]: Squid Parent: child process 4890 exited due to signal 6
Apr 11 12:00:11 emporiumpluit squid[4865]: Squid Parent: child process 4901 started
Apr 11 12:00:12 emporiumpluit squid[4901]: Cannot open HTTP Port
Apr 11 12:00:12 emporiumpluit squid[4865]: Squid Parent: child process 4901 exited due to signal 6
Apr 11 12:00:15 emporiumpluit squid[4865]: Squid Parent: child process 4913 started
Apr 11 12:00:15 emporiumpluit squid[4913]: Cannot open HTTP Port
Apr 11 12:00:15 emporiumpluit squid[4865]: Squid Parent: child process 4913 exited due to signal 6
Apr 11 12:00:15 emporiumpluit squid[4865]: Exiting due to repeated, frequent failures
[root@emporiumpluit squid]#
 
Old 04-11-2012, 01:41 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
check your selinux and firewall for http_port which in the case of squid is 3128

I am not so good with selinux so I use it in disabled mode. So check your selinux config file
 
Old 04-11-2012, 01:49 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Are you sure the http_port 8080 that you want to use for filtering is not used by any other service i.e. no other service is listening on that port? And that you have a valid entry in your squid.conf file?

Code:
http_port 192.168.1.1:8080
 
Old 04-11-2012, 01:59 AM   #6
yanto
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Unhappy

This gateway server has build by someone who has leave this company...and it still running well until yesterday suddenly my provider got problem. and today when i restart this proxy server, I found that my squid service can't run...but i found something strange because I can browsing with this comp which mean I can browse the internet using this comp but the client still can't connect and access the internet
 
Old 04-11-2012, 02:03 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by yanto View Post
This gateway server has build by someone who has leave this company...and it still running well until yesterday suddenly my provider got problem. and today when i restart this proxy server, I found that my squid service can't run...but i found something strange because I can browsing with this comp which mean I can browse the internet using this comp but the client still can't connect and access the internet
did you checked what you were asked to do in above posts?

check selinux and post your squid.conf
did anyone meshed up with the iptables rule?

Until and unless you tell us about the complete scenario we can't help. So you can save both of ours time by giving complete info.
 
Old 04-11-2012, 02:53 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Check for the errors in the squid error logs in /var/log/squid/error.out or something similarly named file. And let us know what you can see in the error logs. Check if your squid cache is corrupt and try to rebuild the cache using squid -z command.
 
Old 04-11-2012, 05:37 PM   #9
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
It could be selinux problem. Does your /var/log/messages file shows any selinux error?

If you changed the default 3128 port to something else then try this:

Code:
# semanage port -a -t http_cache_port_t -p tcp <port_no.>
Replace port_no. with your actual port set in your squid configuration file and restart the squid service.

Last edited by Satyaveer Arya; 04-11-2012 at 05:40 PM.
 
  


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
[SOLVED] cant get squid service to start! please help walneezy Linux - Networking 2 02-11-2012 09:02 PM
installing squid : service squid start --> error jonaskellens Linux - Software 2 09-05-2008 04:06 AM
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 02:59 PM
starting squid service failed on redhat9 timdog28 Linux - Server 7 02-25-2007 05:00 PM
service squid.init stop says [failed] Niceman2005 Linux - Software 2 11-16-2004 07:20 PM


All times are GMT -5. The time now is 01:19 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