Comment 15 for bug 1884299

Revision history for this message
Zirbo Zirboni (zirbozirboni) wrote :

Hallo, I think I have the same issue.
Our NIS cluster works uses autofs, and in the nodes running ubuntu 22, snaps crash at start giving the error
`cannot open path of the current working directory: Permission denied`
Some users reported getting
`cannot create user data directory: /home/<username>/snap/firefox/1635: Stale file handle`
although I am not sure what they did.

At the moment our workaround is to run
`sudo systemctl restart snapd.service`
after logging in the first time. It seems the snaps do find the homes if snapd is started after autofs is already up and running. But for some weird reason, if a user logs out, and logs in again, snaps still work, but if ANOTHER user logs in, the new user has to restart snapd!