<div dir="ltr">Hi Eliezer<div><br></div><div>Thank you for the response, and sorry for the late reply.</div><div><br></div><div>As requested, here are the output of the commands you suggested:</div><div><div>root@paproxy:/# systemctl status squid</div><div>● squid.service - LSB: Squid HTTP Proxy version 3.x</div><div> Loaded: loaded (/etc/init.d/squid; bad; vendor preset: enabled)</div><div> Active: active (running) since Wed 2017-03-15 14:47:53 PDT; 1 months 5 days ago</div><div> Docs: man:systemd-sysv-generator(8)</div><div> Tasks: 4</div><div> Memory: 54.4M</div><div> CPU: 2min 38.957s</div><div> CGroup: /system.slice/squid.service</div><div> ├─25482 /usr/sbin/squid -YC -f /etc/squid/squid.conf</div><div> ├─25484 (squid-1) -YC -f /etc/squid/squid.conf</div><div> ├─25485 (logfile-daemon) /var/log/squid/access.log</div><div> └─25486 (unlinkd)</div><div><br></div><div>Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.</div><div>root@paproxy:/#</div><div><br></div><div><br></div><div><br></div><div>top - 09:11:45 up 54 days, 23:51, 2 users, load average: 0.00, 0.00, 0.00</div><div>Tasks: 141 total, 1 running, 140 sleeping, 0 stopped, 0 zombie</div><div>%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni, 99.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st</div><div>KiB Mem : 6043140 total, 4844728 free, 135292 used, 1063120 buff/cache</div><div>KiB Swap: 6222844 total, 6222844 free, 0 used. 5556300 avail Mem</div><div><br></div><div> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND</div><div>23355 root 20 0 41668 3776 3236 R 6.7 0.1 0:00.01 top</div><div> 1 root 20 0 37884 5968 4020 S 0.0 0.1 0:27.20 systemd</div><div> 2 root 20 0 0 0 0 S 0.0 0.0 0:00.22 kthreadd</div><div> 3 root 20 0 0 0 0 S 0.0 0.0 0:01.01 ksoftirqd/0</div><div> 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H</div><div> 7 root 20 0 0 0 0 S 0.0 0.0 1:28.65 rcu_sched</div><div> 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh</div><div> 9 root rt 0 0 0 0 S 0.0 0.0 0:00.14 migration/0</div><div> 10 root rt 0 0 0 0 S 0.0 0.0 0:05.53 watchdog/0</div><div> 11 root rt 0 0 0 0 S 0.0 0.0 0:05.75 watchdog/1</div><div> 12 root rt 0 0 0 0 S 0.0 0.0 0:00.14 migration/1</div><div> 13 root 20 0 0 0 0 S 0.0 0.0 0:02.48 ksoftirqd/1</div><div> 15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0H</div><div> 16 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs</div><div> 17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns</div><div> 18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 perf</div><div> 19 root 20 0 0 0 0 S 0.0 0.0 0:01.26 khungtaskd</div><div> 20 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback</div><div><br></div><div><br></div><div>root@paproxy:/# ps -aux | grep squid</div><div>root 23358 0.0 0.0 14224 976 pts/0 S+ 09:12 0:00 grep --color=auto squid</div><div>root 25482 0.0 0.1 109272 6416 ? Ss Mar15 0:00 /usr/sbin/squid -YC -f /etc/squid/squid.conf</div><div>proxy 25484 0.0 0.7 166684 45184 ? S Mar15 2:27 (squid-1) -YC -f /etc/squid/squid.conf</div><div>proxy 25485 0.0 0.0 13280 1648 ? S Mar15 0:03 (logfile-daemon) /var/log/squid/access.log</div><div>root@paproxy:/#</div><div><br></div><div><br></div><div>root@paproxy:/# df -h</div><div>Filesystem Size Used Avail Use% Mounted on</div><div>udev 2.9G 0 2.9G 0% /dev</div><div>tmpfs 591M 60M 531M 11% /run</div><div>/dev/sda1 911G 1.9G 863G 1% /</div><div>tmpfs 2.9G 12K 2.9G 1% /dev/shm</div><div>tmpfs 5.0M 0 5.0M 0% /run/lock</div><div>tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup</div><div>tmpfs 591M 0 591M 0% /run/user/1000</div><div>tmpfs 591M 0 591M 0% /run/user/0</div><div>root@paproxy:/#</div><div><br></div><div><br></div><div><br></div><div>root@paproxy:/# df -h</div><div>Filesystem Size Used Avail Use% Mounted on</div><div>udev 2.9G 0 2.9G 0% /dev</div><div>tmpfs 591M 60M 531M 11% /run</div><div>/dev/sda1 911G 1.9G 863G 1% /</div><div>tmpfs 2.9G 12K 2.9G 1% /dev/shm</div><div>tmpfs 5.0M 0 5.0M 0% /run/lock</div><div>tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup</div><div>tmpfs 591M 0 591M 0% /run/user/1000</div><div>tmpfs 591M 0 591M 0% /run/user/0</div><div>root@paproxy:/#</div><div><br></div><div><br></div><div>root@paproxy:/# lsof -n|egrep "proxy|squid" | more</div><div>squid 25482 root cwd DIR 8,1 4096 2 /</div><div>squid 25482 root rtd DIR 8,1 4096 2 /</div><div>squid 25482 root txt REG 8,1 6430816 41946763 /usr/sbin/squid</div><div>squid 25482 root mem REG 8,1 47648 10093387 /lib/x86_64-linux-gnu/libnss_nis-2.23.</div><div>so</div><div>squid 25482 root mem REG 8,1 93128 10093399 /lib/x86_64-linux-gnu/<a href="http://libnsl-2.23.so">libnsl-2.23.so</a></div><div>squid 25482 root mem REG 8,1 35688 10093400 /lib/x86_64-linux-gnu/libnss_compat-2.</div><div>23.so</div><div>squid 25482 root mem REG 8,1 47600 10093403 /lib/x86_64-linux-gnu/libnss_files-2.2</div><div>3.so</div><div>squid 25482 root mem REG 8,1 25913104 41944015 /usr/lib/x86_64-linux-gnu/libicudata.s</div><div>o.55.1</div><div>squid 25482 root mem REG 8,1 22520 10093098 /lib/x86_64-linux-gnu/libmnl.so.0.1.0</div><div>squid 25482 root mem REG 8,1 26248 41948589 /usr/lib/x86_64-linux-gnu/libnfnetlink</div><div>.so.0.2.0</div><div><br></div></div><div><br></div><div>Thank you once again</div><div><br></div><div>CM</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 23, 2017 at 1:59 PM, Eliezer Croitoru <span dir="ltr"><<a href="mailto:eliezer@ngtech.co.il" target="_blank">eliezer@ngtech.co.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There is another option!<br>
The log rotate script is doing something nasty or the systemd service file start up squid in a weird way.<br>
The output of:<br>
$ systemctl status squid<br>
$ top -n1 -b<br>
$ ps aux<br>
$ df -h<br>
$ netstat -ntulp<br>
$ lsof -n|egrep "proxy|squid"<br>
<br>
How many clients this system has?<br>
Is the system facing the Internet directly or behind some nat(aws or another provider)?<br>
<br>
The above are the basic required data to understand the situation.<br>
<br>
All The Bests,<br>
Eliezer<br>
<br>
----<br>
<a href="http://ngtech.co.il/lmgtfy/" rel="noreferrer" target="_blank">http://ngtech.co.il/lmgtfy/</a><br>
Linux System Administrator<br>
Mobile: <a href="tel:%2B972-5-28704261" value="+972528704261">+972-5-28704261</a><br>
Email: <a href="mailto:eliezer@ngtech.co.il">eliezer@ngtech.co.il</a><br>
<br>
<br>
From: squid-users [mailto:<a href="mailto:squid-users-bounces@lists.squid-cache.org">squid-users-bounces@<wbr>lists.squid-cache.org</a>] On Behalf Of Chee M Gui<br>
Sent: Wednesday, March 22, 2017 5:18 PM<br>
To: <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
<span class="im HOEnZb">Subject: [squid-users] Squid stopped working after cache.log and access.log rotation<br>
<br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">Hi All<br>
<br>
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.<br>
<br>
root@paproxy:/var/log/squid# ls -alt<br>
total 15536<br>
drwxr-xr-x 2 proxy proxy 4096 Mar 21 06:25 .<br>
-rw-r----- 1 proxy proxy 63 Mar 21 06:25 cache.log<br>
drwxrwxr-x 9 root syslog 4096 Mar 21 06:25 ..<br>
-rw-r----- 1 proxy proxy 63 Mar 20 06:25 cache.log.1<br>
-rw-r----- 1 proxy proxy 83 Mar 19 06:25 cache.log.2.gz<br>
-rw-r----- 1 proxy proxy 15759111 Mar 17 06:24 access.log.1<br>
-rw-r----- 1 proxy proxy 117223 Mar 17 05:52 netdb.state<br>
<br>
Any ideas what went wrong?<br>
<br>
Thank you very much in anticipation.<br>
<br>
Gui<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Chee Meng Gui<br>Function Engineering<br>650-833-0660</div>
</div>