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

Unable to launch game in Fedora #2

Open
brlin-tw opened this issue Mar 13, 2019 · 2 comments
Open

Unable to launch game in Fedora #2

brlin-tw opened this issue Mar 13, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@brlin-tw
Copy link
Owner

Snap not installed with core core snap.

$ snap run mari0
Error: Could not initialize SDL joystick subsystem (Could not initialize UDEV)
stack traceback:
	[string "boot.lua"]:637: in function <[string "boot.lua"]:633>
	[C]: at 0x7f37a7574c3b
	[C]: in function 'require'
	[string "boot.lua"]:416: in function <[string "boot.lua"]:311>
	[C]: in function 'xpcall'
	[string "boot.lua"]:645: in function <[string "boot.lua"]:639>
	[C]: in function 'xpcall'
@brlin-tw brlin-tw self-assigned this Mar 13, 2019
@brlin-tw brlin-tw added the bug Something isn't working label Mar 13, 2019
@brlin-tw
Copy link
Owner Author

After installing the core snap the error turns to:

$ snap run mari0
execl failed: No such file or directory
child exited with status 1
$ env SNAP_CONFINE_DEBUG=yes snap run mari0
DEBUG: security tag: snap.mari0.mari0
DEBUG: executable:   /usr/lib/snapd/snap-exec
DEBUG: confinement:  non-classic
DEBUG: base snap:    core18
DEBUG: ruid: 1000, euid: 0, suid: 0
DEBUG: rgid: 1000, egid: 0, sgid: 0
DEBUG: creating lock directory /run/snapd/lock (if missing)
DEBUG: opening lock directory /run/snapd/lock
DEBUG: opening lock file: /run/snapd/lock/.lock
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: acquiring exclusive lock (scope (global), uid 0)
DEBUG: sanity timeout reset and disabled
DEBUG: ensuring that snap mount directory is shared
DEBUG: unsharing snap namespace directory
DEBUG: releasing lock 4
DEBUG: opened snap-update-ns executable as file descriptor 4
DEBUG: opened snap-discard-ns executable as file descriptor 5
DEBUG: creating lock directory /run/snapd/lock (if missing)
DEBUG: opening lock directory /run/snapd/lock
DEBUG: opening lock file: /run/snapd/lock/mari0.lock
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: acquiring exclusive lock (scope mari0, uid 0)
DEBUG: sanity timeout reset and disabled
DEBUG: initializing mount namespace: mari0
DEBUG: forked support process 5546
DEBUG: block device of snap core18, revision 731 is 7:0
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: DEBUG: helper process waiting for command
joining preserved mount namespace for inspection
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: block device of the root filesystem is 7:0
DEBUG: sanity timeout reset and disabled
DEBUG: preserved mount namespace can be reused
DEBUG: joined preserved mount namespace mari0
DEBUG: moved process 5538 to freezer cgroup hierarchy for snap mari0
DEBUG: joining preserved per-user mount namespace
DEBUG: unsharing the mount namespace (per-user)
DEBUG: sc_setup_user_mounts: mari0
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: calling snapd tool snap-update-ns
DEBUG: waiting for snapd tool snap-update-ns to terminate
main.go:246: DEBUG: desired mount profile:
main.go:248: DEBUG: 	/run/user/1000/doc/by-app/snap.mari0 /run/user/1000/doc none bind,rw,x-snapd.ignore-missing 0 0
change.go:469: DEBUG: desiredIDs: map[/run/user/1000/doc:true]
change.go:470: DEBUG: reuse: map[]
main.go:257: DEBUG: mount changes needed:
main.go:259: DEBUG: 	mount (/run/user/1000/doc/by-app/snap.mari0 /run/user/1000/doc none bind,rw,x-snapd.ignore-missing 0 0)
main.go:204: DEBUG: performing mount changes:
main.go:207: DEBUG: 	 * mount (/run/user/1000/doc/by-app/snap.mari0 /run/user/1000/doc none bind,rw,x-snapd.ignore-missing 0 0)
change.go:298: DEBUG: mount "/run/user/1000/doc/by-app/snap.mari0" "/run/user/1000/doc" "none" 4096 "rw" (error: <nil>)
main.go:246: DEBUG: current mount profile (after applying changes):
main.go:248: DEBUG: 	/run/user/1000/doc/by-app/snap.mari0 /run/user/1000/doc none bind,rw,x-snapd.ignore-missing 0 0
DEBUG: snap-update-ns finished successfully
DEBUG: NOT preserving per-user mount namespace
DEBUG: releasing lock 6
DEBUG: sending command 0 to helper process (pid: 5546)
DEBUG: waiting for response from helper
DEBUG: sanity timeout reset and disabled
DEBUG: helper process received command 0
DEBUG: helper process exiting
DEBUG: waiting for the helper process to exit
DEBUG: helper process exited normally
DEBUG: resetting PATH to values in sync with core snap
DEBUG: snappy_udev_init
DEBUG: setup_devices_cgroup
DEBUG: write_string_to_file /sys/fs/cgroup/devices/snap.mari0.mari0/tasks 5538
DEBUG: write_string_to_file /sys/fs/cgroup/devices/snap.mari0.mari0/devices.deny a
DEBUG: run_snappy_app_dev_add: /sys/class/mem/null snap_mari0_mari0
DEBUG: running snap-device-helper add snap_mari0_mari0 /sys/class/mem/null 1:3
execl failed: No such file or directory
child exited with status 1

@neteler
Copy link

neteler commented May 7, 2019

For me (F29) this change helped to get snap running in general (didn't test here):

diff -u /usr/libexec/snapd/snap-device-helper.orig /usr/libexec/snapd/snap-device-helper
--- /usr/libexec/snapd/snap-device-helper.orig	2019-04-23 20:52:07.000000000 +0200
+++ /usr/libexec/snapd/snap-device-helper	2019-05-07 15:15:42.341304463 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/sh
+#!/bin/bash
 # udev callout to allow a snap to access a device node
 set -e
 # debugging

I got that from https://bugs.launchpad.net/snapd/+bug/1824158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants