stride icon indicating copy to clipboard operation
stride copied to clipboard

Unable to connect to Stride server. Switching to offline mode…

Open micartey opened this issue 3 years ago • 21 comments

Release Type: Official Release/GitHub

Version: Newest Installer (as of 28.12.2022)

Platform(s): Windows 10

Describe the bug img

To Reproduce Steps to reproduce the behavior:

  1. Download and Install Stride

Expected behavior An internet connection perhaps?

Log and callstacks Empty

micartey avatar Dec 28 '22 19:12 micartey

Visual Studio 2022 is also grayed out

micartey avatar Dec 28 '22 19:12 micartey

Stride requires internet connectivity. The Launcher is small and allows you to download a specific version of the GameStudio using NuGet package management system. You can potentially install the packages from an offline location, however, it is not a popular way of getting Stride and there's no official instructions how to do so.

manio143 avatar Dec 28 '22 20:12 manio143

The thing is, I have internet connectivity

micartey avatar Dec 28 '22 23:12 micartey

It looks like that message is presented when no packages have been found. So either it signals no internet connectivity in general, or an issue connecting to NuGet.org Can you please check if you have any custom configuration at %appdata%\NuGet? The global config is currently used by Stride launcher to detect any Stride packages (possible related #1533).

Definitely the error message box is not well designed currently.

manio143 avatar Dec 29 '22 10:12 manio143

I did not do any changes and the xml file is empty except the boilerplate

micartey avatar Dec 30 '22 02:12 micartey

I should add that while installing the Engine no additional packages have been installed and I doubt that no additional where needed

micartey avatar Dec 30 '22 02:12 micartey

I solved the issue adding < add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" / > inside %temp%/NuGet/nuget.conf

Chewico3d avatar Mar 24 '23 12:03 Chewico3d

Hi! I got the same error. I solved this by clicking on the "Click here to show beta versions" and it asked me to add "new sources". I clicked yes, and after restarting the launcher, it started downloading the engine.

TheOctoMizer avatar Oct 09 '23 11:10 TheOctoMizer

Still this issue is there in 2025. I'm getting the same error. Uninstalled reinstalled. Restart computer. Cleaned installed. Nothing works for me. The beta version only lets me download the 3.0 version.

IndieDev99 avatar May 17 '25 07:05 IndieDev99

IMG_20250517_123223_495.jpg

I have only older versions. Can we do One thing. Which is to use Godot 4 like a launcher. Download once. Kindly someone provide alternate

IndieDev99 avatar May 17 '25 07:05 IndieDev99

We use nuget feeds to get the packages. The issue is solely on their side. Try to contact their support. It seems there are issues in different part of the worlds

Kryptos-FR avatar May 17 '25 10:05 Kryptos-FR

It seems there are issues in different part of the worlds

Let me try.

IndieDev99 avatar May 17 '25 11:05 IndieDev99

Did the message "Unable to connect to Stride server. Switching to offline mode" actually showed up on your screen?

When I was doing my clean install tests, I had a case when a .NET SDK install window showed up below the Strider launcher and I haven't noticed.

It is also mentioned here https://doc.stride3d.net/latest/en/manual/get-started/install-stride.html, Step 11 warning.

If this isn't your case, check if .NET SDK (currently version 8) is already installed on your computer.

If .NET SDK isn't installed yet, try to install it manually. That means the launcher will skip installing it and might proceed further, if your issue is the same case I had or related.

Also, other prerequisites can be installed manually https://doc.stride3d.net/latest/en/manual/troubleshooting/stride-doesnt-run.html which might help to proceed further in your case.

VaclavElias avatar May 17 '25 11:05 VaclavElias

IMG_20250517_183158_522.jpg

Internet connection error gone but now showing older versions 😔

IndieDev99 avatar May 17 '25 13:05 IndieDev99

I was running 4.2 until yesterday and I uninstalled it by mistake. After that l am stuck with errors. I deleted temp files from all the places. Still it's not working. Tries many solutions not working

IndieDev99 avatar May 17 '25 13:05 IndieDev99

You can try to remove all Stride.* packages from the NuGet cache in %USERPROFILE%\.nuget\packages.

In addition (after doing that clean), make sure the nuget.config files on your machine are not missing the default nuget feed. You can then try to restore a project referencing any of the stride package and see if that works. Here is a minimum project file to do that:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>net8.0</TargetFrameworks>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Stride.Engine" Version="4.2.0.2381" />
  </ItemGroup>
</Project>

Kryptos-FR avatar May 17 '25 13:05 Kryptos-FR

I see. That is going to be difficult to find out what is the real issue..

Could you check also 2 things and paste the results here?

  1. Content of this file C:\Users\YourUserName\AppData\Roaming\NuGet\NuGet.Config

  2. Output when you write dotnet --info to your console.

Thanks.

VaclavElias avatar May 17 '25 13:05 VaclavElias

Output when you write dotnet --info to your console.

IMG_20250518_003545_679.jpg

IndieDev99 avatar May 17 '25 19:05 IndieDev99

Your SDK is ok.

VaclavElias avatar May 17 '25 20:05 VaclavElias

The Reason Was. I live in Pakistan. Due to some political issues the current regime is working on their firewall so Microsoft servers are due to some reasons that are not reachable I used vpn and now I have the latest version.. thank you guys. But please consider some offline engine installer or zip file etc Like Godot. Thanks again

IndieDev99 avatar May 18 '25 11:05 IndieDev99

I am sorry to hear that. I found a Reddit post mentioning the same (certain services blocked). While the launcher itself probably isn't a problem, the NuGet packages are. We would need to zip them, host them somewhere, and maintain the infrastructure and deployment pipeline. If Stride funding increases and the core team grows, we should consider this option.

For now, also an another workaround could be to download the Stride source and build the NuGet packages yourself. They should be automatically available for Visual Studio and Game Studio if I am correct . This could work fine if your internet connection and machine can handle it.

VaclavElias avatar May 18 '25 11:05 VaclavElias