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


  Search this Thread
Old 02-14-2004, 03:43 AM   #1
LQ Newbie
Registered: Nov 2003
Location: Philippines
Distribution: RedHat Linux 9
Posts: 17

Rep: Reputation: 0
Exclamation Fatal error in Squid HELP!!!!

I just started using the squid cache, i installed and tested the service one at a time. When i reach the point where i have to put a cache_dir the service abnormally terminate and when i check the logs for cache this shows up...

2004/02/14 17:36:36| Starting Squid Cache version 2.5.STABLE4 for i686-pc-linux-gnu...
2004/02/14 17:36:36| Process ID 11236
2004/02/14 17:36:36| With 1024 file descriptors available
2004/02/14 17:36:36| Performing DNS Tests...
2004/02/14 17:36:36| Successful DNS name lookup tests...
2004/02/14 17:36:36| DNS Socket created at, port 32857, FD 4
2004/02/14 17:36:36| Adding nameserver from /etc/resolv.conf
2004/02/14 17:36:36| Adding nameserver from /etc/resolv.conf
2004/02/14 17:36:36| Unlinkd pipe opened on FD 9
2004/02/14 17:36:36| Swap maxSize 102400 KB, estimated 7876 objects
2004/02/14 17:36:36| Target number of buckets: 393
2004/02/14 17:36:36| Using 8192 Store buckets
2004/02/14 17:36:36| Max Mem size: 16384 KB
2004/02/14 17:36:36| Max Swap size: 102400 KB
2004/02/14 17:36:36| /usr/local/squid/cache/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 312

I already provided the necessary folders, I just followed the instructions from documents. can anyone help me with this im not really sure what's the problem, it seems its looking for a file or something and am not sure how to do this. Can anyone help... THANKS!!!
Old 02-14-2004, 07:54 AM   #2
Registered: Nov 2003
Location: Slough, UK
Distribution: Debian
Posts: 146

Rep: Reputation: 15
This is your problem:
2004/02/14 17:36:36| /usr/local/squid/cache/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.

The squid process is unable to open the swap.state log file and as a result has failed. You need to make sure that the chache dir and the all files and directories below it are owned by the user the squid process will run as - otherwise squid will not run.
Old 02-14-2004, 10:22 AM   #3
LQ Newbie
Registered: Aug 2003
Posts: 5

Rep: Reputation: 0
Not as fatal as you think, just type:
#chown -R squid.squid /usr/local/squid/cache/
Old 02-15-2004, 08:44 PM   #4
LQ Newbie
Registered: Nov 2003
Location: Philippines
Distribution: RedHat Linux 9
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks... its already working fine... just missed that part.. and the file swap.log is not present. I just changed ownership then created a file named swap.log


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 FATAL: Could not determine fully qualified hostname. Please set 'visible_hostn tarakthakor Linux - Networking 5 12-04-2010 05:29 AM
Mandrake Move 9.2 error, fatal server error:( silentwhispers Mandriva 1 12-16-2004 11:36 PM
MDK 9.1 Fatal Error in Stage 1: Exec Format Error Beano Mandriva 5 09-12-2004 03:04 PM
Squid Fatal Error with RH 9.0 ryanzietlow Linux - Networking 4 03-16-2004 11:34 PM
FATAL Error in (squid as a proxy server)!!! hitesh_linux Linux - Networking 1 03-24-2003 02:34 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration