LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Squid starting problem?? (https://www.linuxquestions.org/questions/linux-networking-3/squid-starting-problem-99459/)

deepika 10-02-2003 12:05 PM

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

deepika 10-02-2003 03:40 PM

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

Ricky 10-10-2003 01:04 AM

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/

deepika 10-10-2003 08:25 AM

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

Pcghost 10-10-2003 11:13 AM

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


All times are GMT -5. The time now is 04:38 AM.