LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
19.42k stars 944 forks source link

Pre-release v2024.916.233144 fails to start ports on Debian Host #3201

Closed UntestedEngineer closed 1 month ago

UntestedEngineer commented 1 month ago

Is there an existing issue for this?

Is your issue described in the documentation?

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

When upgrading from pre-release v2024.914.221909 I issue a standard: systemctl --user daemon-reload systemctl --user restart sunshine.service

Afterwards the service appears to start fine, however the following ports no longer listen tcp 0 0 0.0.0.0:48010 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:47989 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:47990 0.0.0.0: LISTEN tcp 0 0 0.0.0.0:47984 0.0.0.0: LISTEN

Expected Behavior

When I downgrade back to pre-release v2024.914.221909 and repeat the above process the ports listen once again as expected.

I do not know if this is present in Windows or Ubuntu hosts, as I use this primarily on a Debian host.

Additional Context

No response

Host Operating System

Linux

Operating System Version

Debian Bookworm (12)

Architecture

64 bit

Sunshine commit or version

Sunshine version: v2024.914.221909

Package

Linux - deb

GPU Type

AMD

GPU Model

Integrated

GPU Driver/Mesa Version

Integrated

Capture Method

X11 (Linux)

Config

curtis@3dprint01:~/.config/sunshine$ cat sunshine.conf
channels = 2

Apps

No response

Relevant log output

Sep 18 15:27:56 3dprint01 systemd[911]: Started sunshine.service - Self-hosted game stream host for Moonlight.
Sep 18 15:27:56 3dprint01 sunshine[635866]: [channels] -- [2]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.045]: Info: Sunshine version: v2024.914.221909
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.045]: Info: Package Publisher: LizardByte
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.045]: Info: Publisher Website: https://app.lizardbyte.dev
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.045]: Info: Get support: https://app.lizardbyte.dev/support
Sep 18 15:27:56 3dprint01 sunshine[635866]: Cannot load libcuda.so.1
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.048]: Error: Couldn't load cuda: -1
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.048]: Info: /dev/dri/card0 -> i915
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.048]: Error: Environment variable WAYLAND_DISPLAY has not been defined
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.048]: Info: Detecting displays
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.095]: Info: Detected display: HDMI-1 (id: 0)HDMI-1 connected: false
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.095]: Info: Detected display: HDMI-2 (id: 1)HDMI-2 connected: true
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.106]: Warning: Gamepad ds5 is disabled due to Permission denied
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.106]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.107]: Info: Trying encoder [nvenc]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.107]: Info: Screencasting with KMS
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.107]: Info: /dev/dri/card0 -> i915
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.108]: Error: Couldn't find monitor [0]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.108]: Info: /dev/dri/card0 -> i915
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.108]: Error: Couldn't find monitor [0]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.154]: Info: System tray created
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.309]: Info: Screencasting with KMS
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.309]: Info: /dev/dri/card0 -> i915
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.309]: Error: Couldn't find monitor [0]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.309]: Info: /dev/dri/card0 -> i915
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.310]: Error: Couldn't find monitor [0]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.510]: Info: Encoder [nvenc] failed
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.510]: Info: Trying encoder [vaapi]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.510]: Info: Screencasting with KMS
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.510]: Info: /dev/dri/card0 -> i915
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.510]: Info: Found monitor for DRM screencasting
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.510]: Info: Found connector ID [195]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.511]: Info: Found cursor plane [76]
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: VA-API version 1.17.0
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Found init function __vaDriverInit_1_17
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: va_openDriver() returns 0
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.516]: Info: Creating encoder [h264_vaapi]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.516]: Info: Color coding: SDR (Rec. 601)
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.516]: Info: Color depth: 8-bit
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.516]: Info: Color range: JPEG
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: VA-API version 1.17.0
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Found init function __vaDriverInit_1_17
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: va_openDriver() returns 0
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.562]: Info: vaapi vendor: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ()
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.591]: Info: Creating encoder [hevc_vaapi]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.591]: Info: Color coding: SDR (Rec. 601)
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.591]: Info: Color depth: 8-bit
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.591]: Info: Color range: JPEG
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: VA-API version 1.17.0
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Found init function __vaDriverInit_1_17
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: va_openDriver() returns 0
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.604]: Info: vaapi vendor: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ()
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.646]: Info: Creating encoder [av1_vaapi]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.646]: Info: Color coding: SDR (Rec. 601)
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.646]: Info: Color depth: 8-bit
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.646]: Info: Color range: JPEG
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: VA-API version 1.17.0
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Found init function __vaDriverInit_1_17
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: va_openDriver() returns 0
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.658]: Info: vaapi vendor: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ()
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.658]: Error: [av1_vaapi @ 0x564177d5d600] No usable encoding entrypoint found for profile VAProfileAV1Profile0 (32).
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.658]: Info: Retrying with fallback configuration options for [av1_vaapi] after error: Function not implemented
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: VA-API version 1.17.0
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Found init function __vaDriverInit_1_17
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: va_openDriver() returns 0
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.660]: Info: vaapi vendor: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ()
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.660]: Error: [av1_vaapi @ 0x564178294a00] No usable encoding entrypoint found for profile VAProfileAV1Profile0 (32).
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.660]: Error: Could not open codec [av1_vaapi]: Function not implemented
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.662]: Info: Creating encoder [av1_vaapi]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.662]: Info: Color coding: SDR (Rec. 601)
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.662]: Info: Color depth: 8-bit
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.662]: Info: Color range: JPEG
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: VA-API version 1.17.0
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Found init function __vaDriverInit_1_17
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: va_openDriver() returns 0
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.673]: Info: vaapi vendor: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ()
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.673]: Error: [av1_vaapi @ 0x5641772b7240] No usable encoding entrypoint found for profile VAProfileAV1Profile0 (32).
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.674]: Info: Retrying with fallback configuration options for [av1_vaapi] after error: Function not implemented
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: VA-API version 1.17.0
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Found init function __vaDriverInit_1_17
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: va_openDriver() returns 0
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.675]: Info: vaapi vendor: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ()
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.676]: Error: [av1_vaapi @ 0x564177476d40] No usable encoding entrypoint found for profile VAProfileAV1Profile0 (32).
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.676]: Error: Could not open codec [av1_vaapi]: Function not implemented
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.677]: Info: Screencasting with KMS
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.677]: Info: /dev/dri/card0 -> i915
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.678]: Info: Found monitor for DRM screencasting
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.678]: Info: Found connector ID [195]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.678]: Info: Found cursor plane [76]
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: VA-API version 1.17.0
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Found init function __vaDriverInit_1_17
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: va_openDriver() returns 0
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.680]: Info: Creating encoder [hevc_vaapi]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.680]: Info: Color coding: SDR (Rec. 709)
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.680]: Info: Color depth: 10-bit
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.680]: Info: Color range: JPEG
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: VA-API version 1.17.0
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: Found init function __vaDriverInit_1_17
Sep 18 15:27:56 3dprint01 sunshine[635866]: libva info: va_openDriver() returns 0
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.693]: Info: vaapi vendor: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 ()
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.732]: Info:
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.732]: Info: // Ignore any errors mentioned above, they are not relevant. //
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.732]: Info:
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.732]: Info: Found H.264 encoder: h264_vaapi [vaapi]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.732]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.736]: Info: Adding avahi service 3dprint01
Sep 18 15:27:56 3dprint01 sunshine[635866]: [2024-09-18 15:27:56.737]: Info: Configuration UI available at [https://localhost:47990]
Sep 18 15:27:57 3dprint01 sunshine[635866]: [2024-09-18 15:27:57.702]: Info: Avahi service 3dprint01 successfully established.
ReenigneArcher commented 1 month ago

There's really almost no difference between those versions, certainly nothing that would cause this. I would suggest restarting your computer.

UntestedEngineer commented 1 month ago

Thanks, that did the trick. Seems like the simplest solutions are the easiest. I guess I was expecting a simple service daemon/service restart to work.

ReenigneArcher commented 1 month ago

It probably should have, but perhaps if you perform the install while the service is still running it doesn't properly release the ports (or not quickly enough).

Glad it's working though.