Your message dated Sun, 09 Apr 2017 00:07:23 +0000
with message-id <[email protected]>
and subject line Bug#857137: fixed in squid3 3.5.23-3
has caused the Debian Bug report #857137,
regarding squid3: on Debian Jessie: /etc/init.d/squid3 returncode is wrong with 
conf file with errors
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
857137: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857137
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: squid3
Version: 3.4.8-6+deb8u4
Severity: normal
Tags: patch

Dear Maintainer,

When writing tests for Test-Kitchen (which is a framework to test 
infrastructure), I discovered that 
/etc/init.d/squid3 does not return the correct code with a wrong configuration 
file (/etc/squid3/squid.conf).

I have a wrong configuration file which makes squid3 not start, as you can see 
in the following lines:

# service squid3 start
# tail /var/log/syslog
Mar  8 11:03:51 jessie squid3: Bungled /etc/squid3/squid.conf line 63: acl 
port_aclname port port1
Mar  8 11:03:51 jessie squid3: Bungled /etc/squid3/squid.conf line 63: acl 
port_aclname port port1
Mar  8 11:03:51 jessie squid3: Bungled /etc/squid3/squid.conf line 63: acl 
port_aclname port port1
Mar  8 11:03:51 jessie squid3[11256]: Starting Squid HTTP Proxy 3.x: 
squid3FATAL: Bungled /etc/squid3/squid.conf line 63: acl port_aclname port port1
Mar  8 11:03:51 jessie squid3[11256]: Squid Cache (Version 3.4.8): Terminated 
abnormally.
Mar  8 11:03:51 jessie squid3[11256]: CPU Usage: 0.004 seconds = 0.004 user + 
0.000 sys
Mar  8 11:03:51 jessie squid3[11256]: Maximum Resident Size: 37184 KB
Mar  8 11:03:51 jessie squid3[11256]: Page faults with physical i/o: 0
Mar  8 11:03:51 jessie squid3[11256]: failed!
Mar  8 11:03:51 jessie systemd[1]: Started LSB: Squid HTTP Proxy version 3.x.

If I verify with service or systemctl, they report squid as active/running:

# service squid3 status|grep Active
   Active: active (exited) since Wed 2017-03-08 11:03:51 GMT; 1min 43s ago
# systemctl is-active squid3
active

It seems that the error comes from the regex used in /etc/init.d/squid3 to 
verify if it can run.
The attached patch should resolve the problem.

I hope this problem could be solved in the next release of Stable/Jessie.


-- System Information:
Debian Release: 8.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages squid3 depends on:
ii  adduser                  3.113+nmu3
ii  libc6                    2.19-18+deb8u6
ii  libcap2                  1:2.24-8
ii  libcomerr2               1.42.12-2
ii  libdb5.3                 5.3.28-9
ii  libecap2                 0.2.0-3
ii  libexpat1                2.1.0-6+deb8u3
ii  libgcc1                  1:4.9.2-10
ii  libgssapi-krb5-2         1.12.1+dfsg-19+deb8u2
ii  libk5crypto3             1.12.1+dfsg-19+deb8u2
ii  libkrb5-3                1.12.1+dfsg-19+deb8u2
ii  libldap-2.4-2            2.4.40+dfsg-1+deb8u2
ii  libltdl7                 2.4.2-1.11+b1
ii  libnetfilter-conntrack3  1.0.4-1
ii  libnettle4               2.7.1-5+deb8u1
ii  libpam0g                 1.1.8-3.1+deb8u1+b1
ii  libsasl2-2               2.1.26.dfsg1-13+deb8u1
ii  libstdc++6               4.9.2-10
ii  libxml2                  2.9.1+dfsg1-5+deb8u3
ii  logrotate                3.8.7-1+b1
ii  lsb-base                 4.1+Debian13+nmu1
ii  netbase                  5.3
ii  squid3-common            3.4.8-6+deb8u4

squid3 recommends no packages.

Versions of packages squid3 suggests:
pn  resolvconf   <none>
pn  smbclient    <none>
pn  squid-cgi    <none>
pn  squid-purge  <none>
pn  squidclient  <none>
pn  ufw          <none>
pn  winbindd     <none>

-- Configuration Files:
/etc/init.d/squid3 changed [not included]
/etc/squid3/squid.conf changed [not included]

-- no debconf information
--- debian/squid3.rc	2016-12-18 10:47:19.000000000 +0000
+++ /etc/init.d/squid3	2017-03-08 11:07:52.200000000 +0000
@@ -130,7 +130,7 @@
 
 case "$1" in
     start)
-	res=`$DAEMON -k parse -f $CONFIG 2>&1 | grep -o "FATAL .*"`
+	res=`$DAEMON -k parse -f $CONFIG 2>&1 | grep -o "FATAL: .*"`
 	if test -n "$res";
 	then
 		log_failure_msg "$res"
@@ -153,7 +153,7 @@
 	fi
 	;;
     reload|force-reload)
-	res=`$DAEMON -k parse -f $CONFIG 2>&1 | grep -o "FATAL .*"`
+	res=`$DAEMON -k parse -f $CONFIG 2>&1 | grep -o "FATAL: .*"`
 	if test -n "$res";
 	then
 		log_failure_msg "$res"
@@ -166,7 +166,7 @@
 	fi
 	;;
     restart)
-	res=`$DAEMON -k parse -f $CONFIG 2>&1 | grep -o "FATAL .*"`
+	res=`$DAEMON -k parse -f $CONFIG 2>&1 | grep -o "FATAL: .*"`
 	if test -n "$res";
 	then
 		log_failure_msg "$res"

--- End Message ---
--- Begin Message ---
Source: squid3
Source-Version: 3.5.23-3

We believe that the bug you reported is fixed in the latest version of
squid3, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Garcia Mantinan <[email protected]> (supplier of updated squid3 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 08 Apr 2017 02:52:28 +0200
Source: squid3
Binary: squid3 squid squid-dbg squid-common squidclient squid-cgi squid-purge
Architecture: source amd64 all
Version: 3.5.23-3
Distribution: unstable
Urgency: medium
Maintainer: Luigi Gangitano <[email protected]>
Changed-By: Santiago Garcia Mantinan <[email protected]>
Description:
 squid      - Full featured Web Proxy cache (HTTP proxy)
 squid-cgi  - Full featured Web Proxy cache (HTTP proxy) - control CGI
 squid-common - Full featured Web Proxy cache (HTTP proxy) - common files
 squid-dbg  - Full featured Web Proxy cache (HTTP proxy) - Debug symbols
 squid-purge - Full featured Web Proxy cache (HTTP proxy) - control utility
 squid3     - Transitional package
 squidclient - Full featured Web Proxy cache (HTTP proxy) - control utility
Closes: 857137 858556
Changes:
 squid3 (3.5.23-3) unstable; urgency=medium
 .
   [ Amos Jeffries <[email protected]> ]
   * debian/squid.preinst
     - Fix upgrade sequence from jesse squid3 package (Closes: #858556)
 .
   [ Santiago Garcia Mantinan <[email protected]> ]
   * debian/squid.{preinst,postinst,postrm}
     - Fix problems with empty squid3 dir and squid 2.7 installed
       (use the right logic with better checks).
     - Avoid install abortion by stopping squid3 only when it runs.
 .
   [ Eric Veiras Galisson <[email protected]> ]
   * debian/squid.rc
     - Fix returncode is wrong with conf file with errors (Closes: #857137)
Checksums-Sha1:
 97a1f2c24c4c9e0ccdd8c78ae1a54d65291657b1 2554 squid3_3.5.23-3.dsc
 68ea822ef0afc4869f496e8c549c3267fb788d02 26156 squid3_3.5.23-3.debian.tar.xz
 3e3c3c6b8491fe336bfeaf4a4abffb918a6e3f6d 164898 squid-cgi_3.5.23-3_amd64.deb
 302f06f4f1b8cb1b8b393ffde50a1e7b637f5647 284370 squid-common_3.5.23-3_all.deb
 b433839d18f6fc3142483d29259db43de4bbaa05 21572414 squid-dbg_3.5.23-3_amd64.deb
 6c6ce7045b6514838b403522d84148e2cfe1f369 157344 squid-purge_3.5.23-3_amd64.deb
 09858af47c60a4ec404a234558e9c2c83ce1f9cb 138692 squid3_3.5.23-3_all.deb
 acbca175e9e3658faa9a349850ee6aae8dc53a63 9752 squid3_3.5.23-3_amd64.buildinfo
 be8db14dc2a712446a0a669139eca470b0092bf9 2313622 squid_3.5.23-3_amd64.deb
 e65a769673790e2ff41e12ccd90fec8a2c326c4e 168688 squidclient_3.5.23-3_amd64.deb
Checksums-Sha256:
 427bc0c4ac790786315d19517e2f41765393ece1d16777a0996831deb31c5b0e 2554 
squid3_3.5.23-3.dsc
 a192bb031caa4b8df1b84642dfbf844eb1b35f627d925c2aa5b41f23027d62ea 26156 
squid3_3.5.23-3.debian.tar.xz
 209504f0bc8e13cdfe1df0b268dac78e83c02f384e7e10da29207c4fc55ab6f6 164898 
squid-cgi_3.5.23-3_amd64.deb
 84c68ab33399966f7dd60f4998bd658a7fd077830858d2df7fd0bbe0612e15fe 284370 
squid-common_3.5.23-3_all.deb
 c6986b433581f0993625ed99832c5260c07fefa83f24a6889556c086b7166e26 21572414 
squid-dbg_3.5.23-3_amd64.deb
 a7204c78b76e739c8e84ad5d0767c958eef214a72fd0e11485273223d3cf4574 157344 
squid-purge_3.5.23-3_amd64.deb
 97cda0d75ae1b770d112316e56fb89a5e6ea31374405069c48da14afd5c4400b 138692 
squid3_3.5.23-3_all.deb
 e06824337d6b0123bb29e393761bb4833cf2e6416abe113be7d4e07ad4d392c8 9752 
squid3_3.5.23-3_amd64.buildinfo
 b271b395ff553b2550be0fdd1742afddd3408bc579bd6f2e2935fdce5a6537ee 2313622 
squid_3.5.23-3_amd64.deb
 ab440e677c9ceac235fce57cea911306143af18d6d0d217c64e84cb0c12eb843 168688 
squidclient_3.5.23-3_amd64.deb
Files:
 b28498539d6b0aa323b75ae6d3b7de35 2554 web optional squid3_3.5.23-3.dsc
 1304e28dff2eba78b5ad40ec8204c663 26156 web optional 
squid3_3.5.23-3.debian.tar.xz
 e520284d3f4db52c75dce8fd8d70abe2 164898 web optional 
squid-cgi_3.5.23-3_amd64.deb
 5afc850470aa35dd9985551f525bf1ea 284370 web optional 
squid-common_3.5.23-3_all.deb
 abab8b9dda3747708aedef372d1c6e51 21572414 debug extra 
squid-dbg_3.5.23-3_amd64.deb
 c96ad1297539c12e937ffe9b8629a75e 157344 web optional 
squid-purge_3.5.23-3_amd64.deb
 4ab3048cc6707cd81f87d05de480b0f0 138692 oldlibs extra squid3_3.5.23-3_all.deb
 1dd6c604f75bc3c49f9a46e8aca33684 9752 web optional 
squid3_3.5.23-3_amd64.buildinfo
 b0b9f4e32f595bc8f2d05e7563ba0835 2313622 web optional squid_3.5.23-3_amd64.deb
 2f688cc509ce204f356be7ee523819f0 168688 web optional 
squidclient_3.5.23-3_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEBqPldg9hG0uxqQ5ouGiMo9h21aMFAljpdm8ACgkQuGiMo9h2
1aOhAhAAkcyxtWdM4kclB+LQYFRpM8DCR2L1ojAGYMzvPSJZ5kSQ8FENCEdVS9FJ
7S9lbeFMalpgcj52GoHT8H0V3o+DkQ3wuWiilfsPgdM1NmXjmcv6vZ5tp2if0Fk3
mCLFCQrfopX9SsCp2L1GQzHM4Bj3N8jX5AeDv7NwwH3at2dpI5eCup+Ibt7iM3c8
h27irrnzNkihnpz9ubJsun5k8ivBoS/KuUopBBpVHGPfKSu7KL0R2Tlr2EcrnEAs
XLqFWAWpXAHdRmB72GQPcabhfywYNUCxKZ342CiGc7DA5YYDGRmNjS+wonH75BSC
I8HnM1BS8zBh9wNIfoIhC3Eg0T25+566mjJdm/krOFepNM7zU5ojEXjZHbIHjvOu
bMi+LQfN6PVRSB5ZUr0qkS1F9lZcbDuv5Tvw6rqGhWaJuXcXC071yeE/VBx/47z+
QrKpCP1T2zkAFt3PkoAL4OOmf4nOX3Ydp+vrHeYk1du+bdBD1g4+Cxbs/3LIvPTq
Ae8QQjA01PKps68erBNhlmVKjvFlcLvXq8OJMZAw1lFF9NhPWd4AGmkDznRT1dY2
qO2VrAcT0Hx2JIY3bVhStr8Ze74779iSMvatPwyHBW3rGvOAgeT2ykZnKq1CGJbO
k8OVIy8QyWctA8vYQo7eB1NObynHSl8aedA2y7mc9w9lqApcBjo=
=OjnA
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to