LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 15
Unhappy Squid starting problem??


Hi,

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
[FAILED]

Any idea what is the problem?

Thanks,
Deepika
 
Old 10-02-2003, 03:40 PM   #2
deepika
Member
 
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


Quote:
# 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.

Thanks,
Deepika
 
Old 10-10-2003, 01:04 AM   #3
Ricky
Member
 
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, 08:25 AM   #4
deepika
Member
 
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.

Thanks,
Deepika
 
Old 10-10-2003, 11:13 AM   #5
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

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. :-)
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:27 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
Open Source Consulting | Domain Registration