docker.io upgrade to 20.10.2-0ubuntu1~20.04.2 failed

Bug #1922203 reported by Mikko Pesari
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
docker.io (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Updating docker.io from focal-proposed (19.03.8-0ubuntu1.20.04.2 -> 20.10.2-0ubuntu1~20.04.2) fails with this error message:

mv: cannot stat '/var/lib/docker.migrating/*': No such file or directory
dpkg: error processing package docker.io (--configure):
 installed docker.io package post-installation script subprocess returned error exit status 1

After adding "set -x" to "/var/lib/dpkg/info/docker.io.postinst":

# dpkg --configure -a
Setting up docker.io (20.10.2-0ubuntu1~20.04.2) ...
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/docker.io.postinst configure 19.03.8-0ubuntu1.20.04.2
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z ]
+ exec
+ [ ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ [ -z 19.03.8-0ubuntu1.20.04.2 ]
+ dpkg --compare-versions 19.03.8-0ubuntu1.20.04.2 le-nl 1.11.2~ds1-1
+ command -v zfs
+ [ -x /usr/sbin/zfs ]
+ modinfo zfs
+ zfs mount
+ awk $2=="/" {print $1}
+ cut -d/ -f1
+ rpool=rpool
+ [ -n rpool ]
+ findmnt -n -o SOURCE /var/lib/docker
+ dockermnt=rpool/var/lib/docker
+ echo rpool/var/lib/docker
+ grep -qE ^$|/ROOT/
+ dpkg --compare-versions 19.03.8-0ubuntu1.20.04.2 le-nl 19.03.8-0ubuntu2
+ mv /var/lib/docker.migrating/* /var/lib/docker/
mv: cannot stat '/var/lib/docker.migrating/*': No such file or directory
dpkg: error processing package docker.io (--configure):
 installed docker.io package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 docker.io

If it's any help, my /var/lib/docker is zfs, but it's not under rpool/ROOT:

TARGET SOURCE FSTYPE OPTIONS
/ rpool/ROOT/ubuntu_uryi4p zfs rw,relatime,xattr,posixacl
├─/var/lib rpool/ROOT/ubuntu_uryi4p/var/lib zfs rw,noatime,xattr,posixacl
│ ├─/var/lib/apt rpool/ROOT/ubuntu_uryi4p/var/lib/apt zfs rw,noatime,xattr,posixacl
│ ├─/var/lib/docker rpool/var/lib/docker zfs rw,noatime,xattr,posixacl

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

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

Changed in docker.io (Ubuntu):
status: New → Confirmed
Revision history for this message
Dominik Menke (dmnke) wrote :

Same here. On 3/7 of my hosts I get the error described above. These 3 hosts use ZFS while the remaining 4 don't.

# zfs list | fgrep docker | head -5
rpool/var/lib/docker 5.73G 236G 2.74G /var/lib/docker
rpool/var/lib/docker/02ab2ebf084ea49d866da646b1b869470e353a74601835f9c123db737db9967b 128K 236G 48.4M legacy
rpool/var/lib/docker/03365fb21bd8b5b8d5b85ac7618c0051a9028110c694cc0dcd126f591dae2870 1.84M 236G 425M legacy
rpool/var/lib/docker/03365fb21bd8b5b8d5b85ac7618c0051a9028110c694cc0dcd126f591dae2870-init 192K 236G 425M legacy
rpool/var/lib/docker/06017e672ec1ac0d27aaaa1ebf3d3b2b737634ed2e4bdaed863fb84c9c1e2aad 208K 236G 48.5M legacy

Not sure what to make of this, yet.

Revision history for this message
Corny (digineo) wrote :

My workaround is:

mkdir -p /var/lib/docker.migrating/
touch /var/lib/docker.migrating/dummy

Then the upgrade succeeds.

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.