LizardByte / Sunshine

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

[Windows] [First Install] "Open Sunshine" not Working #2071

Open erikvanderwerf opened 9 months ago

erikvanderwerf commented 9 months ago

Is there an existing issue for this?

Is your issue described in the documentation?

Is your issue present in the nightly release?

Describe the Bug

On a clean Windows install, both the 0.21.0 and nightly releases do not open the UI when I select "Open Sunshine" from the toolbar icon. Nothing happens, no additional tabs are opened in my Chrome 120.0.6099.225 browser (or any other browser). No error is logged, so I cannot diagnose why.

Expected Behavior

I expect the UI to open in a new browser tab when I select "Open Sunshine".

Additional Context

I am able to connect to the service when I manually navigate to "https://localhost:47990" (it redirects to /welcome). I have done nothing else at this point :)

Host Operating System

Windows

Operating System Version

Windows 11 10.0.22621

Architecture

64 bit

Sunshine commit or version

0.21.0

Package

Windows - installer

GPU Type

Nvidia

GPU Model

RTX 3070

GPU Driver/Mesa Version

546.01

Capture Method (Linux Only)

No response

Config

<empty file>

Apps

No response

Relevant log output

[2024:01:28:12:09:01]: Info: Open the Web UI to set your new username and password and getting started
[2024:01:28:12:09:01]: Info: File C:\Program Files\Sunshine\config\sunshine_state.json doesn't exist
[2024:01:28:12:09:01]: Info: Configuration UI available at [https://localhost:47990]
[2024:01:28:12:09:02]: Info: Registered Sunshine mDNS service
erikvanderwerf commented 9 months ago

A few minutes later - the same issue with the pairing notification, clicking it does nothing and I have to manually go to the "PIN" page.

ReenigneArcher commented 9 months ago

Share logs

erikvanderwerf commented 9 months ago

sunshine.log

Towards the bottom is this section from my latest attempt:

[2024:01:28:14:55:22]: Info: Opening UI from system tray
[2024:01:28:14:55:22]: Info: cmd /C "start https://localhost:47990" running with PID 28400
[2024:01:28:14:55:22]: Info: Opened url [https://localhost:47990]

But nothing happens.

ReenigneArcher commented 9 months ago

You sure you don't have a browser open off screen, minimized, or something?

erikvanderwerf commented 9 months ago

My browser is open, I have many windows and tabs open already in Chrome, but none of them open a new tab with the UI.

cgutman commented 9 months ago

This might be fixed by #2105

ReenigneArcher commented 8 months ago

@erikvanderwerf

P.S. the command will try to open the URL in your default browser. If chrome is not your default browser, then it won't open in chrome.

Please confirm if this is fixed for you in nightly or not.

drujd commented 8 months ago

This is now broken for me as well as of 0.22... Worked perfectly in 0.21 and previous versions. I think the "fix" introduced some new issue(s).

cgutman commented 8 months ago

@drujd There's no way we can investigate your issue unless you provide logs from Sunshine.

drujd commented 8 months ago
[2024:03:10:22:30:11]: Info: System tray created
[2024:03:10:22:30:16]: Info: Opening UI from system tray
[2024:03:10:22:30:16]: Info: Resolved user-provided command 'https://localhost:32101' to '"C:\Program Files\WindowsApps\Mozilla.Firefox_123.0.1.0_x64__n80bbvh6b1yt2\VFS\ProgramFiles\Firefox Package Root\firefox.exe" -osint -url "https://localhost:32101"'

The weird thing is, when I run the exact command in terminal, it works perfectly... Just not when I actually click the context menu entry.

EDIT: Still broken in 0.22.1 and 0.22.2

drujd commented 7 months ago

When I (re)start Sunshine, it correctly opens its admin page in Firefox, when I run the command in log manually, it also works. It is ONLY when I click 'Open Sunshine' in the tray menu where it doesn't since v0.22...

Not really a big issue, just an annoyance.

ReenigneArcher commented 7 months ago

I can't replicate this. I have Firefox as my default browser...

drujd commented 7 months ago

Hmm, maybe it's just an issue with MSIX/Microsoft Store installation?

ReenigneArcher commented 7 months ago

Sunshine can't be installed from MSFT Store...

drujd commented 7 months ago

I meant Firefox. :)

ryanrocksize5 commented 6 months ago

Same here, not working on latest release as of today (0.23.1), using Windows 10 with Chrome, same log outputs which seems to indicate as nothing wrong, but browser refuses to connect

Update: so its mainly just an issue with the "Open sunshine" using localhost instead of your local ip address of the host pc.

Ex : https://127.0.0.1:47990 (this will work, localhost won't), just for those who may face this issue.

LizardByte-bot commented 3 months ago

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

drujd commented 3 months ago

Still an issue.

KobeRiddle-dev commented 2 months ago

I'm having the same issue. I am also using the MSFT store version of Firefox (it allows me to install Firefox on a new system without having to open another browser).

Hammerliu commented 2 months ago

Same issue. The Firefox process is created and then immediately terminates with code 0xc0000022. Screenshot 2024-09-15 163156