Squid failed frequently, cache rotate issue? Disk consistency?
I'm working on the latest pfsense release with an uptodate squid.
I have issues with cache rotate.
When I run this command :
/usr/local/pkg/swapstate_check.php clean; /usr/pbi/squid-amd64/sbin/squid -k rotate -f /usr/pbi/squid-amd64/local/etc/squid/squid.conf
Squid failed an in the logs I have this message :
2015/04/03 12:31:40 kid1| Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1... 2015/04/03 12:31:40 kid1| ERROR: /var/squid/cache/02: (2) No such file or directory FATAL: Failed to verify one of the swap directories, Check cache.log for details. Run 'squid -z' to create swap directories if needed, or if running Squid for the first time. Squid Cache (Version 3.4.10): Terminated abnormally. CPU Usage: 0.094 seconds = 0.058 user + 0.036 sys Maximum Resident Size: 235120 KB Page faults with physical i/o: 0 2015/04/03 12:33:10 kid1| Starting Squid Cache version 3.4.10 for amd64-portbld-freebsd10.1...
Yet, the 02 directory exists! Sometimes it's on the 00 / 01 etc…
Just starting starting squid don't seems to cause troubles
periko last edited by
Have u already create again the cache directory?
I recreate the cache and deactivate the cron. Since that no more problem on squid except that the cache is not clearing each day ;-).
I'll retry the command once I will have less traffic