Hello Soukaku,

We had the same problem when rebuilding the Debian squid package for Ubuntu. 
Turns out the build process could not find the libsystemd-dev package (because 
it was not installed at the time of build) and thus did not compile the 
required sn_notify call to system. So after start squid process never tells the 
system daemon that it *is* indeed started - so system kills it normally after 
timeout.

See https://github.com/diladele/squid-ubuntu/tree/master/src/ubuntu18 
(specifically 
https://github.com/diladele/squid-ubuntu/blob/master/src/ubuntu18/02_tools.sh).

Best regards,
Rafael Akchurin
Diladele B.V.


-----Original Message-----
From: soukaku <souk...@downtown.jp> 
Sent: Friday, 24 April 2020 16:36
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Subject: Bug#958708: squid: Failed to start.

Package: squid
Version: 4.11-1
Severity: normal

Dear Maintainer,

I installed Squid 4.11-1, but it doesn't start properly when I run "systemctl 
start squid".

root@fah:~# systemctl start squid
Job for squid.service failed because a timeout was exceeded.
See "systemctl status squid.service" and "journalctl -xe" for details.

root@fah:~# systemctl status squid.service
* squid.service - Squid Web Proxy Server
     Loaded: loaded (/lib/systemd/system/squid.service; enabled; vendor preset:
enabled)
     Active: failed (Result: timeout) since Fri 2020-04-24 22:00:53 JST; 5min 
ago
       Docs: man:squid(8)
    Process: 13933 ExecStartPre=/usr/sbin/squid --foreground -z (code=exited,
status=0/SUCCESS)
    Process: 13936 ExecStart=/usr/sbin/squid --foreground -sYC (code=exited,
status=0/SUCCESS)
   Main PID: 13936 (code=exited, status=0/SUCCESS)

Apr 24 22:00:53 fah squid[13938]: Shutting down...
Apr 24 22:00:53 fah squid[13938]: storeDirWriteCleanLogs: Starting...
Apr 24 22:00:53 fah squid[13938]:   Finished.  Wrote 0 entries.
Apr 24 22:00:53 fah squid[13938]:   Took 0.00 seconds (  0.00 entries/sec).
Apr 24 22:00:53 fah squid[13938]: Logfile: closing log 
daemon:/var/log/squid/access.log Apr 24 22:00:53 fah squid[13938]: Logfile 
Daemon: closing log daemon:/var/log/squid/access.log
Apr 24 22:00:53 fah squid[13938]: Open FD UNSTARTED    10 IPC UNIX STREAM
Parent
Apr 24 22:00:53 fah squid[13938]: Squid Cache (Version 4.11): Exiting normally.
Apr 24 22:00:53 fah systemd[1]: squid.service: Failed with result 'timeout'.
Apr 24 22:00:53 fah systemd[1]: Failed to start Squid Web Proxy Server.

root@fah:~# journalctl -xe
<< -- snip -- >>
-- The job identifier is 6625.
Apr 24 21:58:51 fah squid[13933]: 2020/04/24 21:58:51| Created PID file
(/var/run/squid.pid)
Apr 24 21:58:51 fah squid[13933]: Squid Parent: will start 1 kids Apr 24 
21:58:51 fah squid[13933]: Squid Parent: (squid-1) process 13935 started Apr 24 
21:58:51 fah squid[13935]: 2020/04/24 21:58:51 kid1| Set Current Directory to 
/var/spool/squid Apr 24 21:58:51 fah squid[13935]: 2020/04/24 21:58:51 kid1| 
Creating missing swap directories Apr 24 21:58:51 fah squid[13935]: 2020/04/24 
21:58:51 kid1| No cache_dir stores are configured.
Apr 24 21:58:51 fah squid[13933]: Squid Parent: squid-1 process 13935 exited 
with status 0 Apr 24 21:58:51 fah squid[13933]: 2020/04/24 21:58:51| Removing 
PID file
(/var/run/squid.pid)
Apr 24 21:58:51 fah squid[13936]: Created PID file (/var/run/squid.pid) Apr 24 
21:58:51 fah squid[13936]: Squid Parent: will start 1 kids Apr 24 21:58:51 fah 
squid[13936]: Squid Parent: (squid-1) process 13938 started Apr 24 21:58:51 fah 
squid[13938]: Set Current Directory to /var/spool/squid Apr 24 21:58:51 fah 
squid[13938]: Starting Squid Cache version 4.11 for x86_64-pc-linux-gnu...
Apr 24 21:58:51 fah squid[13938]: Service Name: squid Apr 24 21:58:51 fah 
squid[13938]: Process ID 13938 Apr 24 21:58:51 fah squid[13938]: Process Roles: 
worker Apr 24 21:58:51 fah squid[13938]: With 1024 file descriptors available 
Apr 24 21:58:51 fah squid[13938]: Initializing IP Cache...
Apr 24 21:58:51 fah squid[13938]: DNS Socket created at [::], FD 5 Apr 24 
21:58:51 fah squid[13938]: DNS Socket created at 0.0.0.0, FD 9 Apr 24 21:58:51 
fah squid[13938]: Adding nameserver 172.16.255.254 from /etc/resolv.conf Apr 24 
21:58:51 fah squid[13938]: Logfile: opening log 
daemon:/var/log/squid/access.log Apr 24 21:58:51 fah squid[13938]: Logfile 
Daemon: opening log /var/log/squid/access.log Apr 24 21:58:51 fah squid[13938]: 
Local cache digest enabled; rebuild/rewrite every 3600/3600 sec Apr 24 21:58:51 
fah squid[13938]: Store logging disabled Apr 24 21:58:51 fah squid[13938]: Swap 
maxSize 0 + 262144 KB, estimated 20164 objects Apr 24 21:58:51 fah 
squid[13938]: Target number of buckets: 1008 Apr 24 21:58:51 fah squid[13938]: 
Using 8192 Store buckets Apr 24 21:58:51 fah squid[13938]: Max Mem  size: 
262144 KB Apr 24 21:58:51 fah squid[13938]: Max Swap size: 0 KB Apr 24 21:58:51 
fah squid[13938]: Using Least Load store dir selection Apr 24 21:58:51 fah 
squid[13938]: Set Current Directory to /var/spool/squid Apr 24 21:58:51 fah 
squid[13938]: Finished loading MIME types and icons.
Apr 24 21:58:51 fah squid[13938]: HTCP Disabled.
Apr 24 21:58:51 fah squid[13938]: Pinger socket opened on FD 14 Apr 24 21:58:51 
fah squid[13938]: Squid plugin modules loaded: 0 Apr 24 21:58:51 fah 
squid[13938]: Adaptation support is off.
Apr 24 21:58:51 fah squid[13938]: Accepting HTTP Socket connections at
local=[::]:3128 remote=[::] FD 12 flags=9 Apr 24 21:58:52 fah squid[13938]: 
storeLateRelease: released 0 objects Apr 24 22:00:22 fah systemd[1]: 
squid.service: start operation timed out.
Terminating.
Apr 24 22:00:22 fah squid[13938]: Preparing for shutdown after 0 requests Apr 
24 22:00:22 fah squid[13938]: Waiting 30 seconds for active connections to 
finish Apr 24 22:00:22 fah squid[13938]: Closing HTTP(S) port [::]:3128 Apr 24 
22:00:22 fah squid[13938]: Closing Pinger socket on FD 14 Apr 24 22:00:53 fah 
squid[13938]: Shutdown: NTLM authentication.
Apr 24 22:00:53 fah squid[13938]: Shutdown: Negotiate authentication.
Apr 24 22:00:53 fah squid[13938]: Shutdown: Digest authentication.
Apr 24 22:00:53 fah squid[13938]: Shutdown: Basic authentication.
Apr 24 22:00:53 fah squid[13938]: Shutting down...
Apr 24 22:00:53 fah squid[13938]: storeDirWriteCleanLogs: Starting...
Apr 24 22:00:53 fah squid[13938]:   Finished.  Wrote 0 entries.
Apr 24 22:00:53 fah squid[13938]:   Took 0.00 seconds (  0.00 entries/sec).
Apr 24 22:00:53 fah squid[13938]: Logfile: closing log 
daemon:/var/log/squid/access.log Apr 24 22:00:53 fah squid[13938]: Logfile 
Daemon: closing log daemon:/var/log/squid/access.log
Apr 24 22:00:53 fah squid[13938]: Open FD UNSTARTED    10 IPC UNIX STREAM
Parent
Apr 24 22:00:53 fah squid[13938]: Squid Cache (Version 4.11): Exiting normally.
Apr 24 22:00:53 fah squid[13936]: Squid Parent: squid-1 process 13938 exited 
with status 0 Apr 24 22:00:53 fah systemd[1]: squid.service: Failed with result 
'timeout'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit squid.service has entered the 'failed' state with result 'timeout'.
Apr 24 22:00:53 fah squid[13936]: Removing PID file (/var/run/squid.pid) Apr 24 
22:00:53 fah systemd[1]: Failed to start Squid Web Proxy Server.
-- Subject: A start job for unit squid.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit squid.service has finished with a failure.
--
-- The job identifier is 6625 and the job result is failed.



-- System Information:
Debian Release: bullseye/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.5.0-2-amd64 (SMP w/4 CPU cores) Kernel taint flags: 
TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), 
LANGUAGE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages squid depends on:
ii  adduser                  3.118
ii  libc6                    2.30-4
ii  libcap2                  1:2.33-1
ii  libcom-err2              1.45.6-1
ii  libcrypt1                1:4.4.16-1
ii  libdb5.3                 5.3.28+dfsg1-0.6
ii  libdbi-perl              1.643-1
ii  libecap3                 1.0.1-3.2+b1
ii  libexpat1                2.2.9-1
ii  libgcc-s1                10-20200418-1
ii  libgnutls30              3.6.13-2
ii  libgssapi-krb5-2         1.17-7
ii  libkrb5-3                1.17-7
ii  libldap-2.4-2            2.4.49+dfsg-4
ii  libltdl7                 2.4.6-14
ii  libnetfilter-conntrack3  1.0.8-1
ii  libnettle7               3.5.1+really3.5.1-2
ii  libpam0g                 1.3.1-5
ii  libsasl2-2               2.1.27+dfsg-2
ii  libstdc++6               10-20200418-1
ii  libxml2                  2.9.10+dfsg-5
ii  logrotate                3.16.0-3
ii  lsb-base                 11.1.0
ii  netbase                  6.1
ii  squid-common             4.11-1

Versions of packages squid recommends:
ii  ca-certificates  20190110
ii  libcap2-bin      1:2.33-1

Versions of packages squid suggests:
ii  apparmor     2.13.4-1+b1
pn  resolvconf   <none>
ii  smbclient    2:4.11.5+dfsg-1+b1
pn  squid-cgi    <none>
pn  squid-purge  <none>
pn  squidclient  <none>
pn  ufw          <none>
pn  winbind      <none>

-- no debconf information

Reply via email to