2019/03/29 18:55:40.090235 cmd_run.go:876: WARNING: cannot create user data directory: failed to verify SELinux context of /home/foo/snap: exec: "matchpathcon": executable file not found in $PATH
See original GitHub issueEnvironment data
2019/03/29 18:55:40.090235 cmd_run.go:876: WARNING: cannot create user data directory: failed to verify SELinux context of /home/foo/snap: exec: “matchpathcon”: executable file not found in $PATH
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Selinux warning when running lxc - snapd
What could cause this warning? I'm on Ubuntu 19.04 now cmd_run.go:876: WARNING: cannot create user data directory: failed to verify SELinux context.
Read more >Every snap gives "create user data directory" after upgrade ...
cmd_run.go:876: WARNING: cannot create user data directory: failed to verify SELinux context of /home/hackel/snap: exec: "matchpathcon": ...
Read more >20.04 - "WARNING: cannot create user data directory ...
"WARNING: cannot create user data directory: cannot determine SELinux status: failed to obtain SELinux mount path" warning by snap · it is a ......
Read more >Getting a error from selinux when launching text editor ...
EDIT: The error message seems to say that matchpathcon can't be found in the PATH. Surely this should help you start the troubleshooting...
Read more >failed to verify SELinux context of /home/idea/snap: exec: " ...
WARNING : cannot create user data directory: failed to verify SELinux context of ... exec: "matchpathcon": executable file not found in $PATH.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve described a workaround here: https://forum.snapcraft.io/t/selinux-warning-when-running-lxc/11100/11 TLDR: install
selinux-policy-default, setSELINUX=disabledin/etc/selinux/configand reboot the system.I’m running Ubuntu 18.04, so I’ve tested with the latest 5.0.9 kernel (still the same warning). To workaround I’ve updated
/etc/default/gruband addedGRUB_CMDLINE_LINUX="selinux=0"and regenerated the grub config withsudo update-gruband rebooted: warning gone.