Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapcraft install fails to start #105

Open
thibaultcha opened this issue May 21, 2020 · 0 comments
Open

Snapcraft install fails to start #105

thibaultcha opened this issue May 21, 2020 · 0 comments

Comments

@thibaultcha
Copy link

Hi there,

Wanting to give fromscratch a try, I installed it via the snapcraft image (installed as such: https://snapcraft.io/docs/installing-snap-on-fedora):

$ sudo snap install fromscratch
...
$ fromscratch
$ echo $?
1
$ snap run fromscratch
$ echo $?
1

Running with strace:

$ strace fromscratch
...
statfs("/sys/fs/selinux", 0x7fff0fce46c0) = -1 ENOENT (No such file or directory)
statfs("/selinux", 0x7fff0fce46c0)      = -1 ENOENT (No such file or directory)
brk(NULL)                               = 0x55f2152d8000
brk(0x55f2152f9000)                     = 0x55f2152f9000
openat(AT_FDCWD, "/proc/filesystems", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(3, "nodev\tsysfs\nnodev\ttmpfs\nnodev\tbd"..., 1024) = 409
read(3, "", 1024)                       = 0
close(3)                                = 0
access("/etc/selinux/config", F_OK)     = 0
umask(000)                              = 002
openat(AT_FDCWD, ".", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0701, st_size=98304, ...}) = 0
chdir("/")                              = 0
getresuid([1000], [1000], [1000])       = 0
getresgid([1000], [1000], [1000])       = 0
geteuid()                               = 1000
write(2, "need to run as root or suid", 27need to run as root or suid) = 27
write(2, ": No such file or directory\n", 28: No such file or directory
) = 28
exit_group(1)                           = ?
+++ exited with 1 +++

And running as root:

 $ sudo snap run fromscratch
ln: failed to create symbolic link '/root/snap/fromscratch/4/snap/fromscratch/4/Documents': No such file or directory
ln: failed to create symbolic link '/root/snap/fromscratch/4/snap/fromscratch/4/Desktop': No such file or directory
ln: failed to create symbolic link '/root/snap/fromscratch/4/snap/fromscratch/4/Downloads': No such file or directory
ln: failed to create symbolic link '/root/snap/fromscratch/4/snap/fromscratch/4/Music': No such file or directory
ln: failed to create symbolic link '/root/snap/fromscratch/4/snap/fromscratch/4/Pictures': No such file or directory
ln: failed to create symbolic link '/root/snap/fromscratch/4/snap/fromscratch/4/Videos': No such file or directory
ln: failed to create symbolic link '/root/snap/fromscratch/4/snap/fromscratch/4/Public': No such file or directory
ln: failed to create symbolic link '/root/snap/fromscratch/4/snap/fromscratch/4/Templates': No such file or directory
No protocol specified
$ echo $?
1

For now, I reverted to installing the AppImage which worked fine, but I thought maybe you should know about the snap.

$ snap --version
snap    2.43.3-1.fc32
snapd   2.43.3-1.fc32
series  16
fedora  32
kernel  5.6.11-300.fc32.x86_64

Thanks!

@thibaultcha thibaultcha changed the title Snapcraft install fails to start if not root Snapcraft install fails to start May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant