[squid-users] Squid stopped working after cache.log and access.log rotation

Chee M Gui cheemeng at function.com
Thu Mar 23 16:36:01 UTC 2017


Thank you Jason.

lsof /var/log | grep -i delete  does not show anything
Likewise for  lsof /var/log/squid | grep -i delete

Thank you Antony
No, we have a lot of disk space.



root at paproxy:/var/log# lsof /var/log/squid | grep -i delete
root at paproxy:/var/log# lsof /var/log/squid | more
root at paproxy:/var/log# ps -ax | grep squid
 1708 pts/0    S+     0:00 grep --color=auto squid
25482 ?        Ss     0:00 /usr/sbin/squid -YC -f /etc/squid/squid.conf
25484 ?        S      2:27 (squid-1) -YC -f /etc/squid/squid.conf
25485 ?        S      0:03 (logfile-daemon) /var/log/squid/access.log
root at paproxy:/var/log# lsof /var/log/squid | grep -i delete
root at paproxy:/var/log# cd squid
root at paproxy:/var/log/squid# ls -al
total 15540
drwxr-xr-x 2 proxy proxy      4096 Mar 23 06:25 .
drwxrwxr-x 9 root  syslog     4096 Mar 23 06:25 ..
-rw-r----- 1 proxy proxy  15759111 Mar 17 06:24 access.log.1
-rw-r----- 1 proxy proxy        63 Mar 23 06:25 cache.log
-rw-r----- 1 proxy proxy        63 Mar 22 06:25 cache.log.1
-rw-r----- 1 proxy proxy        63 Mar 19 06:25 cache.log.2
-rw-r----- 1 proxy proxy        83 Mar 21 06:25 cache.log.2.gz
-rw-r----- 1 proxy proxy    117223 Mar 17 05:52 netdb.state
root at paproxy:/var/log/squid#


On Wed, Mar 22, 2017 at 8:23 AM, Jason B. Nance <jason at tresgeek.net> wrote:

> If you do "lsof /var/log | grep -i delete" does it show squid writing to a
> deleted access.log / cache.log?
>
> j
>
>
> ------------------------------
> *From: *"Chee M Gui" <cheemeng at function.com>
> *To: *squid-users at lists.squid-cache.org
> *Sent: *Wednesday, March 22, 2017 10:17:32 AM
> *Subject: *[squid-users] Squid stopped working after cache.log and
> access.log        rotation
>
>
> Hi All
>
> We recently installed Squid 3.5.12-1ubuntu7.3 on Ubuntu 16.04.2 LTS.  It
> ran fine at first but stopped working after a while.   telnet server 3128
> still works, i.e., opens a blank window, but Squid is just not accepting
> requests.    Then we realized that there is no new access.log file.   The
> access.log file stopped rotated at 6:24AM on 3/17/2017.    It looks like
> Squid wasn't able to create a new access.log?  We could not find any error
> message in syslog or the cache.log.      We haven't rebooted the server
> because we want to know what went wrong.   It isn't the firewall blocking
> Squid because Squid was working fine all the while until recently.  Also
> after it stopped working, we disabled the firewall to see if it would work
> but it still didn't work.
>
> root at paproxy:/var/log/squid# ls -alt
> total 15536
> drwxr-xr-x 2 proxy proxy      4096 Mar 21 06:25 .
> -rw-r----- 1 proxy proxy        63 Mar 21 06:25 cache.log
> drwxrwxr-x 9 root  syslog     4096 Mar 21 06:25 ..
> -rw-r----- 1 proxy proxy        63 Mar 20 06:25 cache.log.1
> -rw-r----- 1 proxy proxy        83 Mar 19 06:25 cache.log.2.gz
> -rw-r----- 1 proxy proxy  15759111 Mar 17 06:24 access.log.1
> -rw-r----- 1 proxy proxy    117223 Mar 17 05:52 netdb.state
>
> Any ideas what went wrong?
>
> Thank you very much in anticipation.
>
> Gui
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170323/b881154c/attachment.html>


More information about the squid-users mailing list