Public bug reported: My setup: A server running Ubuntu 18.04, with LDAP, Kerberos and NFS. Desktop clients running Ubuntu 18.04, with SSSD. Home directories are mounted via autofs from the server.
Everything seems to be working as expected: LDAP/Kerberos users can login, their home directory is available. idmapd works as expected. Issue: Snap application fail to start. No error is displayed. Journal reports (in this particular case the gnome-calculator was launched): júl 21 09:30:44 paulus gnome-calculator_gnome-calculator.desktop[2919]: cannot create user data directory: /home/michalmaria/snap/gnome-calculator/180: Stale file handle júl 21 09:30:44 paulus kernel: nfs: RPC call returned error 13 júl 21 09:30:44 paulus kernel: nfs: RPC call returned error 13 júl 21 09:30:44 paulus kernel: audit: type=1400 audit(1532158244.380:70): apparmor="DENIED" operation="sendmsg" profile="/usr/lib/snapd/snap-confine" pid=2919 comm="snap-confine" laddr=10.0.1.99 lport=758 faddr= júl 21 09:30:44 paulus kernel: audit: type=1400 audit(1532158244.380:71): apparmor="DENIED" operation="sendmsg" profile="/usr/lib/snapd/snap-confine" pid=2919 comm="snap-confine" laddr=10.0.1.99 lport=758 faddr= The directory from the first line does exist (and will be created on launch if not present) michalmaria@paulus:~$ ls -la /home/michalmaria/snap/gnome-calculator/180/ celkom 8 drwxr-xr-x 2 michalmaria domainadmins 4096 júl 21 08:52 . drwxr-xr-x 4 michalmaria domainadmins 4096 júl 21 08:52 .. --- ProblemType: Bug ApportVersion: 2.20.9-0ubuntu7.2 Architecture: amd64 CurrentDesktop: GNOME DistroRelease: Ubuntu 18.04 InstallationDate: Installed on 2018-05-14 (67 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) NonfreeKernelModules: wl Package: snapd 2.33.1+18.04ubuntu2 PackageArchitecture: amd64 ProcEnviron: TERM=screen-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=sk_SK.UTF-8 SHELL=/bin/bash ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18 Tags: bionic Uname: Linux 4.15.0-23-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: _MarkForUpload: True ** Affects: snapd (Ubuntu) Importance: Undecided Status: New ** Tags: apport-collected bionic ** Tags added: apport-collected bionic ** Description changed: My setup: A server running Ubuntu 18.04, with LDAP, Kerberos and NFS. Desktop clients running Ubuntu 18.04, with SSSD. Home directories are mounted via autofs from the server. Everything seems to be working as expected: LDAP/Kerberos users can login, their home directory is available. idmapd works as expected. Issue: Snap application fail to start. No error is displayed. Journal reports (in this particular case the gnome-calculator was launched): júl 21 09:30:44 paulus gnome-calculator_gnome-calculator.desktop[2919]: cannot create user data directory: /home/michalmaria/snap/gnome-calculator/180: Stale file handle júl 21 09:30:44 paulus kernel: nfs: RPC call returned error 13 júl 21 09:30:44 paulus kernel: nfs: RPC call returned error 13 júl 21 09:30:44 paulus kernel: audit: type=1400 audit(1532158244.380:70): apparmor="DENIED" operation="sendmsg" profile="/usr/lib/snapd/snap-confine" pid=2919 comm="snap-confine" laddr=10.0.1.99 lport=758 faddr= júl 21 09:30:44 paulus kernel: audit: type=1400 audit(1532158244.380:71): apparmor="DENIED" operation="sendmsg" profile="/usr/lib/snapd/snap-confine" pid=2919 comm="snap-confine" laddr=10.0.1.99 lport=758 faddr= The directory from the first line does exist (and will be created on launch if not present) michalmaria@paulus:~$ ls -la /home/michalmaria/snap/gnome-calculator/180/ celkom 8 drwxr-xr-x 2 michalmaria domainadmins 4096 júl 21 08:52 . drwxr-xr-x 4 michalmaria domainadmins 4096 júl 21 08:52 .. + --- + ProblemType: Bug + ApportVersion: 2.20.9-0ubuntu7.2 + Architecture: amd64 + CurrentDesktop: GNOME + DistroRelease: Ubuntu 18.04 + InstallationDate: Installed on 2018-05-14 (67 days ago) + InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) + NonfreeKernelModules: wl + Package: snapd 2.33.1+18.04ubuntu2 + PackageArchitecture: amd64 + ProcEnviron: + TERM=screen-256color + PATH=(custom, no user) + XDG_RUNTIME_DIR=<set> + LANG=sk_SK.UTF-8 + SHELL=/bin/bash + ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18 + Tags: bionic + Uname: Linux 4.15.0-23-generic x86_64 + UpgradeStatus: No upgrade log present (probably fresh install) + UserGroups: + + _MarkForUpload: True -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1782873 Title: Snap apps don't start, when /home is provided by a remote NFS server To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1782873/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs