On 23/08/17 20:15, Vieri wrote:
Hi,
After a long time working correctly, Squid stops working all of a sudden.
No new requests/replies show up in the logs. Complete silence.
If I issue "squid -k reconfigure" I get this message in cache.log:
Set Current Directory to /var/cache/squid
If I set "debug_options rotate=1 ALL,9" and run "squid -k reconfigure" twice then I get this in cache.log:
2017/08/23 07:54:32.676| 21,3| tools.cc(610) enter_suid: enter_suid: PID 17797 taking root privileges
2017/08/23 07:54:32.676| 13,3| mem.cc(473) Report: Memory pools are 'on'; limit: 5.000 MB
2017/08/23 07:54:32.676| Set Current Directory to /var/cache/squid
2017/08/23 07:54:32.676| 21,3| tools.cc(543) leave_suid: leave_suid: PID 17797 called
2017/08/23 07:54:32.676| 21,3| tools.cc(565) leave_suid: leave_suid: PID 17797 giving up root, becoming 'squid'
2017/08/23 07:55:01.605| 21,3| tools.cc(610) enter_suid: enter_suid: PID 17927 taking root privileges
2017/08/23 07:55:01.605| 13,3| mem.cc(473) Report: Memory pools are 'on'; limit: 5.000 MB
2017/08/23 07:55:01.605| Set Current Directory to /var/cache/squid
2017/08/23 07:55:01.605| 21,3| tools.cc(543) leave_suid: leave_suid: PID 17927 called
2017/08/23 07:55:01.605| 21,3| tools.cc(565) leave_suid: leave_suid: PID 17927 giving up root, becoming 'squid'
However, any attempt to browse the web leads to nothing new in the logs.
At ALL,9 that is a sign of major trouble. The log data is not going
where it should be. Please check your squid.conf that it is not sending
cache_log directive to /dev/null, a pipe or something.
Finally, stopping the squid service fails. I can list the squid processes:
# ps -ae | grep squid
4439 ? 05:29:57 squid
9059 ? 00:00:00 squid
9160 ? 00:00:00 squid
9162 ? 00:11:42 squid
9206 ? 00:00:00 squid
9208 ? 00:02:04 squid
9254 ? 00:00:00 squid
9257 ? 00:00:28 squid
9313 ? 00:00:00 squid
9315 ? 00:00:55 squid
That seems a lot. What exactly are those processes each doing?
"ps aux | grep squid" should show the process roles.
If you run "squid -k shutdown ; squid -k shutdown" do they all fully stop?
(exactly that command, shutdown twice in a row)
Once Squid is fully stopped, start it again. Is the problem resolved
when it comes back up?
Amos
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users