Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

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

Open erikvanderwerf opened this issue 2 years ago • 25 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

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 avatar Jan 28 '24 20:01 erikvanderwerf

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.

erikvanderwerf avatar Jan 28 '24 20:01 erikvanderwerf

Share logs

ReenigneArcher avatar Jan 28 '24 21:01 ReenigneArcher

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.

erikvanderwerf avatar Jan 28 '24 22:01 erikvanderwerf

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

ReenigneArcher avatar Jan 28 '24 23:01 ReenigneArcher

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.

erikvanderwerf avatar Jan 29 '24 01:01 erikvanderwerf

This might be fixed by #2105

cgutman avatar Feb 05 '24 05:02 cgutman

@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.

ReenigneArcher avatar Feb 29 '24 14:02 ReenigneArcher

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).

drujd avatar Mar 08 '24 19:03 drujd

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

cgutman avatar Mar 08 '24 23:03 cgutman

[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 avatar Mar 10 '24 21:03 drujd

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.

drujd avatar Apr 02 '24 15:04 drujd

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

ReenigneArcher avatar Apr 02 '24 15:04 ReenigneArcher

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

drujd avatar Apr 02 '24 16:04 drujd

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

ReenigneArcher avatar Apr 02 '24 17:04 ReenigneArcher

I meant Firefox. :)

drujd avatar Apr 02 '24 17:04 drujd

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.

ryanrocksize5 avatar Apr 22 '24 08:04 ryanrocksize5

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!

LizardByte-bot avatar Jul 29 '24 10:07 LizardByte-bot

Still an issue.

drujd avatar Jul 30 '24 11:07 drujd