Bug 117560 - squid refuses to start
Summary: squid refuses to start
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: squid
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jay Fenlason
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: FC2Blocker
TreeView+ depends on / blocked
 
Reported: 2004-03-05 12:54 UTC by Neal Becker
Modified: 2014-08-31 23:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-09 16:18:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Neal Becker 2004-03-05 12:54:04 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)

Description of problem:
squid no longer starts after today's update.  Log says:
Mar  5 07:50:00 rpppc1 (squid): failed to find or read error text file.
Mar  5 07:50:00 rpppc1 squid[18221]: Squid Parent: child process 18247 started
Mar  5 07:50:00 rpppc1 squid[18221]: Squid Parent: child process 18247 exited due to signal 6
Mar  5 07:50:01 rpppc1 squid: .


Version-Release number of selected component (if applicable):
squid-2.5.STABLE5-1

How reproducible:
Always

Steps to Reproduce:
1.boot with squid enabled
2.
3.
    

Additional info:

Comment 1 Neal Becker 2004-03-05 13:23:32 UTC
Problem is default squid.conf says: 
error_directory /etc/squid/errors 
 
I changed it to: 
error_directory /etc/squid/errors/English 
 
Now squid starts 
 

Comment 2 Warren Togami 2004-04-17 10:55:35 UTC
squid-2.5.STABLE5-2 seems to work for me in FC development latest.

Comment 3 Andrew Farris 2004-04-18 07:40:46 UTC
Not fixed in squid-2.5.STABLE5-2, /etc/squid/squid.conf (and the
associated .default config) still create this error due to not having
the language specified.  Is the language supposed to be identified in
another way?

When error_directory is set to /etc/squid/errors this error occurs.
2004/04/18 00:36:34| errorTryLoadText:
'/etc/squid/errors/ERR_READ_TIMEOUT': (2) No such file or directory
2004/04/18 00:36:34| errorTryLoadText:
'/usr/local/squid/etc/errors/ERR_READ_TIMEOUT': (2) No such file or
directory
FATAL: failed to find or read error text file.
Squid Cache (Version 2.5.STABLE5): Terminated abnormally.

Squid starts cleanly when /English is added to the error_directory.

Comment 4 Warren Togami 2004-04-18 12:30:26 UTC
I personally am uncertain how you are producing this error.  I use
squid often and I have never needed to do this.

Comment 5 Andrew Farris 2004-04-18 21:03:45 UTC
This may be a problem generated from an upgrade from previous rawhide
squid, rather than clean install.  The postinstall scriptlet for squid
(rpm -q --scripts squid) includes:

postinstall scriptlet (using /bin/sh):
/sbin/chkconfig --add squid
if [ $1 = 0 ]; then
 case "$LANG" in
  bg*)
     DIR=Bulgarian
     ;;
<snipped out others here>
 esac
 ln -snf /usr/share/squid/errors/$DIR /etc/squid/errors
fi

On my system /etc/squid/errors is NOT a link, but is a directory (that
is owned by the squid package).  If this scriptlet failed, then having
the squid variable set to /etc/squid/errors would leave no language
directory selected => failure to start squid.

Removal of squid, and reinstallation of squid-2.5.STABLE5-2 (via yum,
http://download.fedora.us/fedora/fedora/1.91/i386/RPMS.updates) fixed
the problem.  Sorry, the problem is indeed not squid but perhaps dirty
test system (this scriptlet could be more failsafe for this problem).
 Users of FC1 may run into the same upgrade issue to FC2.

Comment 6 Warren Togami 2004-04-18 23:28:48 UTC
Thank you for the thorough analysis.  It appears that the change
history of squid through the various versions needs to be analyzed,
and maybe rawhide squid changed, so that this does not become a very
common problem for FC2 final users.

Comment 7 Alexandre Oliva 2004-04-19 06:07:48 UTC
No need to worry.  It was a link in FC1, it remained as such until
some point in development when it became a directory containing all
language subdirs, but then it was changed back to a link.  Only people
upgrading from test releases containing this problem (are there any?)
to final will observe this problem, and then, probably only if they do
create something in the dir (such as links to the language subdirs to
get squid to run) to prevent it from being removed during the upgrade.


Note You need to log in before you can comment on or make changes to this bug.