popey / sosumi-snap

1.62k stars 136 forks source link

Home folder permissions denied #10

Open frpenguin opened 4 years ago

frpenguin commented 4 years ago

Manjaro Linux 19.0.2

After initial install I get the following error

2020/03/06 19:54:34.179897 cmd_run.go:884: WARNING: cannot create user data directory: cannot create "/home/myuser/snap/sosumi/common": mkdir /home/myuser/snap/sosumi/common: permission denied
cannot create user data directory: /home/myuser/snap/sosumi/15: Not a directory

Any susgestions ?

popey commented 4 years ago

Thanks for the issue report. Is your home directory setup non-standard? What's the output of snap version?

frpenguin commented 4 years ago

The home directory was created during default manjaro installation. My file system is f2fs if that matters. The output of snap version is:

snap     2.43.3-2
snapd    2.43.3-2
series   16
manjaro  -
kernel   5.5.7-1-MANJARO
frpenguin commented 4 years ago

Also removing the snap with snap remove sosumi

gives the following error:

error: cannot perform the following tasks:
- Remove data for snap "sosumi" (15) (unlinkat /home/myuser/snap/sosumi/15/ESP.qcow2: read-only file system)
popey commented 4 years ago

Do other snaps work? Perhaps something else graphical like scummvm?

frpenguin commented 4 years ago

I tried vlc. Same result. After some searching, it appears to be an AppArmor issue with confinement in snap, as shown in the ArchWiki. I still haven't figured out what I must do.

frpenguin commented 4 years ago

I created a post on Manjaro Forums

fabiancrx commented 4 years ago

Any luck with this issue? I had a similar problem where the output is:

/home/myuser/snap/sosumi/18: Not a directory

This happened after I made the snap directory a link to another partition where I have sufficient space for a macOS. Is there a way to store the OS in another partition? I'm also using manjaro and the output of snapd is:

snap     2.43.3-2
snapd    2.43.3-2
series   16
manjaro  -
kernel   5.4.25-2-MANJARO