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

Error while building the dotnet sample app #46

Open
JanakaSandaruwan opened this issue Dec 21, 2023 · 1 comment
Open

Error while building the dotnet sample app #46

JanakaSandaruwan opened this issue Dec 21, 2023 · 1 comment

Comments

@JanakaSandaruwan
Copy link

I ran following command on sample-dotnet folder
pack build dotnet-app-1 --builder gcr.io/buildpacks/builder:v1

But the build fails with

===> ANALYZING
Timer: Analyzer started at 2023-12-21T11:16:11Z
Image with name "dotnet-app-1" not found
Timer: Analyzer ran for 1.572875ms and ended at 2023-12-21T11:16:11Z
===> DETECTING
Timer: Detector started at 2023-12-21T11:16:11Z
4 of 6 buildpacks participating
google.dotnet.sdk        0.9.1
google.dotnet.publish    0.9.0
google.dotnet.runtime    0.9.1
google.utils.label-image 0.0.2
Timer: Detector ran for 364.296292ms and ended at 2023-12-21T11:16:11Z
===> RESTORING
Timer: Restorer started at 2023-12-21T11:16:11Z
Timer: Restorer ran for 1.815208ms and ended at 2023-12-21T11:16:11Z
===> BUILDING
Timer: Builder started at 2023-12-21T11:16:11Z
=== .NET - Sdk ([email protected]) ===
Looking for global.json in /workspace
Using latest stable .NET Core SDK version
2023/12/21 11:16:11 [DEBUG] GET https://dl.google.com/runtimes/ubuntu1804/dotnetsdk/version.json
***** CACHE MISS: "dotnetsdk"
Installing .NET SDK v8.0.100.
2023/12/21 11:16:12 [DEBUG] GET https://dl.google.com/runtimes/ubuntu1804/dotnetsdk/dotnetsdk-8.0.100.tar.gz
=== .NET - Publish ([email protected]) ===
Installing application dependencies.
***** CACHE MISS: "packages"
***** CACHE MISS: "prod dependencies"
--------------------------------------------------------------------------------
Running "dotnet restore --packages /layers/google.dotnet.publish/packages ./helloworld.csproj (DOTNET_CLI_TELEMETRY_OPTOUT=true)"

Welcome to .NET 8.0!
---------------------
SDK Version: 8.0.100

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate, view the instructions: https://aka.ms/dotnet-https-linux

----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
Done "dotnet restore --packages /layers/google.dotnet.publish/pack..." (6.59926817s)
--------------------------------------------------------------------------------
failed to build: (error ID: ce40b84e):
Welcome to .NET 8.0!
---------------------
SDK Version: 8.0.100

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate, view the instructions: https://aka.ms/dotnet-https-linux

----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Sorry your project couldn't be built.
Our documentation explains ways to configure Buildpacks to better recognise your project:
 -> https://cloud.google.com/docs/buildpacks/overview
If you think you've found an issue, please report it:
 -> https://github.com/GoogleCloudPlatform/buildpacks/issues/new
--------------------------------------------------------------------------------
Timer: Builder ran for 42.311480812s and ended at 2023-12-21T11:16:54Z
ERROR: failed to build: exit status 1
ERROR: failed to build: executing lifecycle: failed with status code: 51

@GraDea
Copy link

GraDea commented Aug 23, 2024

I have the same issue GoogleCloudPlatform/buildpacks#447

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

No branches or pull requests

2 participants