bazzite-gnome-nvidia sunshine not autostarting

I'm getting an issue in bazzite-gnome-nvidia:testing-41.20250101 where the sunshine service is failing to startup automatically. Is anyone else on the bazzite-gnome-nvidia image or any other gnome images experiencing this problem? This is what I'm seeing in my log.
sunshine[6282]: Error: Client failure: Daemon connection failed
sunshine[6282]: Error reading events from display: Broken pipe
systemd[1624]: sunshine.service: Main process exited, code=exited, status=1/FAILURE
systemd[1624]: sunshine.service: Failed with result 'exit-code'.
sunshine[6282]: Error: Client failure: Daemon connection failed
sunshine[6282]: Error reading events from display: Broken pipe
systemd[1624]: sunshine.service: Main process exited, code=exited, status=1/FAILURE
systemd[1624]: sunshine.service: Failed with result 'exit-code'.
If I start the service manually with systemctl enable --user --now sunshine.service it starts without issues. I'm thinking that the service is trying to launch too early, but that's just a guess.
15 Replies
Rin
Rin9mo ago
I had that same issue on gnome-nvidia, adding to autostart with Ignition solved that for me
No description
Rin
Rin9mo ago
If I start the service manually with systemctl enable --user --now sunshine.service it starts without issues. I'm thinking that the service is trying to launch too early, but that's just a guess.
I also noticed that with a arrpc service I created. Adding ExecStartPre=/bin/sleep 5 in the beginning worked for me, in that case it's a workaround for a workaround so I think it's fine
wolfyreload
wolfyreloadOP9mo ago
Thanks Rin. So it might just be an nvidia-gnome specific thing, glad to know it might be a real issue and not just a me issue. I'm going to rebase to bazzite-gnome and see if the issue occurs there too. Oh and it didn't know about Ignition, installing that now Getting the same issue on "bazzite-gnome:testing-41.20250101" going to test on "bazzite-gnome-deck:testing-41.20250101" It's working in bazzite-deck-gnome:testing-41.20250101
wolfyreload
wolfyreloadOP9mo ago
GitHub
Sunshine service failing to autostart on Bazzite gnome desktop imag...
Describe the bug It looks like there is a problem with sunshine failing to autostart on the desktop images of Bazzite. tested on bazzite-gnome-nvidia:testing-41.20250101 and bazzite-gnome:testing-4...
linkdowns
linkdowns4w ago
I ran into this issue today. Anyone found a fix?
Rin
Rin4w ago
I can't test it but this should be the fix https://github.com/ublue-os/bazzite/issues/2044#issuecomment-2948130721 This or add to autostart with ignition
linkdowns
linkdowns4w ago
Basically I found that ignition works, but partly because the desktop file for sunshine just enables and or starts the user systemd service. The ujust scripts do seem broken on gnome.
Rin
Rin4w ago
Are you on Nvidia too like the other reports? Asking cause I stopped using nvidia
linkdowns
linkdowns4w ago
Yes 40 series As far as I remember systemd has knowledge of and code for gnome. Whatever is in place may tacitly assume KDE. System D is definitely seeing the service that the just script creates, but it doesn’t result in the service running after boot and I haven’t dug in further
linkdowns
linkdowns4w ago
@wolfyreload https://github.com/ublue-os/bazzite/pull/3061 put that together to fix the issue after I got to the bottom of it. As a contributor, (judging by your badge) do you know anything about the usual cadence of reviews and such? It seems like the maintainers are pretty good about not letting them sit around.
GitHub
Fix(gnome): fix ujust setup-sunshine enable for gnome desktop by ...
Summary I was trying bazzite-gnome and noticed the sunshine enable just script didn't seem to work. What I came to was that gnome doesn't trigger the systemd target that sunshine&am...
wolfyreload
wolfyreloadOP4w ago
Yup, the maintainers check on pull requests quite often. Looks like the build failed but that has nothing to do with your change. Maybe drop a link to your PR in the #🎮bazzite-dev channel. It looks like it's a two line fix and Kyle has already approved it so there shouldn't be any trouble getting that merged in
linkdowns
linkdowns4w ago
ok, mind if I @ you in that ping?
Rin
Rin4w ago
hmm I'm still having problem with it for some reason
No description
Rin
Rin4w ago
it seems alright? My install is a bit old idk if something could have messeup
linkdowns
linkdowns3w ago
OK, my PR was merged and I've tested it here and it seems to work. Rin and Wolfy, you can follow the guide here: https://docs.bazzite.gg/Installing_and_Managing_Software/Updates_Rollbacks_and_Rebasing/rebase_guide/#how-do-i-swap-between-bazzite-and-other-fedora-atomic-desktop-images to rebase What I ran for my NVIDIA setup was
rpm-ostree rebase ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-gnome-nvidia:testing
rpm-ostree rebase ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-gnome-nvidia:testing
Currently there's an issue with bazzite-rebase-helper that just got merged, so for now it's probably simpler to rebase the above way. Has anyone tried this on a fresh install? Can we close this thread? This fix is in stable now.

Did you find this page helpful?