package docker.io 1.12.6-0ubuntu1~16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1677541 reported by Azmin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
docker.io (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Kha 2017-03-30 17:52:34 MYT; 5ms ago
     Docs: https://docs.docker.com
  Process: 7116 ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)
 Main PID: 7116 (code=exited, status=1/FAILURE)

Mac 30 17:52:34 Azm7n-PC systemd[1]: Starting Docker Application....
Mac 30 17:52:34 Azm7n-PC dockerd[7116]: time="2017-03-30T17:52:34...
Mac 30 17:52:34 Azm7n-PC systemd[1]: docker.service: Main proces...E
Mac 30 17:52:34 Azm7n-PC systemd[1]: Failed to start Docker Appl....
Mac 30 17:52:34 Azm7n-PC systemd[1]: docker.service: Unit entere....
Mac 30 17:52:34 Azm7n-PC systemd[1]: docker.service: Failed with....
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package docker.io (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up ubuntu-fan (0.9.2) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 docker.io
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: docker.io 1.12.6-0ubuntu1~16.04.1
ProcVersionSignature: Ubuntu 4.8.0-41.44~16.04.1-generic 4.8.17
Uname: Linux 4.8.0-41-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Thu Mar 30 17:52:34 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2017-02-25 (33 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.19
SourcePackage: docker.io
Title: package docker.io 1.12.6-0ubuntu1~16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
upstart.docker.override: manual

Revision history for this message
Azmin (azm7n) wrote :
Revision history for this message
Marc Deslauriers (mdeslaur) wrote : Bug is not a security issue

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

information type: Private Security → Public
tags: removed: need-duplicate-check
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
Thank you for taking the time to report this bug and helping to make Ubuntu better.

From the log:
Mac 30 17:21:18 hostname systemd-udevd[31581]: Could not generate persistent MAC address for docker0: No such file or directory
Mac 30 17:21:18 hostname kernel: aufs au_opts_verify:1597:dockerd[31512]: dirperm1 breaks the protection by the permission bits on the lower branch
Mac 30 17:22:51 hostname systemd-udevd[31804]: Could not generate persistent MAC address for veth9093749: No such file or directory
Mac 30 17:22:51 hostname NetworkManager[988]: <warn> [1490865771.6892] device (veth64ee632): failed to find device 5 'veth64ee632' with udev
Mac 30 17:22:51 hostname systemd-udevd[31803]: Could not generate persistent MAC address for veth64ee632: No such file or directory
Mac 30 17:22:51 hostname NetworkManager[988]: <warn> [1490865771.6907] device (veth9093749): failed to find device 6 'veth9093749' with udev
Mac 30 17:22:52 hostname NetworkManager[988]: <warn> [1490865772.4113] device (veth64ee632): failed to find device 5 'veth64ee632' with udev
Mac 30 17:49:14 hostname systemd[1]: Failed to start Docker Application Container Engine.
Mac 30 17:49:14 hostname systemd[1]: docker.service: Failed with result 'exit-code'.

So the reason it fails is since it can't restart docker for the errors above.

I'm not the biggest docker expert, but I looked a bit around.
AFAIK the aufs message is ugly but expected, but on the second one I found https://github.com/systemd/systemd/issues/3374

Do the docker containters work before the update?
If so what is the output of:
$ systemctl status docker
$ systemctl status <docker-app-name>.service -l

Given the history on similar bugs it seems likely to me that this is a local configuration problem, rather than a bug in Ubuntu, I'm marking this bug as Incomplete for now.

Or if you believe that this is really a bug, please provide the requested extra info as good as possible and set the status back to "new".
On top please share your docker configuration. Since the issue I found seems to depend on the device type you bridge to these are especially important.

Changed in docker.io (Ubuntu):
status: New → Incomplete
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.