Bug 44915 - Update aborted due to detected problems sysv-rc.postinst
Update aborted due to detected problems sysv-rc.postinst
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - Release updates
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2-1-errata
Assigned To: Janek Walkenhorst
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-30 15:21 CEST by Sönke Schwardt-Krummrich
Modified: 2017-07-26 14:38 CEST (History)
6 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 7: Crash: Bug causes crash or data loss
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.240
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017071721000475, 2017072021000441, 2017072421000327, 2017070321000483
Bug group (optional):
Max CVSS v3 score:


Attachments
Logfile mentioned in the postinst output (consecutive, duplicate lines have been removed via "uniq") (4.94 KB, text/plain)
2017-06-30 15:23 CEST, Sönke Schwardt-Krummrich
Details
insserv/run-20170706T1550.log (8.85 KB, text/x-log)
2017-07-06 16:18 CEST, Tobias Birkefeld
Details
exim4 (6.30 KB, application/x-shellscript)
2017-07-26 12:47 CEST, Felix Botner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2017-06-30 15:21:53 CEST
Update aborted on customer system (DC slave) from 4.1-4 to 4.2-0:

Looks like a dependency loop of the init.d scripts was found by insserv and this killed the update.

---[cut]---
Entpacken von sysv-rc (2.88dsf-59A~4.2.0.201703021459) über (2.88dsf-41.43.201408220944) ...
sysv-rc (2.88dsf-59A~4.2.0.201703021459) wird eingerichtet ...
info: Reordering boot system, log to /var/lib/insserv/run-20170630T1223.log
error: Something failed while migrating.

error: Unable to migrate to dependency based boot sequencing.

See http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot for
more information about dependency based boot sequencing. To
reattempt the migration process run 'dpkg --configure sysv-rc'.

dpkg: Fehler beim Bearbeiten des Paketes sysv-rc (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 sysv-rc
---[cut]---

After moving /etc/init.d/univention-directory-policy away, it was possible to continue the update and the postinst of sysv-rc ran successfully.

Afterwards the new version was moved back and now it looks okay.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2017-06-30 15:23:51 CEST
Created attachment 8990 [details]
Logfile mentioned in the postinst output (consecutive, duplicate lines have been removed via "uniq")
Comment 2 Tobias Birkefeld univentionstaff 2017-07-06 16:17:37 CEST
Same issue here at another customer environment.

UCS: 4.1-4 errata439
App Center compatibility: 4
Installed: squid=3.1
Comment 3 Tobias Birkefeld univentionstaff 2017-07-06 16:18:19 CEST
Created attachment 9003 [details]
insserv/run-20170706T1550.log
Comment 4 Stefan Gohmann univentionstaff 2017-07-18 07:46:17 CEST
We should "fix" it in our 4.2-0 preup.sh script.
Comment 5 Christina Scheinig univentionstaff 2017-07-18 11:40:01 CEST
Again in Ticket 2017071721000475
Comment 6 Nico Stöckigt univentionstaff 2017-07-20 16:37:08 CEST
again in Ticket 2017072021000441
Comment 7 Nico Stöckigt univentionstaff 2017-07-20 20:34:46 CEST
(In reply to Nico Stöckigt from comment #6)
> again in Ticket 2017072021000441

in this environment also 'univention-saml' had to been moved away to do the trick!
Comment 8 Janek Walkenhorst univentionstaff 2017-07-24 18:46:06 CEST
Added a check to preup.sh (on test mirror and in SVN) to try to detect these kind of problems before the update.
Comment 9 Nico Stöckigt univentionstaff 2017-07-25 15:43:16 CEST
again in a customer environment (started with UCS 3.1) both init-scripts are conflicting.
- univention-directory-policy
- univention-saml
Comment 10 Nico Stöckigt univentionstaff 2017-07-25 15:45:28 CEST
(In reply to Tobias Birkefeld from comment #3)
> Created attachment 9003 [details]
> insserv/run-20170706T1550.log

according to the log these init-scripts depends on plymouth which is removed from system.
Comment 11 Janek Walkenhorst univentionstaff 2017-07-25 17:21:30 CEST
*** Bug 44924 has been marked as a duplicate of this bug. ***
Comment 12 Janek Walkenhorst univentionstaff 2017-07-26 12:41:28 CEST
We could also check the insserv --dryrun output for messages like
insserv: script postfix: service mail-transport-agent already provided!

Additionally we could make all init scripts have the "INIT INFO" headers in 4.1-4  already to not have race conditions during the update.
Comment 13 Felix Botner univentionstaff 2017-07-26 12:47:25 CEST
Created attachment 9058 [details]
exim4

Reproducible with:

* UCS 4.1- copy the exim4 init script to /etc/init.d/ 
* insserv -n returns 0
* start update to 4.2
* postfix will fail (although the new "insserv" -n returns 0, insserv -n postfix fails, and this is what update-rc.d postfix defaults calls, and this is started in postfix.postinst during the update)
Comment 14 Felix Botner univentionstaff 2017-07-26 12:55:41 CEST
OK, works, 

please copy this to updates.software-univention.de
Comment 15 Janek Walkenhorst univentionstaff 2017-07-26 14:22:56 CEST
(In reply to Felix Botner from comment #14)
> OK, works, 
> 
> please copy this to updates.software-univention.de
done
Comment 16 Felix Botner univentionstaff 2017-07-26 14:36:25 CEST
OK
Comment 17 Janek Walkenhorst univentionstaff 2017-07-26 14:38:55 CEST
new version is public