microsoft/Oryx

Oryx fails to get package list while building .NET 8 Static Web App

neilhewitt opened this issue · 0 comments

Bug Report

  • At what date and time did you most recently experience the problem?

Today (23/05/24) from around 1600.

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.

Execution of a Github Action to build and deploy an Azure Static Web App which I have moved from .NET 6 to .NET 8.

  • If your repo is publicly available please share its URL:

Not a public repo.

  • What happened?

When attempting to build the app, Oryx recognises the platform as .NET 8.0.3 (in fact, the app is built against the .NET 8.0.5 SDK, but I don't think that should matter in this case?) and attempts to install that to the app's Docker image, and this seems to be where it fails.

You can see that it is trying and failing to get the URL: http://deb.debian.org/debian/dists/bullseye/main/binary-amd64/Packages - this returns a 404 if you try it in a browser, although the Packages.gz and Packages.xy files are available in the folder.

Oryx quits and the action fails. See output log below.

  • What did you expect or want to happen?

Update my app's container to use .NET 8, deploy the app.

  • How can we reproduce it?

Presumably, attempt to upgrade an existing .NET 6.0 Static Web App with a Github build action to .NET 8.0.

  • Do you have log output? Please include between the backticks:
---Oryx build logs---


Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20231128.3, Commit: 0b76566110f0db32097b869761e056fd9b018[4](https://github.com/neilhewitt/Simionic-G1000-CustomProfiles/actions/runs/9212354883/job/25343785981#step:4:4)8d, ReleaseTagName: 20231128.3

Build Operation ID: ffebe82b40329db3
OS Type           : bullseye
Image Type        : jamstack

Detecting platforms...
Detected following platforms:
  dotnet: 8.0.3
Version '8.0.3' of platform 'dotnet' is not installed. Generating script to install it...
Detected the following frameworks: blazor


Source directory     : /github/workspace/src/CustomProfileDB/Simionic.CustomProfiles.Web
Destination directory: /bin/staticsites/8efebbda-4c4e-4bd0-b190-e3a[5](https://github.com/neilhewitt/Simionic-G1000-CustomProfiles/actions/runs/9212354883/job/25343785981#step:4:5)22845cf8-swa-oryx/app

Installing common platform dependencies...
Get:1 http://deb.debian.org/debian bullseye InRelease [11[6](https://github.com/neilhewitt/Simionic-G1000-CustomProfiles/actions/runs/9212354883/job/25343785981#step:4:6) kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8068 kB]
Ign:4 http://deb.debian.org/debian bullseye/main amd64 Packages
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8068 kB]
Ign:4 http://deb.debian.org/debian bullseye/main amd64 Packages
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [2[7](https://github.com/neilhewitt/Simionic-G1000-CustomProfiles/actions/runs/9212354883/job/25343785981#step:4:7)3 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [1[8](https://github.com/neilhewitt/Simionic-G1000-CustomProfiles/actions/runs/9212354883/job/25343785981#step:4:9).8 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [11.1 MB]
Ign:4 http://deb.debian.org/debian bullseye/main amd64 Packages
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [11.1 MB]
Ign:4 http://deb.debian.org/debian bullseye/main amd64 Packages
Ign:4 http://deb.debian.org/debian bullseye/main amd64 Packages
Err:4 http://deb.debian.org/debian bullseye/main amd64 Packages
  Error reading from server - read (104: Connection reset by peer) [IP: 151.101.50.132 80]
Fetched 500 kB in 31s (16.3 kB/s)
Reading package lists...
E: Failed to fetch http://deb.debian.org/debian/dists/bullseye/main/binary-amd64/Packages  Error reading from server - read (104: Connection reset by peer) [IP: 151.101.50.132 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.


---End of Oryx build logs---
Oryx has failed to build the solution.

For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
Exiting