Bug 43534 - Update to UCS 4.2 fails due to spamassassin
Update to UCS 4.2 fails due to spamassassin
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - Release updates
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Stefan Gohmann
Felix Botner
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-14 07:27 CET by Stefan Gohmann
Modified: 2018-04-16 16:19 CEST (History)
1 user (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
updater.log (1.62 MB, text/plain)
2017-02-14 07:27 CET, Stefan Gohmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2017-02-14 07:27:29 CET
Created attachment 8425 [details]
updater.log

My test update autotest-070-update-4.0-to-4.1-master-s3.cfg fails due to spamassassin:
---------------------------------------------------------------------------------
Processing triggers for spamassassin (3.3.2-5.51.201502251241) ...
Restarting SpamAssassin Mail Filter Daemon: Can't locate NetAddr/IP.pm in @INC (you may need to install the NetAddr::IP module) (@INC contains: /usr/share/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl) at /usr/share/perl5/Mail/SpamAssassin/NetSet.pm line 25.
BEGIN failed--compilation aborted at /usr/share/perl5/Mail/SpamAssassin/NetSet.pm line 25.
Compilation failed in require at /usr/share/perl5/Mail/SpamAssassin/Conf.pm line 86.
BEGIN failed--compilation aborted at /usr/share/perl5/Mail/SpamAssassin/Conf.pm line 86.
Compilation failed in require at /usr/share/perl5/Mail/SpamAssassin.pm line 71.
BEGIN failed--compilation aborted at /usr/share/perl5/Mail/SpamAssassin.pm line 71.
Compilation failed in require at /usr/sbin/spamd line 85.
BEGIN failed--compilation aborted at /usr/sbin/spamd line 85.
invoke-rc.d: initscript spamassassin, action "restart" failed.
dpkg: error processing package spamassassin (--configure):
 subprocess installed post-installation script returned error exit status 2
---------------------------------------------------------------------------------
Comment 1 Stefan Gohmann univentionstaff 2017-02-14 08:02:15 CET
The previous updater.log part is incomplete. It is triggered by the perl update:

------------------------------------------------------------------------------
Setting up perl (5.20.2-3+deb8u6) ...
Processing triggers for spamassassin (3.3.2-5.51.201502251241) ...
Restarting SpamAssassin Mail Filter Daemon: Can't locate NetAddr/IP.pm in @INC (you may need to install the NetAddr::IP module) (@INC contains: /usr/share/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl) at /usr/share/perl5/Mail/SpamAssassin/NetSet.pm line 25.
BEGIN failed--compilation aborted at /usr/share/perl5/Mail/SpamAssassin/NetSet.pm line 25.
Compilation failed in require at /usr/share/perl5/Mail/SpamAssassin/Conf.pm line 86.
BEGIN failed--compilation aborted at /usr/share/perl5/Mail/SpamAssassin/Conf.pm line 86.
Compilation failed in require at /usr/share/perl5/Mail/SpamAssassin.pm line 71.
BEGIN failed--compilation aborted at /usr/share/perl5/Mail/SpamAssassin.pm line 71.
Compilation failed in require at /usr/sbin/spamd line 85.
BEGIN failed--compilation aborted at /usr/sbin/spamd line 85.
invoke-rc.d: initscript spamassassin, action "restart" failed.
dpkg: error processing package spamassassin (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 spamassassin
------------------------------------------------------------------------------
Comment 2 Stefan Gohmann univentionstaff 2017-02-15 21:42:56 CET
r17192:
The UCS 4.2 upgrade fails due to a spamassassin restart while updating perl. Added a Breaks to old spamassassin packages (Bug #43534)
Comment 3 Stefan Gohmann univentionstaff 2017-02-16 11:13:09 CET
(In reply to Stefan Gohmann from comment #2)
> r17192:
> The UCS 4.2 upgrade fails due to a spamassassin restart while updating perl.
> Added a Breaks to old spamassassin packages (Bug #43534)

My tests were successful.

I had to build perl with -j 1 otherwise the build failed:
 build-package-ng -r 4.2-0-0 -P ucs -p perl -j 1
 build-package-architecture-ng -r 4.2-0-0 -P ucs -p perl -j 1

Changelog: r76730
Comment 4 Felix Botner univentionstaff 2017-02-22 12:39:09 CET
OK - update to 4.2 with spamassassin
OK - changelog
Comment 5 Stefan Gohmann univentionstaff 2017-04-04 18:29:40 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".