Open ddl-mmercer opened 2 years ago
Looks like fusermount3 was upgraded by some buggy process, that failed to make it setuid.
That is why you are getting "Operation not permitted", since it is not running as user "root"
Healthy:
lrwxrwxrwx 1 root root 11 Jun 20 2021 /usr/bin/fusermount -> fusermount3
-rwsr-xr-x 1 root root 35200 Jun 20 2021 /usr/bin/fusermount3
Broken:
lrwxrwxrwx 1 root root 11 Jun 20 2021 /usr/bin/fusermount -> fusermount3
-rwxr-xr-x 1 root root 35200 Jun 20 2021 /usr/bin/fusermount3
There is also a "/etc/fuse.conf.dpkg-new" file, so maybe it was dpkg ?
The package "fuse3" is not part of the image, but installed on first boot.
Workaround (fixing the symptom):
sudo chmod u+s /bin/fusermount3
This is is SIMILAR to #584but not necessarily identical.
The other issue is related to docker starting before sshfs.
From /var/log/cloud-init-output.log:
Setting up fuse3 (3.10.3-2) ...
Configuration file '/etc/fuse.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** fuse.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package fuse3 (--configure):
end of file on stdin at conffile prompt
Setting up libavahi-glib1:amd64 (0.8-5ubuntu4) ...
dpkg: dependency problems prevent configuration of fuse-overlayfs:
fuse-overlayfs depends on fuse3; however:
Package fuse3 is not configured yet.
dpkg: error processing package fuse-overlayfs (--configure):
dependency problems - leaving unconfigured
The configure was supposed to set up the ownership too:
configure)
if [ -c /dev/cuse ] && ! chrooted
then
chmod 0600 /dev/cuse > /dev/null 2>&1
fi
if ! dpkg-statoverride --list /bin/fusermount3 > /dev/null 2>&1
then
chmod 4755 /bin/fusermount3
fi
modprobe fuse > /dev/null 2>&1 || true
if [ -x "`which update-initramfs 2>/dev/null`" ]
then
update-initramfs -u
fi
;;
There is also some conflict, between "sshfs" and "fuse-overlayfs":
Unpacking libfuse3-3:amd64 (3.10.3-2) ...
dpkg: fuse: dependency problems, but removing anyway as you requested:
sshfs depends on fuse.
ntfs-3g depends on fuse.
The workaround above does at least appear to work as a solution. Thanks @afbjorklund ;; creating a separate issue for the next observed issue.
I think the "default" image has the same issue now, after some recent upgrade.
Description
When using limactl with a podman instance and fuse sshfs for volume mounts, the podman instance will come up successfully just fine, but on subsequent attempts, it fails to mount the sshfs systems:
So far, the workaround is to delete and recreate the podman instance, forfeiting your currently built up infrastructure (images, containers, etc)
This is is SIMILAR to #584but not necessarily identical.