Re: [squid-users] logfileWrite: c:/squid/log/store.log: (13) Permission denied after storeDirWriteCleanLogs (Squid 2.5 on Windows 2000)

From: Serassio Guido <guido.serassio@dont-contact.us>
Date: Thu, 07 Aug 2003 19:22:32 +0200

Hi,

>Hi,
>
>every time when squid starts storeDirWriteCleanLogs it can't write into the
>access.log file anymore.
>
>2003/08/07 12:03:40| storeDirWriteCleanLogs: Starting...
>2003/08/07 12:03:40| WARNING: Closing open FD 19
>2003/08/07 12:03:42| 65536 entries written so far.
>2003/08/07 12:03:45| 131072 entries written so far.
>2003/08/07 12:03:48| 196608 entries written so far.
>2003/08/07 12:03:52| 262144 entries written so far.
>2003/08/07 12:04:02| 327680 entries written so far.
>2003/08/07 12:04:10| 393216 entries written so far.
>2003/08/07 12:04:16| Finished. Wrote 440783 entries.
>2003/08/07 12:04:16| Took 35.7 seconds (12356.9 entries/sec).
>FATAL: logfileWrite: c:/squid/log/store.log: (13) Permission denied
>
>Squid Cache (Version 2.5.STABLE1-CVS): Terminated abnormally.
>
>...well sometimes it is the store.log file
>
>When I rotate the log files squid always starts storeDirWriteCleanLogs but
>it is not
>a problem unless there are 2 pinger processes. When I rotate the log files
>squid
>first closes the pinger process before it starts storeDirWriteCleanLogs
>
>2003/08/06 23:55:02| Closing Pinger socket on FD 7
>2003/08/06 23:55:05| Pinger exiting.
>
>Somehow the error only seems to occur when there is a pinger process when
>squid
>starts storeDirWriteCleanLogs.
>
>How does Squid decide when to start storeDirWriteCleanLogs? Is there a way
>to tell
>squid to close the pinger process every time it starts
>storeDirWriteCleanLogs and not
>only when it rotates the log files?

There is a know problem in SquidNT: sometimes the UDP communication between
squid.exe and pinger.exe fails to signal the shutdown to the helper and
pinger.exe don't exit.
The effect is that there are 2 pinger.exe running process and logfiles can
be locked from the orphaned process. Killing the orphan pinger.exe fix the
problem.

This should not happens during storeDirWriteCleanLogs.

If You don't need the icmp support, simply put in your squid.conf
the 'pinger_program none' option.

Regards

Guido

-
========================================================
Guido Serassio
Acme Consulting S.r.l.
Via Gorizia, 69 10136 - Torino - ITALY
Tel. : +39.011.3249426 Fax. : +39.011.3293665
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Thu Aug 07 2003 - 11:23:12 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:46 MST