Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

it does not worked on Ubuntu 22.04

Open dnet890 opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your issue described in the documentation?

  • [X] I have read the documentation

Is your issue present in the nightly release?

  • [X] This issue is present in the nightly release

Describe the Bug

it started the web UI (https://localhost:47990/apps). But there is an error message when it starts.

Expected Behavior

it should works

Additional Context

For Appimage sudo ./sunshine.appimage --install && ./sunshine.appimage QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=@.host --user to connect to bus of other user) Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=@.host --user to connect to bus of other user) KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"NOTE: Under Linux, effective file capabilities must either be empty, or exactly match the union of selected permitted and inheritable bits. Failed to set capabilities on file `/tmp/.mount_sunshi1Xh3xd/usr/bin/sunshine-0.16.0' (Read-only file system) This installation requires a reboot. Do you want to reboot NOW? [y/n] I rebooted and then try again same command and it just repeated itself if I type "no" the output is No [amd_coder] -- [auto] [upnp] -- [enabled] [nv_preset] -- [default] [encoder] -- [vaapi] [hevc_mode] -- [0] [nv_rc] -- [auto] [fps] -- [[10,30,60]] [vt_coder] -- [auto] [amd_rc] -- [auto] [min_log_level] -- [2] [vt_realtime] -- [enabled] [key_rightalt_to_key_win] -- [disabled] [origin_pin_allowed] -- [pc] [resolutions] -- [[ 352x240, 480x360, 858x480, 1280x720, 1920x1080, 2560x1080, 3440x1440, 1920x1200, 1280x800 ]] [nv_coder] -- [auto] [gamepad] -- [x360] [dwmflush] -- [enabled] [origin_web_ui_allowed] -- [lan] [vt_software] -- [auto] [amd_quality] -- [default] [2022:12:23:15:45:17]: Error: Failed to create session: This hardware does not support NvFBC [2022:12:23:15:45:17]: Error: Failed to gain CAP_SYS_ADMIN [2022:12:23:15:45:17]: Error: Failed to gain CAP_SYS_ADMIN [2022:12:23:15:45:17]: Error: Failed to gain CAP_SYS_ADMIN [2022:12:23:15:45:17]: Error: Couldn't get handle for DRM Framebuffer [104]: Possibly not permitted: do [sudo setcap cap_sys_admin+p sunshine] [2022:12:23:15:45:17]: Error: Environment variable WAYLAND_DISPLAY has not been defined [2022:12:23:15:45:17]: Info: Detecting connected monitors [2022:12:23:15:45:17]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // [2022:12:23:15:45:17]: Info: Trying encoder [vaapi] [2022:12:23:15:45:17]: Info: Screencasting with X11 [2022:12:23:15:45:17]: Info: Color coding [Rec. 601] [2022:12:23:15:45:17]: Info: Color range: [JPEG] libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so libva info: va_openDriver() returns -1 [2022:12:23:15:45:17]: Info: /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so has no function __vaDriverInit_1_0 [2022:12:23:15:45:17]: Error: Couldn't initialize va display: unknown libva error [2022:12:23:15:45:17]: Info: Screencasting with X11 libva info: VA-API version 1.7.0 [2022:12:23:15:45:17]: Info: Color coding [Rec. 601] [2022:12:23:15:45:17]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so libva info: va_openDriver() returns -1 [2022:12:23:15:45:17]: Info: /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so has no function __vaDriverInit_1_0 [2022:12:23:15:45:17]: Error: Couldn't initialize va display: unknown libva error [2022:12:23:15:45:17]: Info: Screencasting with X11 libva info: VA-API version 1.7.0 [2022:12:23:15:45:17]: Info: Color coding [Rec. 601] [2022:12:23:15:45:17]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so libva info: va_openDriver() returns -1 [2022:12:23:15:45:17]: Info: /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so has no function __vaDriverInit_1_0 [2022:12:23:15:45:17]: Error: Couldn't initialize va display: unknown libva error [2022:12:23:15:45:17]: Info: Screencasting with X11 libva info: VA-API version 1.7.0 [2022:12:23:15:45:17]: Info: Color coding [Rec. 601] [2022:12:23:15:45:17]: Info: Color range: [JPEG] libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so libva info: va_openDriver() returns -1 [2022:12:23:15:45:17]: Info: /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so has no function __vaDriverInit_1_0 [2022:12:23:15:45:17]: Error: Couldn't initialize va display: unknown libva error [2022:12:23:15:45:17]: Info: Encoder [vaapi] failed [2022:12:23:15:45:17]: Info: [2022:12:23:15:45:17]: Info: // Ignore any errors mentioned above, they are not relevant. // [2022:12:23:15:45:17]: Info: [2022:12:23:15:45:17]: Fatal: Couldn't find any encoder matching [vaapi]

Host Operating System

Linux

Operating System Version

Ubuntu 22.04

Architecture

64 bit

Sunshine commit or version

0.16

Package

Linux - 22.04-deb & Appimage

GPU Type

Nvidia

GPU Model

RTX 3070

GPU Driver/Mesa Version

515.86.01

Capture Method (Linux Only)

No response

Relevant log output

this one for deb file

sunshine
[amd_coder] -- [auto]
[upnp] -- [enabled]
[nv_preset] -- [default]
[encoder] -- [vaapi]
[hevc_mode] -- [0]
[nv_rc] -- [auto]
[fps] -- [[10,30,60]]
[vt_coder] -- [auto]
[amd_rc] -- [auto]
[min_log_level] -- [2]
[vt_realtime] -- [enabled]
[key_rightalt_to_key_win] -- [disabled]
[origin_pin_allowed] -- [pc]
[resolutions] -- [[
    352x240,
    480x360,
    858x480,
    1280x720,
    1920x1080,
    2560x1080,
    3440x1440,
    1920x1200,
    1280x800
]]
[nv_coder] -- [auto]
[gamepad] -- [x360]
[dwmflush] -- [enabled]
[origin_web_ui_allowed] -- [lan]
[vt_software] -- [auto]
[amd_quality] -- [default]
[2022:12:23:13:50:01]: Error: Failed to create session: This hardware does not support NvFBC
[2022:12:23:13:50:01]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2022:12:23:13:50:01]: Info: Detecting connected monitors
[2022:12:23:13:50:01]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2022:12:23:13:50:01]: Info: Trying encoder [vaapi]
[2022:12:23:13:50:01]: Info: Screencasting with KMS
[2022:12:23:13:50:01]: Info: Found monitor for DRM screencasting
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
libva info: VA-API version 1.14.0
[2022:12:23:13:50:01]: Info: Color coding [Rec. 601]
[2022:12:23:13:50:01]: Info: Color range: [JPEG]
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
mesa: for the --simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the --global-isel-abort option: may only occur zero or one times!
mesa: for the --amdgpu-atomic-optimizations option: may only occur zero or one times!
[2022:12:23:13:50:01]: Info: Screencasting with KMS
[2022:12:23:13:50:01]: Info: Found monitor for DRM screencasting
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
libva info: VA-API version 1.14.0
[2022:12:23:13:50:01]: Info: Color coding [Rec. 601]
[2022:12:23:13:50:01]: Info: Color range: [JPEG]
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
[2022:12:23:13:50:01]: Info: Screencasting with KMS
[2022:12:23:13:50:01]: Info: Found monitor for DRM screencasting
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
libva info: VA-API version 1.14.0
[2022:12:23:13:50:01]: Info: Color coding [Rec. 601]
[2022:12:23:13:50:01]: Info: Color range: [JPEG]
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
[2022:12:23:13:50:01]: Info: Screencasting with KMS
[2022:12:23:13:50:01]: Info: Found monitor for DRM screencasting
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
libva info: VA-API version 1.14.0
[2022:12:23:13:50:01]: Info: Color coding [Rec. 601]
[2022:12:23:13:50:01]: Info: Color range: [JPEG]
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
[2022:12:23:13:50:02]: Info: Screencasting with KMS
[2022:12:23:13:50:02]: Info: Found monitor for DRM screencasting
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
libva info: VA-API version 1.14.0
[2022:12:23:13:50:02]: Info: Color coding [Rec. 601]
[2022:12:23:13:50:02]: Info: Color range: [JPEG]
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
[2022:12:23:13:50:02]: Info: Screencasting with KMS
[2022:12:23:13:50:02]: Info: Found monitor for DRM screencasting
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
libva info: VA-API version 1.14.0
[2022:12:23:13:50:02]: Info: Color coding [Rec. 709]
[2022:12:23:13:50:02]: Info: Color range: [JPEG]
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
[2022:12:23:13:50:02]: Info: Screencasting with KMS
[2022:12:23:13:50:02]: Info: Found monitor for DRM screencasting
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
libva info: VA-API version 1.14.0
[2022:12:23:13:50:02]: Info: Color coding [Rec. 709]
[2022:12:23:13:50:02]: Info: Color range: [JPEG]
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
[2022:12:23:13:50:02]: Warning: vaapi: hevc missing sps->vui parameters
[2022:12:23:13:50:02]: Warning: vaapi: hevc: replacing nalu prefix data
[2022:12:23:13:50:02]: Info: 
[2022:12:23:13:50:02]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2022:12:23:13:50:02]: Info: 
[2022:12:23:13:50:02]: Info: Found encoder vaapi: [h264_vaapi, hevc_vaapi]
[2022:12:23:13:50:02]: Info: Adding avahi service Sunshine
[2022:12:23:13:50:02]: Info: Configuration UI available at [https://localhost:47990]
[2022:12:23:13:50:03]: Info: Avahi service Sunshine successfully established.
[2022:12:23:13:50:10]: Error: Couldn't discover any UPNP devices

dnet890 avatar Dec 23 '22 04:12 dnet890

It's a bug in the AppImage.

Failed to set capabilities on file `/tmp/.mount_sunshi1Xh3xd/usr/bin/sunshine-0.16.0' (Read-only file system)

You can use Xorg/X11 and it should work.

ReenigneArcher avatar Dec 23 '22 11:12 ReenigneArcher

FYI, I already use x11 on that session and that problem occurs

dnet890 avatar Dec 23 '22 12:12 dnet890

Would love to know how to fix this...

tripplehelix avatar Feb 16 '23 17:02 tripplehelix

This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.

LizardByte-bot avatar May 18 '23 10:05 LizardByte-bot

This issue was closed because it has been stalled for 10 days with no activity.

LizardByte-bot avatar May 29 '23 10:05 LizardByte-bot

it is relevant

dnet890 avatar May 29 '23 10:05 dnet890

It exists for me on a brand new install of kubuntu with a 3090 graphics card.

ageisen2000 avatar Aug 27 '23 04:08 ageisen2000

Same issue here

Also exists on KDE Neon 5.27:

Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.5.0-17-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X570 AORUS PRO WIFI
System Version: -CF

asherbig avatar Feb 18 '24 00:02 asherbig

also ubuntu22.04lts

When it starts, it will simultaneously launch the Todesk, Ubuntu startup tools, and screen reading in the settings (although it is displayed as off in the settings)

Linux EliteBook 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May  7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

OSLike avatar Jun 10 '24 02:06 OSLike