Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permission denied in writing / removing files #3834

Open
mmkay opened this issue Dec 12, 2024 · 2 comments
Open

permission denied in writing / removing files #3834

mmkay opened this issue Dec 12, 2024 · 2 comments
Labels
bug high high importance jira Create a Jira ticket for this issue regression

Comments

@mmkay
Copy link

mmkay commented Dec 12, 2024

Describe the bug
Since upgrading multipass snap to 1.15.0, I can't edit / add / remove any files within my native mounts on my multipass VM. It affects both existing as well as new native mounts.

To Reproduce
How, and what happened?

  1. Upgrade multipass snap to 1.15.0 (current stable snap). That happened automatically as I rebooted my host.
  2. Try to edit / remove / add any of the files within the mount
  3. See that every attempt fails with permission denied.
ubuntu@charm-dev:~/code/tempo-coordinator-k8s-operator$ touch test.txt
touch: cannot touch 'test.txt': Permission denied
ubuntu@charm-dev:~/code/tempo-coordinator-k8s-operator$ ls -lh
total 80K
(...)
-rw-rw-r-- 1 ubuntu ubuntu 1.7K Nov 28 11:39 README.md
-rw-rw-r-- 1 ubuntu ubuntu 5.8K Nov 19 13:36 charmcraft.yaml
-rwxrwxr-x 1 ubuntu ubuntu  315 Oct  3 17:38 dev-release.sh
-rw-rw-r-- 1 ubuntu ubuntu 1.3K Sep  5 12:19 icon.svg
(...)
ubuntu@charm-dev:~/code/tempo-coordinator-k8s-operator$ rm icon.svg
rm: cannot remove 'icon.svg': Permission denied

I also tried to add a new native mount on a stopped machine and the same behaviour is present:

$ multipass mount --type native Documents/ charm-dev:~/doc/
$ multipass info
Name:           charm-dev
State:          Running
Snapshots:      0
IPv4:           10.211.88.141
                10.39.49.1
                10.1.157.64
Release:        Ubuntu 22.04.5 LTS
Image hash:     0ba0fd632a90 (Ubuntu 22.04 LTS)
CPU(s):         4
Load:           0.33 0.39 0.18
Disk usage:     21.6GiB out of 48.4GiB
Memory usage:   2.1GiB out of 7.7GiB
Mounts:         /home/mat/Documents                           => ~/doc
                    UID map: 1000:default
                    GID map: 1000:default
(...)
ubuntu@charm-dev:~/doc$ touch test.txt
touch: cannot touch 'test.txt': Permission denied
ubuntu@charm-dev:~/doc$ ls -lh
total 18M
-rw-rw-r-- 1 ubuntu ubuntu   17 Oct 24  2023  praise.txt
ubuntu@charm-dev:~/doc$ rm praise.txt
rm: cannot remove 'praise.txt': Permission denied

It seems I'm able to edit files on a non-native mount, but I've switched to native since the issues from #3620 started to appear.

Tried also restarting the snap, no changes:

$ sudo snap restart multipass
2024-12-12T12:12:57 01:00 INFO Waiting for "snap.multipass.multipassd.service" to stop.
Restarted.
$ multipass shell charm-dev
ubuntu@charm-dev:~/doc$ touch test.txt
touch: cannot touch 'test.txt': Permission denied

Expected behavior
What did you expect to happen?

  • Files should still be editable.

Logs
Please provide logs from the daemon, see accessing logs on where to find them on your platform.

Dec 12 11:50:18 wanderer multipassd[1783]: /build/multipass/parts/multipass/src/src/platform/backends/qemu/qemu_mount_handler.cpp:101 activate_impl(): `id -u` = 1000
Dec 12 11:50:18 wanderer multipassd[1783]: Executing 'id -g'
Dec 12 11:50:18 wanderer multipassd[1783]: /build/multipass/parts/multipass/src/src/platform/backends/qemu/qemu_mount_handler.cpp:104 activate_impl(): `id -g` = 1000
Dec 12 11:50:18 wanderer multipassd[1783]: Executing 'sudo /bin/bash -c 'cd "/home/ubuntu/" && mkdir -p "code2"''
Dec 12 11:50:18 wanderer multipassd[1783]: Executing 'sudo /bin/bash -c 'cd "/home/ubuntu/" && chown -R 1000:1000 "code2"''
Dec 12 11:50:18 wanderer multipassd[1783]: Executing 'sudo mount -t 9p m0aa1b1dcd961334fa9a5a940584f93 ~/code2 -o trans=virtio,version=9p2000.L,msize=536870912'
Dec 12 11:50:18 wanderer multipassd[1783]: Executing 'which snap'
Dec 12 11:50:18 wanderer multipassd[1783]: Executing 'sudo snap list multipass-sshfs'
Dec 12 11:50:18 wanderer multipassd[1783]: The multipass-sshfs snap is already installed on 'charm-dev'
Dec 12 11:50:18 wanderer multipassd[1783]: process program '/snap/multipass/13811/bin/sshfs_server'
Dec 12 11:50:18 wanderer multipassd[1783]: process arguments '10.211.88.141, 22, ubuntu, /home/mat/Code/tempo-coordinator-k8s-operator, ~/tempo, 1000:-1,, 1000:-1,, 3'
Dec 12 11:50:18 wanderer multipassd[1783]: Applied AppArmor policy: multipass.charm-dev.c42f9d24.sshfs_server
Dec 12 11:50:18 wanderer multipassd[1783]: [50246] started: /snap/multipass/13811/bin/sshfs_server 10.211.88.141 22 ubuntu /home/mat/Code/tempo-coordinator-k8s-operator ~/tempo 1000:-1, 1000:-1, 3
Dec 12 11:50:18 wanderer sshfs_server[50246]: /build/multipass/parts/multipass/src/src/sshfs_mount/sshfs_mount.cpp:123 make_sftp_server(source = /home/mat/Code/tempo-coordinator-k8s-operator, target = ~/tempo, …):
Dec 12 11:50:18 wanderer sshfs_server[50246]: Executing 'snap run multipass-sshfs.env'
Dec 12 11:50:18 wanderer sshfs_server[50246]: Executing 'sudo env LD_LIBRARY_PATH=/snap/multipass-sshfs/145/lib /snap/multipass-sshfs/145/bin/sshfs -V'
Dec 12 11:50:18 wanderer sshfs_server[50246]: Executing 'echo ~/tempo'
Dec 12 11:50:18 wanderer sshfs_server[50246]: Executing 'sudo /bin/bash -c 'P="/home/ubuntu/tempo"; while [ ! -d "$P/" ]; do P="${P%/*}"; done; echo $P/''
Dec 12 11:50:18 wanderer sshfs_server[50246]: Executing 'id -u'
Dec 12 11:50:18 wanderer sshfs_server[50246]: /build/multipass/parts/multipass/src/src/sshfs_mount/sshfs_mount.cpp:132 make_sftp_server(): `id -u` = 1000
Dec 12 11:50:18 wanderer sshfs_server[50246]: Executing 'id -g'
Dec 12 11:50:18 wanderer sshfs_server[50246]: /build/multipass/parts/multipass/src/src/sshfs_mount/sshfs_mount.cpp:137 make_sftp_server(): `id -g` = 1000
Dec 12 11:50:18 wanderer sshfs_server[50246]: Executing 'sudo env LD_LIBRARY_PATH=/snap/multipass-sshfs/145/lib /snap/multipass-sshfs/145/bin/sshfs -o slave -o transform_symlinks -o allow_other -o Compression=no -o dir_cache=no :"/home/mat/Code/tempo-coordinator-k8s-operator" "/home/ubuntu/tempo/."'
Dec 12 11:50:18 wanderer multipassd[1783]: Executing 'echo ~/code'
Dec 12 11:50:18 wanderer multipassd[1783]: Executing 'sudo /bin/bash -c 'P="/home/ubuntu/code"; while [ ! -d "$P/" ]; do P="${P%/*}"; done; echo $P/''
Dec 12 11:50:18 wanderer multipassd[1783]: Executing 'sudo mount -t 9p m47e1d8cfec6f3e539201160e4053da ~/code -o trans=virtio,version=9p2000.L,msize=536870912'
Dec 12 11:50:35 wanderer multipassd[1783]: QMP: {"timestamp": {"seconds": 1734000635, "microseconds": 505421}, "event": "RTC_CHANGE", "data": {"offset": 0, "qom-path": "/machine/unattached/device[7]/rtc"}}
Dec 12 11:51:42 wanderer multipassd[1783]: QMP: {"timestamp": {"seconds": 1734000702, "microseconds": 532600}, "event": "RTC_CHANGE", "data": {"offset": 0, "qom-path": "/machine/unattached/device[7]/rtc"}}
Dec 12 12:01:32 wanderer multipassd[1783]: fetch manifest periodically
Dec 12 12:01:34 wanderer multipassd[1783]: QMP: {"timestamp": {"seconds": 1734001294, "microseconds": 511613}, "event": "RTC_CHANGE", "data": {"offset": 0, "qom-path": "/machine/unattached/device[7]/rtc"}}
Dec 12 12:02:41 wanderer multipassd[1783]: QMP: {"timestamp": {"seconds": 1734001361, "microseconds": 541396}, "event": "RTC_CHANGE", "data": {"offset": 0, "qom-path": "/machine/unattached/device[7]/rtc"}}
Dec 12 12:03:33 wanderer multipassd[1783]: Executing 'wall The system is going down for poweroff now'
Dec 12 12:03:33 wanderer multipassd[1783]: Executing 'findmnt --type 9p | grep '~/code2 m0aa1b1dcd961334fa9a5a940584f93''
Dec 12 12:03:33 wanderer multipassd[1783]: Executing 'echo ~/tempo'
Dec 12 12:03:33 wanderer multipassd[1783]: Executing 'findmnt --type fuse.sshfs | grep -E '^/home/ubuntu/tempo  :/home/mat/Code/tempo-coordinator-k8s-operator''
Dec 12 12:03:33 wanderer multipassd[1783]: Stopping mount "~/tempo" in instance 'charm-dev'
Dec 12 12:03:33 wanderer multipassd[1783]: Mount "~/tempo" in instance 'charm-dev' has stopped
Dec 12 12:03:33 wanderer multipassd[1783]: Executing 'findmnt --type 9p | grep '~/code m47e1d8cfec6f3e539201160e4053da''
Dec 12 12:03:33 wanderer multipassd[1783]: Dropping cached SSH session
Dec 12 12:03:33 wanderer multipassd[1783]: QMP: {"timestamp": {"seconds": 1734001413, "microseconds": 629597}, "event": "POWERDOWN"}
Dec 12 12:03:33 wanderer multipassd[1783]: VM powering down
Dec 12 12:03:33 wanderer multipassd[1783]: QMP: {"return": {}}
Dec 12 12:03:50 wanderer multipassd[1783]: QMP: {"timestamp": {"seconds": 1734001430, "microseconds": 418880}, "event": "SHUTDOWN", "data": {"guest": true, "reason": "guest-shutdown"}}
Dec 12 12:03:50 wanderer multipassd[1783]: VM shut down
Dec 12 12:03:50 wanderer multipassd[1783]: process state changed to NotRunning
Dec 12 12:03:50 wanderer multipassd[1783]: process finished with exit code 0
Dec 12 12:04:24 wanderer multipassd[1783]: initializing native mount /home/mat/Documents => ~/doc in 'charm-dev'
Dec 12 12:04:26 wanderer multipassd[1783]: Failed to load AppArmor policy 
                                           #include <tunables/global>
                                           profile multipass.charm-dev.qemu-system-x86_64 flags=(attach_disconnected) {
                                             #include <abstractions/base>
                                             #include <abstractions/consoles>
                                             #include <abstractions/nameservice>
                                           
                                             # required for reading disk images
                                             capability dac_override,
                                             capability dac_read_search,
                                             capability chown,
                                           
                                             # Enables modifying of file ownership and permissions
                                             capability fsetid,
                                             capability fowner,
                                           
                                             # needed to drop privileges
                                             capability setgid,
                                             capability setuid,
                                           
                                             network inet stream,
                                             network inet6 stream,
                                           
                                             # Allow multipassd send qemu signals
                                             signal (receive) peer=snap.multipass.multipassd,
                                           
                                             /dev/net/tun rw,
                                             /dev/kvm rw,
                                             /dev/ptmx rw,
                                             /dev/kqemu rw,
                                             @{PROC}/*/status r,
                                             # When qemu is signaled to terminate, it will read cmdline of signaling
                                             # process for reporting purposes. Allowing read access to a process
                                             # cmdline may leak sensitive information embedded in the cmdline.
                                             @{PROC}/@{pid}/cmdline r,
                                             # Per man(5) proc, the kernel enforces that a thread may
                                             # only modify its comm value or those in its thread group.
                                             owner @{PROC}/@{pid}/task/@{tid}/comm rw,
                                             @{PROC}/sys/kernel/cap_last_cap r,
                                             owner @{PROC}/*/auxv r,
                                             @{PROC}/sys/vm/overcommit_memory r,
                                           
                                             # access to firmware's etc (selectively chosen for multipass' usage)
                                             /snap/multipass/13811/qemu/* r,
                                           
                                             # for save and resume
                                             /{usr/,}bin/dash rmix,
                                             /{usr/,}bin/dd rmix,
                                             /{usr/,}bin/cat rmix,
                                           
                                             # to execute bridge helper
                                             /snap/multipass/13811/bin/bridge_helper,
                                           
                                             # for restore
                                             /{usr/,}bin/bash rmix,
                                           
                                             # for file-posix getting limits since 9103f1ce
                                             /sys/devices/**/block/*/queue/max_segments r,
                                           
                                             # for gathering information about available host resources
                                             /sys/devices/system/cpu/ r,
                                             /sys/devices/system/node/ r,
                                             /sys/devices/system/node/node[0-9]*/meminfo r,
                                             /sys/module/vhost/parameters/max_mem_regions r,
                                           
                                             # binary and its libs
                                             /snap/multipass/13811/usr/bin/qemu-system-x86_64 ixr,
                                             /snap/multipass/13811/{,usr/}lib/{,@{multiarch}/}{,**/}*.so* rm,
                                           
                                             # CLASSIC ONLY: need to specify required libs from core snap
                                             /{,var/lib/snapd/}snap/core18/*/{,usr/}lib/@{multiarch}/{,**/}*.so* rm,
                                           
                                             # Disk images
                                             /var/snap/multipass/common/data/multipassd/vault/instances/charm-dev/ubuntu-22.04-server-cloudimg-amd64.img rwk,  # QCow2 filesystem image
                                             /var/snap/multipass/common/data/multipassd/vault/instances/charm-dev/cloud-init-config.iso rk,   # cloud-init ISO
                                           
                                             # allow full access just to user-specified mount directories on the host
                                             /home/mat/Documents/ rw,
                                             /home/mat/Documents/** rwlk,
                                             /home/mat/Code/ rw,
                                             /home/mat/Code/** rwlk,
                                             /home/mat/Code/ rw,
                                             /home/mat/Code/** rwlk,
                                             
                                           }
                                               : errno=10 ()
Dec 12 12:04:26 wanderer multipassd[1783]: process working dir '/snap/multipass/13811/qemu'
Dec 12 12:04:26 wanderer multipassd[1783]: process program 'qemu-system-x86_64'
Dec 12 12:04:26 wanderer multipassd[1783]: process arguments '-bios, OVMF.fd, --enable-kvm, -cpu, host, -nic, tap,ifname=tap-4e59abb469f,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:56:3c:c1, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/charm-dev/ubuntu-22.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 4, -m, 8192M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/charm-dev/cloud-init-config.iso, -virtfs, local,security_model=passthrough,uid_map=1000:1000,gid_map=1000:1000,path=/home/mat/Documents,mount_tag=m0c9d4486f36b3a858992abaa8ac83b, -virtfs, local,security_model=passthrough,uid_map=1000:1000,gid_map=1000:1000,path=/home/mat/Code,mount_tag=m0aa1b1dcd961334fa9a5a940584f93, -virtfs, local,security_model=passthrough,uid_map=1000:1000,gid_map=1000:1000,path=/home/mat/Code,mount_tag=m47e1d8cfec6f3e539201160e4053da'
Dec 12 12:04:26 wanderer multipassd[1783]: [52032] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.gnImar
Dec 12 12:04:26 wanderer multipassd[1783]: process state changed to Starting
Dec 12 12:04:26 wanderer multipassd[1783]: process state changed to Running
Dec 12 12:04:26 wanderer multipassd[1783]: [52034] started: qemu-system-x86_64 -bios OVMF.fd --enable-kvm -cpu host -nic tap,ifname=tap-4e59abb469f,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:56:3c:c1 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/charm-dev/ubuntu-22.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 4 -m 8192M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/charm-dev/cloud-init-config.iso -virtfs local,security_model=passthrough,uid_map=1000:1000,gid_map=1000:1000,path=/home/mat/Documents,mount_tag=m0c9d4486f36b3a858992abaa8ac83b -virtfs local,security_model=passthrough,uid_map=1000:1000,gid_map=1000:1000,path=/home/mat/Code,mount_tag=m0aa1b1dcd961334fa9a5a940584f93 -virtfs local,security_model=passthrough,uid_map=1000:1000,gid_map=1000:1000,path=/home/mat/Code,mount_tag=m47e1d8cfec6f3e539201160e4053da
Dec 12 12:04:26 wanderer multipassd[1783]: process started
Dec 12 12:04:26 wanderer multipassd[1783]: Waiting for SSH to be up
Dec 12 12:04:26 wanderer multipassd[1783]: QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 8}, "package": ""}, "capabilities": ["oob"]}}
Dec 12 12:04:26 wanderer multipassd[1783]: QMP: {"return": {}}
Dec 12 12:04:28 wanderer multipassd[1783]: QMP: {"timestamp": {"seconds": 1734001468, "microseconds": 757607}, "event": "RTC_CHANGE", "data": {"offset": -1, "qom-path": "/machine/unattached/device[7]/rtc"}}
Dec 12 12:04:29 wanderer multipassd[1783]: QMP: {"timestamp": {"seconds": 1734001468, "microseconds": 796433}, "event": "RTC_CHANGE", "data": {"offset": -1, "qom-path": "/machine/unattached/device[7]/rtc"}}
Dec 12 12:04:33 wanderer multipassd[1783]: QMP: {"timestamp": {"seconds": 1734001473, "microseconds": 694923}, "event": "NIC_RX_FILTER_CHANGED", "data": {"path": "/machine/unattached/device[25]/virtio-backend"}}
Dec 12 12:04:33 wanderer dnsmasq-dhcp[2357]: DHCPDISCOVER(mpqemubr0) 52:54:00:56:3c:c1
Dec 12 12:04:33 wanderer dnsmasq-dhcp[2357]: DHCPOFFER(mpqemubr0) 10.211.88.141 52:54:00:56:3c:c1
Dec 12 12:04:33 wanderer dnsmasq-dhcp[2357]: DHCPREQUEST(mpqemubr0) 10.211.88.141 52:54:00:56:3c:c1
Dec 12 12:04:33 wanderer dnsmasq-dhcp[2357]: DHCPACK(mpqemubr0) 10.211.88.141 52:54:00:56:3c:c1 charm-dev
Dec 12 12:04:36 wanderer multipassd[1783]: Caching initial SSH session
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'echo ~/doc'
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'sudo /bin/bash -c 'P="/home/ubuntu/doc"; while [ ! -d "$P/" ]; do P="${P%/*}"; done; echo $P/''
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'id -u'
Dec 12 12:04:36 wanderer multipassd[1783]: /build/multipass/parts/multipass/src/src/platform/backends/qemu/qemu_mount_handler.cpp:101 activate_impl(): `id -u` = 1000
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'id -g'
Dec 12 12:04:36 wanderer multipassd[1783]: /build/multipass/parts/multipass/src/src/platform/backends/qemu/qemu_mount_handler.cpp:104 activate_impl(): `id -g` = 1000
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'sudo /bin/bash -c 'cd "/home/ubuntu/" && mkdir -p "doc"''
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'sudo /bin/bash -c 'cd "/home/ubuntu/" && chown -R 1000:1000 "doc"''
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'sudo mount -t 9p m0c9d4486f36b3a858992abaa8ac83b ~/doc -o trans=virtio,version=9p2000.L,msize=536870912'
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'echo ~/code2'
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'sudo /bin/bash -c 'P="/home/ubuntu/code2"; while [ ! -d "$P/" ]; do P="${P%/*}"; done; echo $P/''
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'sudo mount -t 9p m0aa1b1dcd961334fa9a5a940584f93 ~/code2 -o trans=virtio,version=9p2000.L,msize=536870912'
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'which snap'
Dec 12 12:04:36 wanderer multipassd[1783]: Executing 'sudo snap list multipass-sshfs'
Dec 12 12:04:36 wanderer multipassd[1783]: The multipass-sshfs snap is already installed on 'charm-dev'
Dec 12 12:04:36 wanderer multipassd[1783]: process program '/snap/multipass/13811/bin/sshfs_server'
Dec 12 12:04:36 wanderer multipassd[1783]: process arguments '10.211.88.141, 22, ubuntu, /home/mat/Code/tempo-coordinator-k8s-operator, ~/tempo, 1000:-1,, 1000:-1,, 3'
Dec 12 12:04:36 wanderer multipassd[1783]: Applied AppArmor policy: multipass.charm-dev.c42f9d24.sshfs_server
Dec 12 12:04:36 wanderer multipassd[1783]: [52068] started: /snap/multipass/13811/bin/sshfs_server 10.211.88.141 22 ubuntu /home/mat/Code/tempo-coordinator-k8s-operator ~/tempo 1000:-1, 1000:-1, 3
Dec 12 12:04:36 wanderer sshfs_server[52068]: /build/multipass/parts/multipass/src/src/sshfs_mount/sshfs_mount.cpp:123 make_sftp_server(source = /home/mat/Code/tempo-coordinator-k8s-operator, target = ~/tempo, …):
Dec 12 12:04:36 wanderer sshfs_server[52068]: Executing 'snap run multipass-sshfs.env'
Dec 12 12:04:36 wanderer sshfs_server[52068]: Executing 'sudo env LD_LIBRARY_PATH=/snap/multipass-sshfs/145/lib /snap/multipass-sshfs/145/bin/sshfs -V'
Dec 12 12:04:36 wanderer sshfs_server[52068]: Executing 'echo ~/tempo'
Dec 12 12:04:36 wanderer sshfs_server[52068]: Executing 'sudo /bin/bash -c 'P="/home/ubuntu/tempo"; while [ ! -d "$P/" ]; do P="${P%/*}"; done; echo $P/''
Dec 12 12:04:36 wanderer sshfs_server[52068]: Executing 'id -u'
Dec 12 12:04:36 wanderer sshfs_server[52068]: /build/multipass/parts/multipass/src/src/sshfs_mount/sshfs_mount.cpp:132 make_sftp_server(): `id -u` = 1000
Dec 12 12:04:36 wanderer sshfs_server[52068]: Executing 'id -g'
Dec 12 12:04:36 wanderer sshfs_server[52068]: /build/multipass/parts/multipass/src/src/sshfs_mount/sshfs_mount.cpp:137 make_sftp_server(): `id -g` = 1000
Dec 12 12:04:36 wanderer sshfs_server[52068]: Executing 'sudo env LD_LIBRARY_PATH=/snap/multipass-sshfs/145/lib /snap/multipass-sshfs/145/bin/sshfs -o slave -o transform_symlinks -o allow_other -o Compression=no -o dir_cache=no :"/home/mat/Code/tempo-coordinator-k8s-operator" "/home/ubuntu/tempo/."'
Dec 12 12:04:37 wanderer multipassd[1783]: Executing 'echo ~/code'
Dec 12 12:04:37 wanderer multipassd[1783]: Executing 'sudo /bin/bash -c 'P="/home/ubuntu/code"; while [ ! -d "$P/" ]; do P="${P%/*}"; done; echo $P/''
Dec 12 12:04:37 wanderer multipassd[1783]: Executing 'sudo mount -t 9p m47e1d8cfec6f3e539201160e4053da ~/code -o trans=virtio,version=9p2000.L,msize=536870912'
Dec 12 12:04:54 wanderer multipassd[1783]: QMP: {"timestamp": {"seconds": 1734001494, "microseconds": 486884}, "event": "RTC_CHANGE", "data": {"offset": 0, "qom-path": "/machine/unattached/device[7]/rtc"}}

Additional info

  • OS: Ubuntu 24.04.1
  • multipass version
$ multipass version
multipass   1.15.0
multipassd  1.15.0
  • multipass info
$ multipass info
Name:           charm-dev
State:          Running
Snapshots:      0
IPv4:           10.211.88.141
                10.39.49.1
                10.1.157.64
Release:        Ubuntu 22.04.5 LTS
Image hash:     0ba0fd632a90 (Ubuntu 22.04 LTS)
CPU(s):         4
Load:           0.12 0.30 0.17
Disk usage:     21.6GiB out of 48.4GiB
Memory usage:   2.1GiB out of 7.7GiB
Mounts:         /home/mat/Documents                           => ~/doc
                    UID map: 1000:default
                    GID map: 1000:default
                /home/mat/Code                                => ~/code2
                    UID map: 1000:default
                    GID map: 1000:default
                /home/mat/Code/tempo-coordinator-k8s-operator => ~/tempo
                    UID map: 1000:default
                    GID map: 1000:default
  • multipass get local.driver
$ multipass get local.driver
qemu

Additional context
Add any other context about the problem here.

@mmkay mmkay added bug needs triage Issue needs to be triaged labels Dec 12, 2024
@georgeliao
Copy link
Contributor

@mmkay
Thanks for reporting this.
I did a quick try and I can reproduce you have experienced. I will dig deeper later and find out what is going on.

@ricab ricab added high high importance medium medium importance and removed needs triage Issue needs to be triaged labels Dec 12, 2024
@jibel jibel added jira Create a Jira ticket for this issue regression and removed medium medium importance jira Create a Jira ticket for this issue labels Dec 13, 2024
@medicalwei
Copy link

FYI, this issue is not reproducible in 1.14.1, and is reproducible in 1.15.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug high high importance jira Create a Jira ticket for this issue regression
Projects
None yet
Development

No branches or pull requests

5 participants