sa-update fails to run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
spamassassin (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 14.04.2 LTS
Spamassassin 3.4.0-1ubuntu2.1
What should happen:
sa-update should run on the daily cron job without error
What does happen:
sa-update fails with error:
could not find working mirror, channel failed
The problem is related to perl's wonky threading. The fork call in sa-update that utilizes curl/wget/fetch to retrieve data results in the child process immediately dying from a SIGPIPE signal.
Adding the following at line 132 fixes the problem:
$SIG{PIPE} = 'IGNORE';
I can't vouch for whether that is the RIGHT thing to do, but it seems ok in context and does allow sa-update to run.
I will attach before and after logs running sa-update as configured by the package's daily cron task. (note that between the two runs I also updated the gpg key).
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: spamassassin 3.4.0-1ubuntu2.1 [modified: usr/bin/sa-update]
ProcVersionSign
Uname: Linux 3.13.0-55-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
Date: Thu Jul 9 09:05:05 2015
InstallationDate: Installed on 2013-07-19 (720 days ago)
InstallationMedia: Ubuntu-Server 13.04 "Raring Ringtail" - Release amd64 (20130423.1)
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: spamassassin
UpgradeStatus: Upgraded to trusty on 2014-08-16 (326 days ago)
modified.
modified.
mtime.conffile.
mtime.conffile.
Changed in spamassassin (Ubuntu): | |
importance: | Undecided → High |
importance: | High → Undecided |
tags: | added: bot-stop-nagging |