Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-02-2003, 01:05 PM   #1
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Rep: Reputation: 15
Unhappy Squid starting problem??


I am in the process of setting up Squid proxy-server on my linux computer but squid doesn't start. I tried to run it with default configuration that comes with squid*.rpm and got below error.

root@RH80 deepika]# service squid start
init_cache_dir /var/spool/squid... /etc/init.d/squid: line 162: 3764 Aborted
$SQUID -z -F 2>/dev/null
Starting squid: /etc/init.d/squid: line 162: 3765 Aborted $SQUID $SQUID_OPTS 2>/dev/null

Any idea what is the problem?

Old 10-02-2003, 04:40 PM   #2
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Original Poster
Rep: Reputation: 15
Hi, I discovered the problem was because I hadn't specified 'visible_hostname' option. After I set this option to my m/c hostname it doesn't give this error any more. But I don't understand why does one HAS TO specify this since according to below statement in "squid.conf" file

# TAG: visible_hostname
# If you want to present a special hostname in error messages, etc,
# then define this. Otherwise, the return value of gethostname()
# will be used. If you have multiple caches in a cluster and
# get errors about IP-forwarding you must set them to have individual
# names with this setting.
It doesn't seem necessary if gethistname() can get it.

Can anyone please explain this to me.

Old 10-10-2003, 02:04 AM   #3
Registered: Sep 2003
Posts: 34

Rep: Reputation: 15
Well that's not due to the problem that u are specifying..
I will tell you why the problem due to if give the content of cache.log here.. found in logs directory under the /etc/squid/
Old 10-10-2003, 09:25 AM   #4
Registered: Jul 2003
Distribution: Redhat
Posts: 88

Original Poster
Rep: Reputation: 15
Thanks Ricky for offering help.

I also found that I hadn't set my hostname to IP address mapping in /etc/hosts file. Once I specified my hostname there it no longer needed my to define visible_hostname in 'squid.conf' file.

Old 10-10-2003, 12:13 PM   #5
Senior Member
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
I believe they make you set it because if gethostname fails and for some reason your proxy is exposed to the Internet (as an open proxy), they want people on the net to be able to contact you and tell you your an open proxy. That is just a guess but it makes sense to me. :-)


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 not starting..... Ricky Linux - Networking 5 05-31-2006 07:54 AM
Error starting Squid mrpc_cambodia Red Hat 2 07-20-2004 04:45 AM
Squid error even before starting Crasherz Linux - Networking 8 11-21-2003 04:56 AM
Squid starting error abhram Linux - Networking 1 10-12-2003 08:17 AM
Starting squid from boot? kabads Linux - Software 3 02-14-2003 07:23 AM > Forums > Linux Forums > Linux - Networking

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

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