Author Topic: [SOLVED] Squid proxy crashed and stops working.  (Read 10002 times)

Escorpiom

  • Zen Hero
  • *****
  • Posts: 897
  • Karma: +25/-1
    • View Profile
[SOLVED] Squid proxy crashed and stops working.
« on: January 01, 2012, 12:19:39 am »
Squid proxy is behaving very strange lately. I included the log, perhaps someone has seen these lines?

Code: [Select]
2011/12/31 16:30:17| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 16:35:02| CACHEMGR: <unknown>@127.0.0.1 requesting 'info'
2011/12/31 16:35:10| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 16:35:11| CACHEMGR: <unknown>@127.0.0.1 requesting 'storedir'
2011/12/31 16:35:17| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 16:40:02| CACHEMGR: <unknown>@127.0.0.1 requesting 'info'
2011/12/31 16:40:10| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 16:40:11| CACHEMGR: <unknown>@127.0.0.1 requesting 'storedir'
2011/12/31 16:40:17| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 16:45:02| CACHEMGR: <unknown>@127.0.0.1 requesting 'info'
2011/12/31 16:45:09| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 16:45:11| CACHEMGR: <unknown>@127.0.0.1 requesting 'storedir'
2011/12/31 16:45:17| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 16:50:02| CACHEMGR: <unknown>@127.0.0.1 requesting 'info'
2011/12/31 16:50:10| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 16:50:11| CACHEMGR: <unknown>@127.0.0.1 requesting 'storedir'
2011/12/31 16:50:17| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 16:55:02| CACHEMGR: <unknown>@127.0.0.1 requesting 'info'
2011/12/31 16:55:10| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 16:55:11| CACHEMGR: <unknown>@127.0.0.1 requesting 'storedir'
2011/12/31 16:55:17| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 17:00:03| CACHEMGR: <unknown>@127.0.0.1 requesting 'info'
2011/12/31 17:00:10| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 17:00:11| CACHEMGR: <unknown>@127.0.0.1 requesting 'storedir'
2011/12/31 17:00:17| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 17:05:02| CACHEMGR: <unknown>@127.0.0.1 requesting 'info'
2011/12/31 17:05:10| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 17:05:11| CACHEMGR: <unknown>@127.0.0.1 requesting 'storedir'
2011/12/31 17:05:17| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 17:05:36| WARNING: All url_rewriter processes are busy.
2011/12/31 17:05:36| WARNING: up to 6 pending requests queued
2011/12/31 17:06:14| WARNING: All url_rewriter processes are busy.
2011/12/31 17:06:14| WARNING: up to 13 pending requests queued
2011/12/31 17:06:14| Consider increasing the number of url_rewriter processes to at least 18 in your config file.
2011/12/31 17:10:03| CACHEMGR: <unknown>@127.0.0.1 requesting 'info'
2011/12/31 17:10:10| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 17:10:12| CACHEMGR: <unknown>@127.0.0.1 requesting 'storedir'
2011/12/31 17:10:17| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 17:15:02| CACHEMGR: <unknown>@127.0.0.1 requesting 'info'
2011/12/31 17:15:09| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 17:15:11| CACHEMGR: <unknown>@127.0.0.1 requesting 'storedir'
2011/12/31 17:15:16| CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'
2011/12/31 17:16:35| WARNING: All url_rewriter processes are busy.
2011/12/31 17:16:35| WARNING: up to 5 pending requests queued
2011/12/31 17:17:05| WARNING: All url_rewriter processes are busy.
2011/12/31 17:17:05| WARNING: up to 23 pending requests queued
2011/12/31 17:17:05| storeDirWriteCleanLogs: Starting...
2011/12/31 17:17:05| WARNING: Closing open FD   24
2011/12/31 17:17:05| commSetEvents: epoll_ctl(EPOLL_CTL_DEL): failed on fd=24: (1) Operation not permitted
2011/12/31 17:17:05|     65536 entries written so far.
2011/12/31 17:17:05|    131072 entries written so far.
2011/12/31 17:17:05|    196608 entries written so far.
2011/12/31 17:17:05|    262144 entries written so far.
2011/12/31 17:17:05|   Finished.  Wrote 278520 entries.
2011/12/31 17:17:05|   Took 0.1 seconds (3905380.2 entries/sec).
FATAL: Too many queued url_rewriter requests (15 on 5)
Squid Cache (Version 2.7.STABLE7): Terminated abnormally.

It seems that url_rewriter requests are the cause of the crash. But I don't know if the "CACHEMGR: <unknown>@127.0.0.1 requesting" lines have something to do with it.
I have shut down the Apache webserver and Zoneminder but nevertheless the messages are still appearing and squid might be crashing again any moment.

Cheers.
« Last Edit: January 03, 2012, 11:22:22 pm by Escorpiom »
Marcus' Rule:
Blanks & capitals = avoid it and you'll avoid problems...

Escorpiom

  • Zen Hero
  • *****
  • Posts: 897
  • Karma: +25/-1
    • View Profile
Re: Squid proxy crashed and stops working.
« Reply #1 on: January 01, 2012, 03:20:01 am »
It seems I have found the solution for the url_rewriter issue. Currently testing to see if it solves the Squid crashes.

Cheers
Marcus' Rule:
Blanks & capitals = avoid it and you'll avoid problems...

Escorpiom

  • Zen Hero
  • *****
  • Posts: 897
  • Karma: +25/-1
    • View Profile
Re: Squid proxy crashed and stops working.
« Reply #2 on: January 03, 2012, 11:21:50 pm »
That did it. It is necesary to add
Code: [Select]
redirect_children 20To the squid conf.mas file.
Squid has been running superb after adding this directive. Zentyal staff may consider including this also.
The default value is 5.
I found this thanks to Fred_64 from the French Ubuntu forum.

Marking this as solved but I still have not found the cause of   
Code: [Select]
CACHEMGR: <unknown>@127.0.0.1 requesting 'counters'messages.

Cheers.
« Last Edit: January 08, 2012, 02:03:52 am by Escorpiom »
Marcus' Rule:
Blanks & capitals = avoid it and you'll avoid problems...