Squid - Squid won't start --

This is Interesting: Free IT Magazines  
Home > Archive > Squid > March 2005 > Squid won't start --





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Squid won't start --
Ringo Langly

2005-03-01, 5:46 pm

Hi all,

Okay, it's been a LONG time since I stopped and restarted our squid
service, so I did it yesterday -- and it won't start back up.

Here's the error we're getting in /var/log/messages:
Mar 1 08:13:45 PROXY squid[20257]: Squid Parent: child process 20294
started
Mar 1 08:13:45 PROXY (squid): failed to find or read error text file.
Mar 1 08:13:45 PROXY squid[20257]: Squid Parent: child process 20294
exited due to signal 6
Mar 1 08:13:45 PROXY squid[20257]: Exiting due to repeated, frequent
failures

This is on Red Hat 7.1 on Alpha and Squid Cache: Version 2.4.STABLE6.

When I run 'service squid start' it says okay, but after that running
'service squid status' I get the following:
# service squid status
squid dead but subsys locked
squid: ERROR: No running copy

There is no squid.pid file anywhere, so it's not something as simple as
removing the pid file and continuing.

Suggestions? Thanks for any help or assistance.

Ringo

Ringo Langly

2005-03-01, 5:46 pm

More info --

Here's what I'm getting in /var/log/squid/cache.log

2005/03/01 08:19:02| Starting Squid Cache version 2.4.STABLE6 for
alpha-redhat-linux-gnu...
2005/03/01 08:19:02| Process ID 20616
2005/03/01 08:19:02| With 1024 file descriptors available
2005/03/01 08:19:02| Performing DNS Tests...
2005/03/01 08:19:02| Successful DNS name lookup tests...
2005/03/01 08:19:02| DNS Socket created on FD 4
2005/03/01 08:19:02| Adding nameserver 128.127.254.1 from
/etc/resolv.conf
2005/03/01 08:19:02| Adding nameserver 10.142.120.7 from
/etc/resolv.conf
2005/03/01 08:19:02| errorTryLoadText:
'/etc/squid/errors/ERR_READ_TIMEOUT': (2) No such file or directory
FATAL: failed to find or read error text file.
Squid Cache (Version 2.4.STABLE6): Terminated abnormally.
CPU Usage: 0.045 seconds = 0.031 user + 0.014 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0

Is it erroring out on loading the file
'/etc/squid/errors/ERR_READ_TIMEOUT' ? What's supposed to be in this
file if so? I touched it and tried to start squid again, but no dice.


Thanks for any insight or ideas..

Ringo

Rich Piotrowski

2005-03-01, 5:46 pm

Ringo Langly wrote:
> More info --
>
> Here's what I'm getting in /var/log/squid/cache.log
>
> 2005/03/01 08:19:02| Starting Squid Cache version 2.4.STABLE6 for
> alpha-redhat-linux-gnu...
> 2005/03/01 08:19:02| Process ID 20616
> 2005/03/01 08:19:02| With 1024 file descriptors available
> 2005/03/01 08:19:02| Performing DNS Tests...
> 2005/03/01 08:19:02| Successful DNS name lookup tests...
> 2005/03/01 08:19:02| DNS Socket created on FD 4
> 2005/03/01 08:19:02| Adding nameserver 128.127.254.1 from
> /etc/resolv.conf
> 2005/03/01 08:19:02| Adding nameserver 10.142.120.7 from
> /etc/resolv.conf
> 2005/03/01 08:19:02| errorTryLoadText:
> '/etc/squid/errors/ERR_READ_TIMEOUT': (2) No such file or directory
> FATAL: failed to find or read error text file.
> Squid Cache (Version 2.4.STABLE6): Terminated abnormally.
> CPU Usage: 0.045 seconds = 0.031 user + 0.014 sys
> Maximum Resident Size: 0 KB
> Page faults with physical i/o: 0
>
> Is it erroring out on loading the file
> '/etc/squid/errors/ERR_READ_TIMEOUT' ? What's supposed to be in this
> file if so? I touched it and tried to start squid again, but no dice.
>
>
> Thanks for any insight or ideas..
>
> Ringo
>


You may have deleted the link at some point. On my Whitebox system,
/etc/squid/errors is actually a link to /usr/share/squid/errors/English.
Start with that.

Rich Piotrowski

--
"Now are you talking about what it is you know
Or just repeating what it was you heard."
Grace Slick
To E-mail use: rpiotro(at)wi(dot)rr(dot)com
Ringo Langly

2005-03-01, 5:46 pm

Hi Rich,

Actually you were correct. After reviewing the error messages in more
detail and checking the squid site I found that the errors directory
was either supposed to be linked to /usr/lib/squid/errors/English or
the files copied from this directory to /etc/squid/errors. At any
rate, the files in English were gone -- not sure how or why... so I
copied the French files over to /etc/squid/errors/ and it worked.
Squid started fine and is running okay, though any errors are in French
instead of English

I'll get on another box and copy the English errors later, but it's up
and running now.

Thanks for the feedback and info - you hit it right on

Ringo

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com