unattended-update installArchives

Bug #1632361 reported by Johnish
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
unattended-upgrades (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned

Bug Description

run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-98-generic /boot/vmlinuz-3.13.0-98-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-98-generic
Found initrd image: /boot/initrd.img-3.13.0-98-generic
Found linux image: /boot/vmlinuz-3.13.0-85-generic
Found initrd image: /boot/initrd.img-3.13.0-85-generic
Found linux image: /boot/vmlinuz-3.13.0-83-generic
Found initrd image: /boot/initrd.img-3.13.0-83-generic
done
Setting up mysql-client-core-5.5 (5.5.52-0ubuntu0.14.04.1) ...
Setting up mysql-client-5.5 (5.5.52-0ubuntu0.14.04.1) ...
Setting up mysql-server-core-5.5 (5.5.52-0ubuntu0.14.04.1) ...
Setting up mysql-server-5.5 (5.5.52-0ubuntu0.14.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.5; however:
  Package mysql-server-5.5 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Setting up php5-common (5.5.9+dfsg-1ubuntu4.20) ...
No apport report written because the error message indicates its a followup error from a previous failure.
php5_invoke pdo: already enabled for apache2 SAPI
php5_invoke pdo: already enabled for cli SAPI
php5_invoke opcache: already enabled for apache2 SAPI
php5_invoke opcache: already enabled for cli SAPI
Setting up php5-mysql (5.5.9+dfsg-1ubuntu4.20) ...
php5_invoke mysql: already enabled for apache2 SAPI
php5_invoke mysql: already enabled for cli SAPI
php5_invoke mysqli: already enabled for apache2 SAPI
php5_invoke mysqli: already enabled for cli SAPI
php5_invoke pdo_mysql: already enabled for apache2 SAPI
php5_invoke pdo_mysql: already enabled for cli SAPI
Setting up php5-cli (5.5.9+dfsg-1ubuntu4.20) ...
php5_invoke opcache: already enabled for cli SAPI
php5_invoke apcu: already enabled for cli SAPI
php5_invoke json: already enabled for cli SAPI
php5_invoke pdo_mysql: already enabled for cli SAPI
php5_invoke pdo: already enabled for cli SAPI
php5_invoke mysqli: already enabled for cli SAPI
php5_invoke mysql: already enabled for cli SAPI
php5_invoke gd: already enabled for cli SAPI
php5_invoke mcrypt: already enabled for cli SAPI
php5_invoke curl: already enabled for cli SAPI
php5_invoke readline: already enabled for cli SAPI
Setting up php5-readline (5.5.9+dfsg-1ubuntu4.20) ...
php5_invoke readline: already enabled for apache2 SAPI
php5_invoke readline: already enabled for cli SAPI
Setting up apache2-bin (2.4.7-1ubuntu4.13) ...
Setting up apache2-data (2.4.7-1ubuntu4.13) ...
Setting up apache2 (2.4.7-1ubuntu4.13) ...
Installing new version of config file /etc/apache2/mods-available/mpm_prefork.load ...
Installing new version of config file /etc/apache2/mods-available/mpm_worker.load ...
Installing new version of config file /etc/apache2/mods-available/mpm_event.load ...
 * Restarting web server apache2
   ...done.
Setting up apache2-mpm-prefork (2.4.7-1ubuntu4.13) ...
Setting up libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.20) ...
php5_invoke opcache: already enabled for apache2 SAPI
php5_invoke apcu: already enabled for apache2 SAPI
php5_invoke json: already enabled for apache2 SAPI
php5_invoke pdo_mysql: already enabled for apache2 SAPI
php5_invoke pdo: already enabled for apache2 SAPI
php5_invoke mysqli: already enabled for apache2 SAPI
php5_invoke mysql: already enabled for apache2 SAPI
php5_invoke gd: already enabled for apache2 SAPI
php5_invoke mcrypt: already enabled for apache2 SAPI
php5_invoke curl: already enabled for apache2 SAPI
php5_invoke readline: already enabled for apache2 SAPI
apache2_invoke php5: already enabled
 * Restarting web server apache2
   ...done.
Setting up php5-gd (5.5.9+dfsg-1ubuntu4.20) ...
php5_invoke gd: already enabled for apache2 SAPI
php5_invoke gd: already enabled for cli SAPI
Setting up php5-curl (5.5.9+dfsg-1ubuntu4.20) ...
php5_invoke curl: already enabled for apache2 SAPI
php5_invoke curl: already enabled for cli SAPI
Setting up apt-utils (1.0.1ubuntu2.13) ...
Setting up apt-transport-https (1.0.1ubuntu2.13) ...
Setting up libisc95 (1:9.9.5.dfsg-3ubuntu0.9) ...
Setting up libdns100 (1:9.9.5.dfsg-3ubuntu0.9) ...
Setting up libisccc90 (1:9.9.5.dfsg-3ubuntu0.9) ...
Setting up libisccfg90 (1:9.9.5.dfsg-3ubuntu0.9) ...
Setting up libbind9-90 (1:9.9.5.dfsg-3ubuntu0.9) ...
Setting up liblwres90 (1:9.9.5.dfsg-3ubuntu0.9) ...
Setting up bind9-host (1:9.9.5.dfsg-3ubuntu0.9) ...
Setting up dnsutils (1:9.9.5.dfsg-3ubuntu0.9) ...
Setting up dosfstools (3.0.26-1ubuntu0.1) ...
Setting up openssh-client (1:6.6p1-2ubuntu2.8) ...
Setting up openssh-sftp-server (1:6.6p1-2ubuntu2.8) ...
Setting up openssh-server (1:6.6p1-2ubuntu2.8) ...
ssh stop/waiting
ssh start/running, process 31732
Setting up openssl (1.0.1f-1ubuntu2.21) ...
Setting up wget (1.15-1ubuntu1.14.04.2) ...
Setting up libdpkg-perl (1.17.5ubuntu5.6) ...
Setting up dpkg-dev (1.17.5ubuntu5.6) ...
Setting up fontconfig (2.11.0-0ubuntu4.2) ...
Regenerating fonts cache... done.
Setting up linux-headers-3.13.0-98 (3.13.0-98.145) ...
Setting up linux-headers-3.13.0-98-generic (3.13.0-98.145) ...
Setting up linux-image-virtual (3.13.0.98.106) ...
Setting up linux-headers-generic (3.13.0.98.106) ...
Setting up linux-headers-virtual (3.13.0.98.106) ...
Setting up linux-virtual (3.13.0.98.106) ...
Setting up php-pear (5.5.9+dfsg-1ubuntu4.20) ...
Installing new version of config file /etc/pear/pear.conf ...
Setting up php5 (5.5.9+dfsg-1ubuntu4.20) ...
Setting up php5-dev (5.5.9+dfsg-1ubuntu4.20) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Processing triggers for libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.20) ...
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
Error in function:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
E:Problem closing the file /var/cache/apt/archives/php-pear_5.5.9+dfsg-1ubuntu4.20_all.deb - close (9: Bad file descriptor), E:Problem closing the gzip file - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/php-pear_5.5.9+dfsg-1ubuntu4.20_all.deb - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/php5_5.5.9+dfsg-1ubuntu4.20_all.deb - close (9: Bad file descriptor), E:Problem closing the gzip file - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/php5_5.5.9+dfsg-1ubuntu4.20_all.deb - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/php5-dev_5.5.9+dfsg-1ubuntu4.20_amd64.deb - close (9: Bad file descriptor), E:Problem closing the gzip file - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/php5-dev_5.5.9+dfsg-1ubuntu4.20_amd64.deb - close (9: Bad file deException happened during upgrade.
Traceback (most recent call last):
  File "/usr/bin/unattended-upgrades", line 365, in cache_commit
    res = cache.commit(install_progress=iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 505, in commit
    raise SystemError("installArchives() failed")
SystemError: installArchives() failed
Installing the upgrades failed!
error message: 'installArchives() failed'
dpkg returned a error! See '/var/log/unattended-upgrades/unattended-upgrades-dpkg_2016-10-11_14:40:34.598848.log' for details

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: unattended-upgrades 0.82.1ubuntu2.4
ProcVersionSignature: User Name 3.13.0-85.129-generic 3.13.11-ckt36
Uname: Linux 3.13.0-85-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
Date: Tue Oct 11 14:43:56 2016
Ec2AMI: ami-4d5e5e27
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-east-1a
Ec2InstanceType: t2.micro
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: unattended-upgrades
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Johnish (johnish411) wrote :
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
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unattended-upgrades - 0.98ubuntu1

---------------
unattended-upgrades (0.98ubuntu1) artful; urgency=medium

  * Merge from Debian unstable (LP: #1722426)
    - Remaining changes:
      - unattended-upgrades: Do not automatically upgrade the development
        release of Ubuntu unless Unattended-Upgrade::DevRelease is true.
    - Dropped changes, included in Debian:
      - Use lsb_release instead of dpkg-vendor in postinst

unattended-upgrades (0.98) unstable; urgency=medium

  * Rename test to test_non_minimal_steps_upgrade to reflect content
  * Catch SystemError while keeping apt lock unlocked (LP: #1632361)
  * Add --stop-only option to unattended-upgrade-shutdown and use it on
    hibernation. This prevents starting unattended-upgrades right before
    hibernating when Unattended-Upgrade::InstallOnShutdown is true.
    (Closes: #610333)
  * Stop already running unattended-upgrades before hibernation even with
    systemd (LP: #1455097)
  * Use lsb_release instead of dpkg-vendor in postinst (LP: #1719630)
  * Update README.md with the fact that unattended=upgrades is enabled
    by default (Closes: #865519)

 -- Balint Reczey <email address hidden> Tue, 10 Oct 2017 03:47:58 +0200

Changed in unattended-upgrades (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Balint Reczey (rbalint) wrote :

The fix for unattended-upgrades cleaned up error-handling in this area, but there is no user-visible improvement on u-u's side.

Changed in unattended-upgrades (Ubuntu):
status: Fix Released → New
status: New → Invalid
Revision history for this message
Balint Reczey (rbalint) wrote :

This is rather a mysql bug or a local configuration issue since apparently the maintainer scripts are failing to start the server.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This needs actual logs to be actionable. Since it happened years ago, I find it unlikely there will be any.

Marking the bug as incomplete just in case someone still has this happening and can provide further info.

Changed in mysql-5.5 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in mysql-5.5 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (33.9 KiB)

This bug was fixed in the package unattended-upgrades - 1.1ubuntu1.18.04.7~16.04.2

---------------
unattended-upgrades (1.1ubuntu1.18.04.7~16.04.2) xenial; urgency=medium

  * Don't check blacklist too early and report updates from not allowed origins
    as kept back. (LP: #1781176)
  * test/test_blacklisted_wrong_origin.py: Fix and enable test
  * Filter out progress indicator from dpkg log (LP: #1599646)
  * Clear cache when autoremoval fails (LP: #1779157)
  * Find autoremovable kernel packages using the patterns in APT's way
    (LP: #1815494)

unattended-upgrades (1.1ubuntu1.18.04.7~16.04.1) xenial; urgency=medium

  * Start service after systemd-logind.service to be able to take inhibition
    lock (LP: #1806487)
  * Handle gracefully when logind is down (LP: #1806487)

unattended-upgrades (1.1ubuntu1.18.04.7~16.04.0) xenial; urgency=medium

  * Backport to Xenial (LP: #1702793)
  * Revert to build-depending on debhelper (>= 9~) and dh-systemd
  * Revert configuration example changes to avoid triggering a debconf question
  * debian/postinst: Update recovery to be triggered on Xenial's package versions

unattended-upgrades (1.1ubuntu1.18.04.7) bionic; urgency=medium

  * Trigger unattended-upgrade-shutdown actions with PrepareForShutdown()
    Performing upgrades in service's ExecStop did not work when the upgrades
    involved restarting services because systemd blocked other stop/start
    actions making maintainer scripts time out and be killed leaving a broken
    system behind.
    Running unattended-upgrades.service before shutdown.target as a oneshot
    service made it run after unmounting filesystems and scheduling services
    properly on shutdown is a complex problem and adding more services to the
    mix make it even more fragile.
    The solution of monitoring PrepareForShutdown() signal from DBus
    allows Unattended Upgrade to run _before_ the jobs related to shutdown are
    queued thus package upgrades can safely restart services without
    risking causing deadlocks or breaking part of the shutdown actions.
    Also ask running unattended-upgrades to stop when shutdown starts even in
    InstallOnShutdown mode and refactor most of unattended-upgrade-shutdown to
    UnattendedUpgradesShutdown class. (LP: #1778219)
  * Increase logind's InhibitDelayMaxSec to 30s. (LP: #1778219)
    This allows more time for unattended-upgrades to shut down gracefully
    or even install a few packages in InstallOnShutdown mode, but is still a
    big step back from the 30 minutes allowed for InstallOnShutdown previously.
    Users enabling InstallOnShutdown node are advised to increase
    InhibitDelayMaxSec even further possibly to 30 minutes.
    - Add NEWS entry about increasing InhibitDelayMaxSec and InstallOnShutdown
      changes
  * Ignore "W503 line break before binary operator"
    because it will become the best practice and breaks the build
  * Stop using ActionGroups, they interfere with apt.Cache.clear()
    causing all autoremovable packages to be handled as newly autoremovable
    ones and be removed by default. Dropping ActionGroup usage does not slow
    down the most frequent case of not having anything to upgrade a...

Changed in unattended-upgrades (Ubuntu):
status: Invalid → Fix Released
Mathew Hodson (mhodson)
no longer affects: mysql-5.5 (Ubuntu)
Changed in unattended-upgrades (Ubuntu Xenial):
status: New → Fix Released
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.