DuoStream / Duo

An HDR-compatible multiseat streaming solution based around RdpWrap, Sunshine, Moonlight, and a variety of custom driver and library patches
355 stars 1 forks source link

Service wont start #123

Open kneckyy opened 3 months ago

kneckyy commented 3 months ago

I got this error after updating to Windows 11. I cant activate the service, when I try to turn it on it turns itself off after a while (but never becomes activated). Duo was working until I updated from W10.

The button to open web interface is greyed out permanently.

I have read through the troubleshooting page and turned off memory integrity, made a new admin account etc.

Here is my sunshine log:

[2024:05:28:11:59:45]: Info: Sunshine version: 0.22.2.ad7d52c [2024:05:28:11:59:45]: Info: nvprefs: No need to modify application profile settings [2024:05:28:11:59:45]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile [2024:05:28:11:59:46]: Info: Compiling shaders... [2024:05:28:11:59:46]: Info: System tray created [2024:05:28:11:59:46]: Info: Compiled shaders [2024:05:28:11:59:48]: Info: ViGEmBus device instance path: ROOT\SYSTEM\0001 [2024:05:28:11:59:48]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // [2024:05:28:11:59:48]: Info: Trying encoder [nvenc] [2024:05:28:11:59:48]: Info: ddprobe.exe [1] [] returned: 0x00000000 [2024:05:28:11:59:48]: Info: Set GPU preference: 1 [2024:05:28:11:59:54]: Error: Failed to locate an adapter, restarting session [2024:05:28:11:59:57]: Info: Interrupt handler called [2024:05:28:12:00:01]: Error: Failed to locate an adapter, restarting session

Event log spams: The TermService couldn't be stopped, retrying in 500ms TermService is refusing to stop

kneckyy commented 3 months ago

Update: Since it didnt detect my GPU, I disabled my integrated graphics card and now Duo (and sunshine instances) works again.

But I would like to be able to have it turned on.

I also keep getting spammed with: [2024:05:29:10:00:55]: Info: Web UI: [127.0.0.1] -- not authorized [2024:05:29:10:00:56]: Info: Web UI: [127.0.0.1] -- not authorized [2024:05:29:10:00:57]: Info: Web UI: [127.0.0.1] -- not authorized [2024:05:29:10:00:58]: Info: Web UI: [127.0.0.1] -- not authorized [2024:05:29:10:00:59]: Info: Web UI: [127.0.0.1] -- not authorized

kneckyy commented 3 months ago

Update 2: I turned on my iGPU again, and Duo is still working (can access web user interface etc) also Sunshine seems to be working again.

I keep getting spammed with "Web UI - not authorized" every second though

[2024:05:29:10:16:23]: Info: Web UI: [127.0.0.1] -- not authorized [2024:05:29:10:16:24]: Info: Web UI: [127.0.0.1] -- not authorized [2024:05:29:10:16:25]: Info: Web UI: [127.0.0.1] -- not authorized [2024:05:29:10:16:26]: Info: Web UI: [127.0.0.1] -- not authorized [2024:05:29:10:16:27]: Info: Web UI: [127.0.0.1] -- not authorized

kneckyy commented 3 months ago

Also wondering... Is it possible to have the Sunshine instance toggled on auto start, but without logging in a second user upon start?

Because 95% of the time I'm working on the PC and it takes up unnecessary resources in the background.

Can it be configured so that upon connecting with Moonlight, it logs in the "Sunshine user"? Or when Moonlight opens an app? Would make more sense.

samkitty commented 3 months ago

Also wondering... Is it possible to have the Sunshine instance toggled on auto start, but without logging in a second user upon start?

This has been discussed in #77 and the conclusion is that Sunshine wouldn't start at all if the user is not logged in first, so you won't be able to see the computer in Moonlight.

I have worked around this by using Tasker on my phone to navigate to the following URL whenever I open the Moonlight app: http://127.0.0.1:38299/instances/<instance name>/start And whenever I close Moonlight: http://127.0.0.1:38299/instances/<instance name>/stop Replace <instance name> with your own Duo instance.

That way every time I start using Moonlight, Sunshine will spawn a session within a few seconds and whenever I exit Moonlight it will log out if the Duo session, freeing up resources.

You can navigate to the URLs manually in your browser if you'd rather not use Tasker.

fladdie commented 2 months ago

Hello,

No matter what I try, the service will not start. I have tried both the Patreon and the free version. In both cases I have tried version 1.4.5.

Where can I find the log?

samkitty commented 2 months ago

Where can I find the log?

Open Start menu, type Event Viewer, and then select the Event Viewer desktop app. In Event Viewer, expand the Windows Logs folder, and select the Application event log.

There's another log in the Duo folder in Program Files, but the event viewer should tell you why the service won't start.

fladdie commented 2 months ago

There's another log in the Duo folder in Program Files

Unfortunately there is no log file in the path of the program image

I get 3 errors in the eventlog:

  1. TermService is refusing to stop
  2. The TermService couldn't be stopped, retrying in 500ms
  3. The user couldn't be added to the Remote Desktop Users group
samkitty commented 2 months ago

Unfortunately there is no log file in the path of the program

The .log files are usually in C:\Program Files\Duo\config, though it is possible that your Duo instance hasn't generated any logs yet.

I'm not familiar with the errors you're receiving in Event Viewer, you will need @Black-Seraph's help. Best if you open a separate issue.

Black-Seraph commented 1 month ago

I would highly advice to try out the latest build first and see if this issue persists.

A lot has changed since 1.4.5.

JPNC15 commented 1 month ago

Hello,

Apologies for necroing this one, I have a very similar issue.

Sunshine service never starts, especially with the instance name I give. Then when I actually try to rum sunshine.exe in the duo folder, I get similar logs as above.

This does not happen with regular sunshine.

Log file attached, renamed to my instance.

Legion.log

Appreciate it if you can have a look, thank you.