Hey everyone, I have been stuck on this for a few days now and I have spend over a dozen hours trying to learn the workings of snap and searching various threads. At this point, all I want is my data out of the snap container, whether it is the Wordpress site or docker image, anything I can use to rebuild. Basically, I created a VM on vmware, installed Ubuntu 19.10 and snapd. I added the docker snap and then Wordpress and MariaDB dockers. I then spent a lot of time building a website over a couple of days before updating to Ubuntu 20.04. At one point before updating, I was having issues starting the docker snap, with some permissions issue. I resolved this by creating a docker group, adding my user, and then running “newgrp docker.”
After updating, I had to reboot and went to start docker again. It failed. After running “sudo snap start docker” it would say started, but I was getting the same errors int he journalctl as before:
Jul 01 16:27:00 webuntu systemd[1]: Started Service for snap application docker.dockerd.
Jul 01 16:27:00 webuntu audit[4746]: SECCOMP auid=4294967295 uid=0 gid=0 ses=4294967295 pid=4746 comm="mount" exe="/snap/docker/471/bin/mount" sig=0 arch=c000003e syscall=165 compat=0 ip=0x7f9c8 d005b9a code=0x50000
Jul 01 16:27:00 webuntu audit[4747]: AVC apparmor="DENIED" operation="open" profile="snap.docker.dockerd" name="/run/mount/utab" pid=4747 comm="umount" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Jul 01 16:27:00 webuntu audit[4747]: SECCOMP auid=4294967295 uid=0 gid=0 ses=4294967295 pid=4747 comm="umount" exe="/snap/docker/471/bin/umount" sig=0 arch=c000003e syscall=166 compat=0 ip=0x7f0 cb3a62487 code=0x50000
Jul 01 16:27:00 webuntu audit[4748]: AVC apparmor="DENIED" operation="open" profile="snap.docker.dockerd" name="/proc/4748/mountinfo" pid=4748 comm="umount" requested_mask="r" denied_mask="r" fs uid=0 ouid=0
Jul 01 16:27:00 webuntu audit[4748]: AVC apparmor="DENIED" operation="open" profile="snap.docker.dockerd" name="/proc/4748/mounts" pid=4748 comm="umount" requested_mask="r" denied_mask="r" fsuid =0 ouid=0
Jul 01 16:27:00 webuntu audit[4749]: AVC apparmor="DENIED" operation="open" profile="snap.docker.dockerd" name="/proc/4749/mountinfo" pid=4749 comm="umount" requested_mask="r" denied_mask="r" fs uid=0 ouid=0
Jul 01 16:27:00 webuntu audit[4749]: AVC apparmor="DENIED" operation="open" profile="snap.docker.dockerd" name="/proc/4749/mounts" pid=4749 comm="umount" requested_mask="r" denied_mask="r" fsuid =0 ouid=0
Jul 01 16:27:00 webuntu audit[4750]: SECCOMP auid=4294967295 uid=0 gid=0 ses=4294967295 pid=4750 comm="mount" exe="/snap/docker/471/bin/mount" sig=0 arch=c000003e syscall=165 compat=0 ip=0x7f601 4f3cb9a code=0x50000
Jul 01 16:27:00 webuntu audit[4751]: AVC apparmor="DENIED" operation="open" profile="snap.docker.dockerd" name="/run/mount/utab" pid=4751 comm="umount" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Jul 01 16:27:00 webuntu audit[4751]: SECCOMP auid=4294967295 uid=0 gid=0 ses=4294967295 pid=4751 comm="umount" exe="/snap/docker/471/bin/umount" sig=0 arch=c000003e syscall=166 compat=0 ip=0x7fa
I repeated the earlier steps with no luck, then went on to try and disable the apparmor profiles, disable apparmor altogether, and even modify various profiles. Nothing helped. Now, I am at the point where I am sick of snap and just will install docker on Ubuntu itself, but I need to somehow get my data off. Even if I can get the docker snap running long enough to extract the images, I don’t care but I really could use some help. Here is my current situation:
$ sudo snap logs docker
2020-07-02T18:21:00Z systemd[1]: Stopped Service for snap application docker.dockerd.
2020-07-02T18:21:00Z systemd[1]: Started Service for snap application docker.dockerd.
2020-07-02T18:21:00Z docker.dockerd[58861]: cannot change profile for the next exec call: No such file or directory
2020-07-02T18:21:00Z systemd[1]: snap.docker.dockerd.service: Main process exited, code=exited, status=1/FAILURE
2020-07-02T18:21:00Z systemd[1]: snap.docker.dockerd.service: Failed with result 'exit-code'.
2020-07-02T18:21:00Z systemd[1]: snap.docker.dockerd.service: Scheduled restart job, restart counter is at 5.
2020-07-02T18:21:00Z systemd[1]: Stopped Service for snap application docker.dockerd.
2020-07-02T18:21:00Z systemd[1]: snap.docker.dockerd.service: Start request repeated too quickly.
2020-07-02T18:21:00Z systemd[1]: snap.docker.dockerd.service: Failed with result 'exit-code'.
2020-07-02T18:21:00Z systemd[1]: Failed to start Service for snap application docker.dockerd.
$ sudo snap version
snap 2.45.1
snapd 2.45.1
series 16
ubuntu 20.04
kernel 5.4.0-39-generic
Jul 02 18:20:59 webuntu systemd[1]: Started Service for snap application docker.dockerd.
Jul 02 18:20:59 webuntu audit[58756]: AVC apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="/snap/core/9436/usr/lib/snapd/snap-confine" name="snap.docker.dockerd" pid=58756 comm="snap-confine"
Jul 02 18:20:59 webuntu docker.dockerd[58756]: cannot change profile for the next exec call: No such file or directory
Jul 02 18:20:59 webuntu kernel: audit: type=1400 audit(1593714059.193:121): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="/snap/core/9436/usr/lib/snapd/snap-confine" name="snap.docker.dockerd" pid=58756 comm="snap-confine"
Jul 02 18:20:59 webuntu systemd[1]: snap.docker.dockerd.service: Main process exited, code=exited, status=1/FAILURE
Jul 02 18:20:59 webuntu systemd[1]: snap.docker.dockerd.service: Failed with result 'exit-code'.
Is there anyone that can help me out here? Even if we don’t fix the snap problems, is there anyway I can take the snap and move it to another host to extract my data? Thanks in advance!