Flatpak applications fail to launch with systemd-related error

  • Open
  • quality assurance status badge
Details
2 participants
  • Z572
  • Juliana Sims
Owner
unassigned
Submitted by
Juliana Sims
Severity
normal
J
J
Juliana Sims wrote on 6 Jul 03:32 +0200
(address . bug-guix@gnu.org)
HLH6GS.8W2BZD4FWNDB@incana.org
Hello,

I ran a system reconfigure for the first time in a while today. After
doing so, I noticed that Flatpak apps fail to launch. Specifically,
when running `flatpak run org.gnome.Fractal`, which was working fine
before, the application hangs instead of launching and, with `-v`,
prints the following:

```
F: No installations directory in
/gnu/store/v4dy0sfj7znnzar1nn18jz0aznjni2fv-flatpak-1.14.6/etc/flatpak/installations.d.
Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path
/home/user/.local/share/flatpak
F: Opening user flatpak installation at path
/home/user/.local/share/flatpak
F: Opening user flatpak installation at path
/home/user/.local/share/flatpak
F:
/home/user/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/46/1ad35c08f997c0257506b34db175a27438799f0e5dc0f5e56ebe3635f53cbf58/files/lib32
does not exist
F: Cleaning up unused container id 181884517
F: Cleaning up per-app-ID state for org.gnome.Fractal
F: Allocated instance id 3966080007
F: Add defaults in dir /org/gnome/Fractal/
F: Add locks in dir /org/gnome/Fractal/
F: Allowing dri access
F: Allowing wayland access
F: Allowing pulseaudio access
F: Failed to run in transient scope: No systemd user session available,
cgroups not available
F: Running
'/gnu/store/y6l9z58xm8jzj7n1vxi5mcdb90x4sgal-bubblewrap-0.8.0/bin/bwrap
--args 35 --
/gnu/store/kxlbkakfs2b7m30vyr4r1gkb4zwzfi9p-xdg-dbus-proxy-0.1.5/bin/xdg-dbus-proxy
--args=37'
```

Of these messages, I suspect the culprit is "No systemd user session
available."

I had elogind installed through the GNOME system service while flatpak
was installed in my user home profile. I moved flatpak to the system
profile and reconfigured the system; this did not help.

Best,
Juli
Z
(name . Juliana Sims via Bug reports for GNU Guix)(address . bug-guix@gnu.org)
tencent_C9CBEECF4F87A33CA624ABD667332FD52205@qq.com
Juliana Sims via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

Toggle quote (45 lines)
> Hello,
>
> I ran a system reconfigure for the first time in a while today. After
> doing so, I noticed that Flatpak apps fail to launch. Specifically,
> when running `flatpak run org.gnome.Fractal`, which was working fine
> before, the application hangs instead of launching and, with `-v`,
> prints the following:
>
> ```
> F: No installations directory in
> /gnu/store/v4dy0sfj7znnzar1nn18jz0aznjni2fv-flatpak-1.14.6/etc/flatpak/installations.d. Skipping
> F: Opening system flatpak installation at path /var/lib/flatpak
> F: Opening user flatpak installation at path
> /home/user/.local/share/flatpak
> F: Opening user flatpak installation at path
> /home/user/.local/share/flatpak
> F: Opening user flatpak installation at path
> /home/user/.local/share/flatpak
> F:
> /home/user/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/46/1ad35c08f997c0257506b34db175a27438799f0e5dc0f5e56ebe3635f53cbf58/files/lib32
> does not exist
> F: Cleaning up unused container id 181884517
> F: Cleaning up per-app-ID state for org.gnome.Fractal
> F: Allocated instance id 3966080007
> F: Add defaults in dir /org/gnome/Fractal/
> F: Add locks in dir /org/gnome/Fractal/
> F: Allowing dri access
> F: Allowing wayland access
> F: Allowing pulseaudio access
> F: Failed to run in transient scope: No systemd user session
> available, cgroups not available
> F: Running
> '/gnu/store/y6l9z58xm8jzj7n1vxi5mcdb90x4sgal-bubblewrap-0.8.0/bin/bwrap
> --args 35 --
> /gnu/store/kxlbkakfs2b7m30vyr4r1gkb4zwzfi9p-xdg-dbus-proxy-0.1.5/bin/xdg-dbus-proxy
> --args=37'
> ```
>
> Of these messages, I suspect the culprit is "No systemd user session
> available."
>
> I had elogind installed through the GNOME system service while flatpak
> was installed in my user home profile. I moved flatpak to the system
> profile and reconfigured the system; this did not help.

Can you try another app, maybe there's a problem with this one

Toggle quote (3 lines)
>
> Best,
> Juli
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmaJWQEACgkQO1qpk+Gi
3/AgCg//biKBOkMY3laav0nW96iFgbUy4qj+JfuBGM1yACY0v+BVco4Ancrk5Jmg
1law036H921THe48AuAFsZj/W7kwaQ52TBHeUxUmAO/MfaiHGmvEF2XAhHKnmcj8
y9+Fakz/98Pp90aQxNNqDKLxTu5FTErvHiHTsgGEqCb+cLTAHGiOclajFobmxW51
g/x4C1RPz1zOphFgNw2F5l682F4fnt7fCve7oOu6+h0j+I8KvHZS6Wkvz+IqmJ1F
YVjn9qL2Zzb2+VOvvqekuZJj+qX9hCJgTDee61k+Js3MCV3Bgt/7TuNpXuhDciOq
055ooaq2SmYa132tpp3RUYhTlS+DkC1KRL5UJjDU7TkiYT3Rh8Hx0LlEn7zWGHPf
XrAV4bAXG/mNlH7RaZ2uWnspDuItgH5MkjGMzI3pvOiT4P1aNcbN1GxVVlmVN72/
6srv5WSctMT5XE0Kl7+xOWNZq/s/qjaJGo7ZTiBcG4M7wQXLo3978bEjWtfLfGEc
dVVAafBntti1GZYWZr1yGRYiGmIGCgN72LIHEv8r5yeFulueZGi6gUPLssyZGyAa
tIPG41hLlbFzvkYtF+QCMlI4/e1jQqk64fCp/U36v09aIhhS/5z1TK5HxhqInWGJ
1fHQlzx/I6a/+UgyS9yW/Rsk8CGtMiRfrK5fNBSzw9KwJ4LUgMA=
=wqa4
-----END PGP SIGNATURE-----

J
J
Juliana Sims wrote on 6 Jul 18:08 +0200
(name . Z572)(address . 873216071@qq.com)
C6M7GS.JG2HLF7DEQNV3@incana.org
Hi,
Toggle quote (2 lines)
> Can you try another app, maybe there's a problem with this one

I have tried with literally every application I have installed through
flatpak, and none of them work. Here's the complete list, in order by
ID:

com.github.tchx84.Flatseal
com.github.vladimiry.ElectronMail
io.bassi.Amberol
io.freetubeapp.FreeTube
net.lutris.Lutris
org.gnome.Fractal
org.gnome.Podcasts
org.jitsi.jitsi-meet
us.zoom.Zoom
Toggle quote (2 lines)
>>

Thanks,
Juli
Z
(name . Juliana Sims via Bug reports for GNU Guix)(address . bug-guix@gnu.org)
tencent_4B3F2F9DB572D392E55AAC4DCA5493ACF607@qq.com
Juliana Sims via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

Toggle quote (21 lines)
> Hi,
>> Can you try another app, maybe there's a problem with this one
>
> I have tried with literally every application I have installed through
> flatpak, and none of them work. Here's the complete list, in order by
> ID:
>
> com.github.tchx84.Flatseal
> com.github.vladimiry.ElectronMail
> io.bassi.Amberol
> io.freetubeapp.FreeTube
> net.lutris.Lutris
> org.gnome.Fractal
> org.gnome.Podcasts
> org.jitsi.jitsi-meet
> us.zoom.Zoom
>>>
>
> Thanks,
> Juli

can you try run flatpak in "guix system vm" ? flatpak is all right with
me
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmaKSUEACgkQO1qpk+Gi
3/CkrhAAug+qpnpe4OGzPorApxC78VD5YS5eG8ax1b0T9+9S/wemJEWBzmvOTic7
GW+UMxdT2ys4ZCRCBVDquNa+x8LqBadDH/wejyUCp7MNQH1dq90xUwVxsnMhZ+xd
FMQ+xvriw9dFWPzR+urw5VRKxZDEXPM90C5ZQED1h1P+g5s2Wlx/A/kYEGVoBAsz
PuomP8djgBo+LiwNx5zHek0apDbSc2q9S5ifjSDEDFmdEO/SGw2u5RxwTMJx+XTA
4bS9exPqF2JskzUBc1fm9ZDm2InG2Bkk8l8pappkbDYntluseLaKBKNEMVF1jCi9
9LQRGhciFD8bRzy+sfGWY26mSe0P5/4GIhMOv/vY+mfSO2Us4fsyQUsd5KqvQ+jh
XK6KulsCj1zr27lba7Jd7DVojPpBaa5PCAkMOlb0gGJZ+iU/8qkoX5bTU5GzVwfG
NBNRfHxbXsCNadbFnu8KMIi+2w1QDzm5BIkWwqWGemdGuJjPqs7+ji9hw9W7tamm
juNG9LGNf/KRjfkcAHWfF2r8CQuLcdgKW+s5e8vk4tLaVDLt1bflq9rOPnRKTCxc
zfkV9SbxxhKnAmNNnIQNlfrNsipa+EcRhf4h5soDb8tB5R76dpIhsaT4aPiX1FWs
wivj0wbGU5QgE0prCgOn2xKUaboVScQHbAyFdEOstJh/+C6a0c8=
=rijc
-----END PGP SIGNATURE-----

J
J
Juliana Sims wrote on 7 Jul 19:50 +0200
(name . Z572)(address . 873216071@qq.com)(name . 71962)(address . 71962@debbugs.gnu.org)
JJL9GS.1QX0P0VJVTVM2@incana.org
How do you run flatpak in a system vm?

I've tried setting up flatpak inside the VM, which didn't work because
I didn't persist the state; and exposing my user's home directory where
all relevant flatpak files are stored, which gave an "unable to
allocate session ID" error, which is distinct from the error I'm
getting natively. I could try building an image with a persistent disk,
but I figure if I'm running into issues running flatpak by sharing the
relevant directories, making those directories over again inside the VM
won't change things. I don't know how QEMU works well enough to noodle
this one out on my own.

I also tested `guix shell --container' to ensure that cgroups work in
other contexts, and they do. That combined with QEMU running fine leads
me to eliminate user group membership and kernel configuration options
(not that I've changed the kernel config from the default anyway) as
potential causes of the error.

It's also worth noting that I'm experiencing the same issue on a
different machine running Guix. They do share the base of their system
configuration as well as the user configuration for my user account,
though. I'll return to inspecting the configs for anything that might
conflict.

Thanks for your ongoing help!
J
J
Juliana Sims wrote on 23 Jul 18:41 +0200
(name . 71962)(address . 71962@debbugs.gnu.org)(name . Z572)(address . 873216071@qq.com)
R153HS.P0UU5NYWAESR@incana.org
This issue persists and has worsened.

After looking into similar issue reports on Flatpak's GitHub
repository, I tried removing gvfs from my system profile. No luck. I
then also removed ntfs-3g and gnome-shell-extension-appindicator (after
noticing the GNOME dropdown control panel now alerts to applications in
the background) since I thought they may interact with parts of the
system that cause issues. Now whenever I try to launch Flatpak apps,
my GNOME session crashes.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 71962@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 71962
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch