LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Fatal error in Squid HELP!!!! (https://www.linuxquestions.org/questions/linux-networking-3/fatal-error-in-squid-help-145923/)

kbrian38 02-14-2004 04:43 AM

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 0.0.0.0, port 32857, FD 4
2004/02/14 17:36:36| Adding nameserver 210.23.234.33 from /etc/resolv.conf
2004/02/14 17:36:36| Adding nameserver 210.23.234.65 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 SQUID-CACHE.org 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!!!

codedv 02-14-2004 08:54 AM

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.

drewthetux 02-14-2004 11:22 AM

Not as fatal as you think, just type:
#chown -R squid.squid /usr/local/squid/cache/

kbrian38 02-15-2004 09:44 PM

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


All times are GMT -5. The time now is 01:38 PM.