Pfsense 2.0.5. Squid останавливается


• Pfsense 2.0.3 с установленным прокси-сервером squid 2.x (проявляется на разных версиях).

• косяк в виде стабильной остановки сервиса squid.

• в логах встречаются строки вида

squid[35846]: Squid Parent: child process 45887 exited due to signal 6

kernel: pid 61343 (squid), uid 62: exited on signal 6

squid[35846]: Exiting due to repeated, frequent failures



Причина: повреждение кэша.


Решение: очистка и создание кэша заново.



mv /var/squid/cache /var/squid/cache.old
squid -z
rm -rf /var/squid/cache.old


Решение нашёл на форуме.



Usually when that happens the cache has been corrupted somehow (usually a sudden power loss).

It's a bit quicker to run:

Code: [Select]
mv /var/squid/cache /var/squid/cache.old
squid -z
rm -rf /var/squid/cache.old

You can then safely restart squid while the rm runs, rather than having to wait for it. If your cache was large it could take a significant amount of time to run the rm command.

Write a comment

Comments: 0