Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore fails on linux for Aspire.Hosting.Orchestration.linux-x64 #6757

Open
1 task done
GabschD opened this issue Nov 21, 2024 · 5 comments
Open
1 task done

Restore fails on linux for Aspire.Hosting.Orchestration.linux-x64 #6757

GabschD opened this issue Nov 21, 2024 · 5 comments

Comments

@GabschD
Copy link

GabschD commented Nov 21, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I'm trying to build an aspire project in an Azure DevOps pipeline (self hosted on a VMSS with ubuntu 22-04) and it fails on restore.
I found a similar issue, but it mentions 8.2 so maybe its a diffferent one.

Failed to download package 'Aspire.Hosting.Orchestration.linux-x64.9.0.0' from 'https://api.nuget.org/v3-flatcontainer/aspire.hosting.orchestration.linux-x64/9.0.0/aspire.hosting.orchestration.linux-x64.9.0.0.nupkg'.
         The download of 'https://api.nuget.org/v3-flatcontainer/aspire.hosting.orchestration.linux-x64/9.0.0/aspire.hosting.orchestration.linux-x64.9.0.0.nupkg' timed out because no data was received for 60000ms.
           The operation has timed out.

As those links are actually empty.

Csproj for reference:

<Project Sdk="Microsoft.NET.Sdk">
  <Sdk Name="Aspire.AppHost.Sdk" Version="9.0.0" />
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <IsAspireHost>true</IsAspireHost>
    <UserSecretsId>...</UserSecretsId>
  </PropertyGroup>
  <ItemGroup>
    <ProjectReference Include="....Service.csproj" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Aspire.Hosting.AppHost" Version="9.0.0" />
  </ItemGroup>
</Project>

Expected Behavior

Packages get restored without issues

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version info

dotnet 9.0.0

Anything else?

No response

@GabschD
Copy link
Author

GabschD commented Nov 21, 2024

I also found #5486 and the workaround seams to work. Only the issue is closed.

@davidfowl
Copy link
Member

cc @joperezr

@joperezr
Copy link
Member

Thanks for your report @GabschD . By looking at the original error message, seems like this was just a timeout on NuGet, perhaps there was something wrong with the service or network when you tried to run your build? Can you repro this still? Also, can you share what is the workaround that seemed to fix it for you?

@joperezr joperezr added the needs-author-action An issue or pull request that requires more info or actions from the author. label Nov 22, 2024
@GabschD
Copy link
Author

GabschD commented Nov 25, 2024

i @joperezr,

I clicked the link on Friday and got a 404, but maybe I had a typo in it - can't reporduce it.
They seem to be available now.

My workaround was to set the follwing:

<PropertyGroup>
  <SkipAddAspireDefaultReferences>true</SkipAddAspireDefaultReferences>
</PropertyGroup>

<ItemGroup>
  <PackageReference Include="Aspire.Dashboard.Sdk.linux-x64" Version="8.2.0" />
  <PackageReference Include="Aspire.Hosting.Orchestration.linux-x64" Version="8.2.0" />
</ItemGroup>

It downloaded them instantly and never timed out. Removing it resulted in the timeout.

@dotnet-policy-service dotnet-policy-service bot removed the needs-author-action An issue or pull request that requires more info or actions from the author. label Nov 25, 2024
@davidfowl
Copy link
Member

@GabschD update to the 9.0 version of Aspire. It works with both .NET 8 and 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants