LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid giving about init_cache_dir (https://www.linuxquestions.org/questions/linux-server-73/squid-giving-about-init_cache_dir-657683/)

linuxlover.chaitanya 07-23-2008 08:48 AM

Squid giving about init_cache_dir
 
Hey all,
I am running RHEL5.
I just downloaded the squid rpm from the site and did not change the default squid.conf file and tried to start squid by service squid start command and this is the error that I get.

=======================================================================
#service squid start
init_cache_dir /var/spool/squid... /etc/init.d/squid: line 54: 4528 Aborted $SQUID -z -F -D >>/var/log/squid/squid.out 2>&1
Starting squid: /etc/init.d/squid: line 53: 4529 Aborted $SQUID $SQUID_OPTS >>/var/log/squid/squid.out 2>&1
=======================================================================

I am already running the squid on RHEL4 and it is running well.
What should I be looking at specifically to get this running ?

TB0ne 07-23-2008 09:08 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 3223697)
Hey all,
I am running RHEL5.
I just downloaded the squid rpm from the site and did not change the default squid.conf file and tried to start squid by service squid start command and this is the error that I get.

I am already running the squid on RHEL4 and it is running well.
What should I be looking at specifically to get this running ?

You installed it, but did not configure it? Do your directories exist? Permissions correct? Users????

Check out the configuration guide:

http://www.deckle.co.za/squid-users-...uration_Basics

linuxlover.chaitanya 07-23-2008 09:15 AM

Everything is ok. I am already running a squid on RHEL4.
This is on RHEL5. This is the only difference.
I just want the service to start. Then I can configure it to my liking.

TB0ne 07-23-2008 10:25 AM

Quote:

Originally Posted by linuxlover.chaitanya (Post 3223727)
Everything is ok. I am already running a squid on RHEL4.
This is on RHEL5. This is the only difference.
I just want the service to start. Then I can configure it to my liking.

You have to CONFIGURE it before you can START IT. Without the directories/users/permissions correct first, the service won't start. If you already have it running on RHEL4, you must have done this on that box.

You can try to copy your squid configuration from the RHEl4 box to the 5 box, and see what happens, but if you haven't gone through the install procedure and set everything else up, chances are it won't work.

linuxlover.chaitanya 07-23-2008 11:10 PM

I tried even that. I tried the same configuration that is already running, something that I want to run, and without changing anything in the squid.conf file.
When I said I tried with no configuration means that I did not change that default squid.conf file.

linuxlover.chaitanya 07-23-2008 11:53 PM

Solved. The error was regarding the fully qualified hostname.
I set it and squid started.

ubuntu777 08-01-2008 10:02 PM

can u plz explain the exact details how you solved the issue. I am having the same problem and unable to resolve it on Fedora 7

linuxlover.chaitanya 08-02-2008 12:14 AM

First to test it, just remove system hostname from /etc/hosts file. Let it be localhost.localdomain. Once it is up and running with this hostname you can set it up for the FQDN your domain will have.


All times are GMT -5. The time now is 02:53 PM.