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 · 3 comments
Open
1 task done

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

GabschD opened this issue Nov 21, 2024 · 3 comments
Labels
area-acquisition needs-author-action An issue or pull request that requires more info or actions from the author.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-acquisition needs-author-action An issue or pull request that requires more info or actions from the author.
Projects
None yet
Development

No branches or pull requests

3 participants