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

[Sunshine] Installed version doesn't match running version? #1359

Open
goncalossilva opened this issue Jul 14, 2024 · 10 comments
Open

[Sunshine] Installed version doesn't match running version? #1359

goncalossilva opened this issue Jul 14, 2024 · 10 comments
Labels
bug Something isn't working sunshine Self-hosted game stream host for Moonlight

Comments

@goncalossilva
Copy link

goncalossilva commented Jul 14, 2024

Describe the bug

It appears the installed version of sunshine doesn't match the running version.

Installed:

$ rpm -q sunshine
sunshine-2024.713.205505-1.fc40.x86_64
$ ls -la /usr/bin/ | grep sunshine
lrwxrwxrwx.   2 root root           29 Jul 14 02:53 sunshine -> sunshine-2024.713.205505.copr
-rwxr-xr-x.   1 root root     21846256 Jul  8 02:11 sunshine-2024.713.205505.copr

Running:

$ sunshine --version
[2024:07:14:03:05:33]: Info: Sunshine version: 2024.629.13903.copr
$ /usr/bin/sunshine --version
[2024:07:14:03:05:47]: Info: Sunshine version: 2024.629.13903.copr
$ /usr/bin/sunshine-2024.713.205505.copr --version
[2024:07:14:03:05:51]: Info: Sunshine version: 2024.629.13903.copr
Screenshot of the web interface showing the version

image

The running version indeed appears to be 2024.629.13903, as that version has an issue with AMD GPUs that's been fixed on the later versions, but I can still reproduce.

It's also worth noting that the previous version, between the latest and the one it appears to be stuck in, suffered from the same problem:

$ ls -la /usr/bin/ | grep sunshine
lrwxrwxrwx.   2 root root           29 Jul 12 09:50 sunshine -> sunshine-2024.710.151651.copr
-rwxr-xr-x.   1 root root     21846256 Jul  8 02:11 sunshine-2024.710.151651.copr
$ /usr/bin/sunshine-2024.710.151651.copr --version
[gamepad] -- [xone]
[2024:07:13:02:40:10]: Info: Sunshine version: 2024.629.13903.copr

(also notice how the binary size is unchanged)

I reviewed the build logs for both versions over on Copr and they look correct.

I suspect I'm missing something fairly obvious. How can this be?

What did you expect to happen?

I expect the installed version of sunshine to match the runtime version.

Output of rpm-ostree status

$ rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite:stable
                   Digest: sha256:3c0bf8b0e58a578e34d8af30e3da10f547c782d9d3a971502948889388c51883
                  Version: 40.20240713.0 (2024-07-14T00:57:44Z)
          LayeredPackages: sunshine
            LocalPackages: lact-0.5.4-0.x86_64

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite:stable
                   Digest: sha256:406696eac5e410baa5cd9524922551c5bfa177639cdb506180926d14323d9f76
                  Version: 40.20240712.0 (2024-07-12T04:55:54Z)
          LayeredPackages: sunshine
            LocalPackages: lact-0.5.4-0.x86_64

Hardware

Standard desktop, with a Ryzen 3950X and an AMD 6900XT. Bazzite is a very recent install, with no customizations except installing LACT and Sunshine using ujust.

@goncalossilva goncalossilva changed the title [Sunshine] Installed version of sunshine doesn't match running version? [Sunshine] Installed version doesn't match running version? Jul 14, 2024
@dosubot dosubot bot added bug Something isn't working sunshine Self-hosted game stream host for Moonlight labels Jul 14, 2024
@goncalossilva
Copy link
Author

This behavior seems specific to Bazzite, or better, my installation of Bazzite.

On a regular Fedora 40 install everything works as expected:

$ dnf copr enable matte-schwartz/sunshine 
...
$ dnf install sunshine
<installs 2024.713.205505-1.fc40 + dependencies>
$ sunshine --version
[2024:07:14:22:57:17]: Info: Sunshine version: 2024.713.205505.copr

@SvdB-nonp
Copy link

I coincedently came across this issue and as I was installing sunshine anyway, was checking my versions.

Seeing the outputs, it is working correctly on my end, which is new-ish install (removed a month ago, so some user files may have lingered) with ujust setup-sunshine.

$ rpm -q sunshine
sunshine-2024.713.205505-1.fc40.x86_64

$ ls -la /usr/bin/ | grep sunshine
lrwxrwxrwx.   2 root root           29 17 jul 12:45 sunshine -> sunshine-2024.713.205505.copr
-rwxr-xr-x.   1 root root     22367680 17 jul 12:54 sunshine-2024.713.205505.copr

$ sunshine --version
[address_family] -- [both]
[output_name] -- [0]
[2024:07:17:12:55:58]: Info: Sunshine version: 2024.713.205505.copr

$ /usr/bin/sunshine --version
[address_family] -- [both]
[output_name] -- [0]
[2024:07:17:12:56:16]: Info: Sunshine version: 2024.713.205505.copr

$ /usr/bin/sunshine-2024.713.205505.copr --version
[address_family] -- [both]
[output_name] -- [0]
[2024:07:17:12:56:30]: Info: Sunshine version: 2024.713.205505.copr

And the web interface mentions "Version 2024.713.205505.copr" in the homepage.

@goncalossilva
Copy link
Author

This issue may stem from my misunderstanding of how Universal Blue. Could it be that layered packages are only updated when the base image is?

Regardless, I found a convoluted way to make it work, by using rpm-ostree override replace <copr url> followed by rpm-ostree apply-live --alow-replacement and restarting sunshine.

Rebooting the system immediately reverts to the previous state.

@rcarmo
Copy link

rcarmo commented Sep 27, 2024

I still can't get sunshine to work on current Bazzite. It immediately core demps on startup now, and I have to run a 6 months' old snapshot. I wonder if it's actually being maintained.

@KyleGospo
Copy link
Member

KyleGospo commented Sep 27, 2024

I still can't get sunshine to work on current Bazzite. It immediately core demps on startup now, and I have to run a 6 months' old snapshot. I wonder if it's actually being maintained.

Should be working, definitely is on my end. The version that we ship is built on copr from source.
https://copr.fedorainfracloud.org/coprs/matte-schwartz/sunshine/

Can you provide more details on the crash and your current hardware?

@rcarmo
Copy link

rcarmo commented Sep 27, 2024

Same hardware as #1276. I just get an instant core dump, and the user systemd unit reports that but there is no more info.

edited to add:

me@bazzite:~$ systemctl --user status sunshine.service
× sunshine.service - Self-hosted game stream host for Moonlight
     Loaded: loaded (/usr/lib/systemd/user/sunshine.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/user/service.d
             └─10-timeout-abort.conf
     Active: failed (Result: core-dump) since Fri 2024-09-27 23:36:33 IST; 9h ago
   Duration: 1.199s
    Process: 7855 ExecStartPre=/bin/sleep 5 (code=exited, status=0/SUCCESS)
    Process: 7951 ExecStart=/usr/bin/sunshine (code=dumped, signal=ABRT)
   Main PID: 7951 (code=dumped, signal=ABRT)
        CPU: 422ms

Sep 27 23:36:28 bazzite systemd[5590]: sunshine.service: Failed with result 'core-dump'.
Sep 27 23:36:33 bazzite systemd[5590]: sunshine.service: Scheduled restart job, restart counter is at 5.
Sep 27 23:36:33 bazzite systemd[5590]: sunshine.service: Start request repeated too quickly.
Sep 27 23:36:33 bazzite systemd[5590]: sunshine.service: Failed with result 'core-dump'.
Sep 27 23:36:33 bazzite systemd[5590]: Failed to start sunshine.service - Self-hosted game stream host for Moonl>

@goncalossilva
Copy link
Author

goncalossilva commented Oct 2, 2024

I can't reproduce #1710, but the problem described in the OP persists, assuming it's not a misunderstanding on my part.

Currently, I am stuck on v2024.729.24508, which is multiple versions behind. The latest is v2024.1002.214 (released today) and the latest available on Copr is v2024.911.215654 (released a couple of weeks ago). I can get it updated if I follow the steps I described before, but as soon as I reboot, it goes back to listing v2024.1002.214 as the version installed, but actually running v2024.729.24508 per sunshine's web ui.

The latest versions are more performant on my particularly setup (Linux + AMD) so I always end up doing this dance.

Copy link

dosubot bot commented Jan 1, 2025

Hi,[Comment removed because it was tagging too many users]

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Jan 1, 2025
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2025
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Jan 20, 2025
@goncalossilva
Copy link
Author

I still experience this issue. Is there a fix for it?

@dosubot dosubot bot reopened this Jan 20, 2025
Copy link

dosubot bot commented Jan 20, 2025

@KyleGospo, the user goncalossilva has indicated that they still experience this issue and are looking for a fix. Could you please assist them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sunshine Self-hosted game stream host for Moonlight
Projects
None yet
Development

No branches or pull requests

4 participants