Bug 43580 - UCS4.2: adapt squid config template to upstream changes
UCS4.2: adapt squid config template to upstream changes
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Squid
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
: interim-3
Depends on:
Blocks: 43581 43676
  Show dependency treegraph
 
Reported: 2017-02-20 09:41 CET by Daniel Tröder
Modified: 2017-04-04 18:28 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2017-02-20 09:41:36 CET
In Jessies squid 3.4 /usr/lib/squid3/squid_ldap_auth doesn't exist anymore.
Probably /usr/lib/squid3/basic_ldap_auth is the replacement (see https://packages.debian.org/jessie/amd64/squid3/filelist).

The update of squid3 fails:

squid-langpack (20140506-1) wird eingerichtet ...
squid3-common (3.4.8-6+deb8u4) wird eingerichtet ...
squid3 (3.4.8-6+deb8u4) wird eingerichtet ...
Neue Version der Konfigurationsdatei /etc/init.d/squid3 wird installiert ...
Neue Version der Konfigurationsdatei /etc/logrotate.d/squid3 wird installiert ...
Neue Version der Konfigurationsdatei /etc/resolvconf/update-libc.d/squid3 wird installiert ...
Neue Version der Konfigurationsdatei /etc/squid3/squid.conf.debian wird installiert ...
Filtering squid.conf manager ACL.
insserv: warning: script 'K01univention-firewall' missing LSB tags and overrides
insserv: warning: script 'K01univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'K01univention-saml' missing LSB tags and overrides
insserv: warning: script 'K01univention-management-console-web-server' missing LSB tags and overrides
insserv: warning: script 'K01univention-s4-connector' missing LSB tags and overrides
insserv: warning: script 'univention-firewall' missing LSB tags and overrides
insserv: warning: script 'univention-management-console-web-server' missing LSB tags and overrides
insserv: warning: script 'univention-saml' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot-prepare' missing LSB tags and overrides
insserv: warning: script 'univention-s4-connector' missing LSB tags and overrides
[FAIL] FATAL ERROR: auth_param basic program /usr/lib/squid3/squid_ldap_auth: (2) No such file or directory ... failed!
invoke-rc.d: initscript squid3, action "restart" failed.
dpkg: Fehler beim Bearbeiten des Paketes squid3 (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 3 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von univention-squid:
 univention-squid hängt ab von squid3; aber:
  Paket squid3 ist noch nicht konfiguriert.

dpkg: Fehler beim Bearbeiten des Paketes univention-squid (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Comment 1 Daniel Tröder univentionstaff 2017-02-20 09:45:16 CET
This happend during an upgrade from UCS 4.1 (with UCS@school 4.1R2 v10 installed) to UCS 4.2.
Comment 2 Daniel Tröder univentionstaff 2017-03-01 11:23:42 CET
r77193: adapt squid3 configuration to upstream changes, 4.2-changelog

To prevent the failed postinst of the squid3 package, its configuration is temporarily manipulated in univention-squids preinst.

43_proxy/??_* ran all successfully.

Package: univention-squid
Version: 10.0.0-4A~4.2.0.201703011120
Branch: ucs_4.2-0
Comment 3 Florian Best univentionstaff 2017-03-02 14:05:21 CET
squidguard (1.5-4A~4.2.0.201703021035) wird eingerichtet ...
Rebuild of SquidGuard database not needed.
FATAL ERROR: auth_param basic program /usr/lib/squid3/squid_ldap_auth: (2) No such file or directory ... failed!
invoke-rc.d: initscript squid3, action "force-reload" failed.
dpkg: Fehler beim Bearbeiten des Paketes squidguard (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 3 zurück
Fehler traten auf beim Bearbeiten von:
 squidguard
E: Sub-process /usr/bin/dpkg returned an error code (1)
Comment 4 Daniel Tröder univentionstaff 2017-03-02 15:48:44 CET
How / when did you install squid?

The fix only works (and is only necessary) when squid is already installed when upgrading from 4.1 to 4.2!
If you had it already installed in UCS 4.2 (9.99 > version < 10.0.0-4) and are upgrading the package it will not work.
Comment 5 Daniel Tröder univentionstaff 2017-03-02 16:04:27 CET
was a dev system with 10.0.0-1 > univention-squid < 10.0.0-4, so the fix in the preinst didn't trigger
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2017-03-17 18:00:15 CET
OK: code change
OK: installation / config
??: update path 4.1→4.2
OK: advisory
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2017-03-23 17:46:47 CET
(In reply to Sönke Schwardt-Krummrich from comment #6)
> ??: update path 4.1→4.2
OK
Comment 8 Stefan Gohmann univentionstaff 2017-04-01 15:59:56 CEST
See Bug #44210, it might happen that the squid config is rewritten between the univetion-squid preinst and the squid postinst.
Comment 9 Stefan Gohmann univentionstaff 2017-04-04 18:28:32 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".