Snap won't launch if an autofs mount timeouts

I have a few NFS mounts via autofs, and when one of them times out, I get an error like this when i try to launch a Snap

Oct 13 16:48:38 Y4M1-II-UbuntuUnity-KVM steam_steam.desktop[12294]: cannot create mount point /tmp/snap.rootfs_xjlsJH//mnt/nfs/data: Permission denied

The message would show up when launched via terminal, but if launched from the app launcher, there’s no error window.

Hey. We were just discussing this issue and we’d love to see more of your mount setup. Can you share the fstab entry or the systemd mount unit that is responsible for handing this. What’s the path like?

I’m using autofs

$ cat /etc/auto.mnt 
data            -fstype=nfs4,rw,soft,intr,noatime,nconnect=16,x-gvfs-show,fscache               192.168.13.13:/mnt/shared/data
games           -fstype=nfs4,rw,soft,intr,noatime,nconnect=16,x-gvfs-show,fscache               192.168.13.26:/mnt/shared/games

$ cat /etc/auto.master
#
# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
#/misc  /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
#       "nosuid" and "nodev" options unless the "suid" and "dev"
#       options are explicitly given.
#
#/net   -hosts
#
# Include /etc/auto.master.d/*.autofs
# To add an extra map using this mechanism you will need to add
# two configuration items - one /etc/auto.master.d/extra.autofs file
# (using the same line format as the auto.master file)
# and a separate mount map (e.g. /etc/auto.extra or an auto.extra NIS map)
# that is referred to by the extra.autofs file.
#
+dir:/etc/auto.master.d
#
# If you have fedfs set up and the related binaries, either
# built as part of autofs or installed from another package,
# uncomment this line to use the fedfs program map to access
# your fedfs mounts.
#/nfs4  /usr/sbin/fedfs-map-nfs4 nobind
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master

/mnt/nfs        /etc/auto.mnt --timeout=120

Hi, I tried again to reproduce this behavior but was unsuccessful. Could you provide some more information around this failure? Can you try running a snap, after a mount has timed out, with debug logs and strace? So, for example, SNAPD_DEBUG=1 snap run --strace <name of a snap you have installed>