[Bug 1901648] Re: docker.io package: cannot stat /var/lib/docker.migrating/*
I'm affected by this bug, too, and I confirm that @raczkow patch solves the problem -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1901648 Title: docker.io package: cannot stat /var/lib/docker.migrating/* To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1901648/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1901648] Re: docker.io package: cannot stat /var/lib/docker.migrating/*
I have the same problem with a ZFS-based docker deployment. The issue in my case seems to be, that /var/lib/dpkg/info/docker.io.postinst assumes/hard-coded, that the docker content should be located under the the /var/lib/docker directory. It then tries to migrate this off into a separate dataset. Too bad: I already created a dedicated ZFS dataset for Docker on my own. And it's also in a different place: My /etc/docker/daemon.json has the following content { "data-root" : "/srv/docker" } And this is also already a separate ZFS dataset: # findmnt -n -o SOURCE /srv/docker z4tank/docker Looking at the docker.io.postinst file, the problem is that it hard-coded always assume /var/lib/docker and does not respect a potential diverting "data-root" setting: https://git.launchpad.net/ubuntu/+source/docker.io/tree/debian/docker.io.postinst?h=applied/ubuntu /focal-updates#n38 @raczkow @etjohns2 : Do you both share something from my setting? i.e. a preconfigured ZFS dataset or a non-default data-root configuration? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1901648 Title: docker.io package: cannot stat /var/lib/docker.migrating/* To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1901648/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1901648] Re: docker.io package: cannot stat /var/lib/docker.migrating/*
I've found this bug too. It fails on postinst script. I've checked it and I'm wondering why does it try to create zfs dataset when it already exists? When I applied this patch, everything works OK: --- /var/lib/dpkg/info/docker.io.postinst.orig 2020-11-08 23:21:14.561453080 +0100 +++ /var/lib/dpkg/info/docker.io.postinst 2020-11-08 23:21:25.104740749 +0100 @@ -31,7 +31,7 @@ # /var with canmount off if doesn’t exist rpool="$(zfs mount | awk '$2=="/" {print $1}'| cut -d/ -f1)" - if [ -n "$rpool" ]; then + if [ -z "$rpool" ]; then dockermnt="$(findmnt -n -o SOURCE /var/lib/docker || true)" # Create /var/lib/docker if doesn’t exist -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1901648 Title: docker.io package: cannot stat /var/lib/docker.migrating/* To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1901648/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1901648] Re: docker.io package: cannot stat /var/lib/docker.migrating/*
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: docker.io (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1901648 Title: docker.io package: cannot stat /var/lib/docker.migrating/* To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1901648/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1901648] Re: docker.io package: cannot stat /var/lib/docker.migrating/*
This should probably be filed under the docker.io package instead of ubuntu-release-upgrader. ** Package changed: ubuntu-release-upgrader (Ubuntu) => docker.io (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1901648 Title: docker.io package: cannot stat /var/lib/docker.migrating/* To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1901648/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs