unattended-upgrade crashed with IOError: [Errno 9] Bad file descriptor

Bug #1004792 reported by Leonardo de Almeida Soares Coelho
86
This bug affects 18 people
Affects Status Importance Assigned to Milestone
unattended-upgrades (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Always happens as i logon

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: unattended-upgrades 0.76
Uname: Linux 3.4.0-030400-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
CrashCounter: 1
Date: Fri May 25 01:09:56 2012
ExecutablePath: /usr/bin/unattended-upgrade
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/unattended-upgrade
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/sh
PythonArgs: ['/usr/bin/unattended-upgrade']
SourcePackage: unattended-upgrades
Title: unattended-upgrade crashed with IOError: [Errno 9] Bad file descriptor
Traceback: IOError: [Errno 9] Bad file descriptor
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Leonardo de Almeida Soares Coelho (leosoares1989) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Changed in unattended-upgrades (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unattended-upgrades (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

A traceback would be really helpful for this error.

Changed in unattended-upgrades (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Chris (birmingh) wrote :

I get this same error on startup of 12.04. The crash report app has the same "Bad file descriptor" error. The crash only appears to happen on startup. I can run unattended-upgrade from the console after startup and no errors are returned. This crash happens every time I boot. Not sure how to get a traceback from an app at startup.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unattended-upgrades (Ubuntu) because there has been no activity for 60 days.]

Changed in unattended-upgrades (Ubuntu):
status: Incomplete → Expired
Revision history for this message
David Ward (djw77) wrote :

I get the same problem on 12.04

Changed in unattended-upgrades (Ubuntu):
status: Expired → Confirmed
Revision history for this message
David Ward (djw77) wrote :

Contents of /var/log/unattended-upgrades/unattended-upgrades-dpkg_2013-03-07_08\:01\:00.261154.log

Revision history for this message
John Pugh (jpugh) wrote :

Going to mark as incomplete since this appears to be a issue with unattended-upgrades encountering something wrong in the files it reads from. In my case it appears a update to trusted.gpg did not complete and left a backup copy.

unattended-upgrades should instead handle the error more gracefully, but that needs to be a different bug.

Changed in unattended-upgrades (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Samuel Doerig (samy-doerig) wrote :

Absolute same issue here, if called from cron. When I call unattended-upgrade manually (directly logged in as root - not via sudo) no issues at all. Everything that's claimed "not found" is there in reality! root's PATH contains the needed paths. No I added PATH to root's crontab explicitly - will come back when this leads me to successful automatic unattended-upgrades...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unattended-upgrades (Ubuntu) because there has been no activity for 60 days.]

Changed in unattended-upgrades (Ubuntu):
status: Incomplete → Expired
Revision history for this message
LAZA (laza74) wrote :

Got this on 2 Internet-Cafe machines , one did the update.

Xubuntu 14.04.1

Changed in unattended-upgrades (Ubuntu):
status: Expired → New
tags: added: trusty
Revision history for this message
LAZA (laza74) wrote :
tags: removed: trusty
Revision history for this message
Tuomas Heino (iheino+ub) wrote :

Fyi, crash reporter claimed two instances of running out of space being DuplicateOf this bug.

In case of running out of inodes or disk space, crash reporter's "If you notice further problems, try restarting the computer." advice sounds rather harmful. Maybe a topic for another bug report though.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unattended-upgrades (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.