You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build .NET8 HTTP trigger Azure function using kpack.
Everything seems working fine but pods are crashing with following error:
ERROR: Setting ASPNETCORE_URLS=http://0.0.0.0:8080 Unhandled exception. System.InvalidOperationException: The gRPC channel URI 'http://:0' could not be parsed. at Microsoft.Azure.Functions.Worker.Grpc.GrpcWorkerClientFactory.GrpcWorkerClient.CreateClient() in D:\a\_work\1\s\src\DotNetWorker.Grpc\GrpcWorkerClientFactory.cs:line 110 at Microsoft.Azure.Functions.Worker.Grpc.GrpcWorkerClientFactory.GrpcWorkerClient..ctor(GrpcHostChannel outputChannel, GrpcWorkerStartupOptions startupOptions, IMessageProcessor processor) in D:\a\_work\1\s\src\DotNetWorker.Grpc\GrpcWorkerClientFactory.cs:line 52 at Microsoft.Azure.Functions.Worker.Grpc.GrpcWorkerClientFactory.CreateClient(IMessageProcessor messageProcessor) in D:\a\_work\1\s\src\DotNetWorker.Grpc\GrpcWorkerClientFactory.cs:line 33 at Microsoft.Azure.Functions.Worker.GrpcWorker.StartAsync(CancellationToken token) in D:\a\_work\1\s\src\DotNetWorker.Grpc\GrpcWorker.cs:line 57 at Microsoft.Azure.Functions.Worker.WorkerHostedService.StartAsync(CancellationToken cancellationToken) in D:\a\_work\1\s\src\DotNetWorker.Core\WorkerHostedService.cs:line 25 at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) at Program.<Main>$(String[] args) in /workspace/Program.cs:line 3
kp build logs:
`
===> PREPARE
Build reason(s): CONFIG
CONFIG:
resources: {}
- source: {}
+ source:
+ git:
+ revision: 5c3395f3954480d1053f431c30a026a2a1849ca8
+ url: https://github.com/RakeshSharnagate-eaton/sample_core_app_2.git
Loading registry credentials from service account secrets
Loading secret for "selfdeploy.azurecr.io" from secret "selfdeploy-registry-secret" at location "/var/build-secrets/selfdeploy-registry-secret"
Loading cluster credential helpers
Cloning "https://github.com/RakeshSharnagate-eaton/sample_core_app_2.git" @ "5c3395f3954480d1053f431c30a026a2a1849ca8"...
Successfully cloned "https://github.com/RakeshSharnagate-eaton/sample_core_app_2.git" @ "5c3395f3954480d1053f431c30a026a2a1849ca8" in path "/workspace"
===> ANALYZE
Timer: Analyzer started at 2024-05-26T05:39:41Z
Image with name "selfdeploy.azurecr.io/sample-core-app-2:v1" not found
Timer: Analyzer ran for 115.519931ms and ended at 2024-05-26T05:39:41Z
===> DETECT
Timer: Detector started at 2024-05-26T05:39:41Z
6 of 12 buildpacks participating
paketo-buildpacks/ca-certificates 3.7.0
paketo-buildpacks/dotnet-core-sdk 0.14.8
paketo-buildpacks/icu 0.7.9
paketo-buildpacks/dotnet-publish 0.12.30
paketo-buildpacks/dotnet-core-aspnet-runtime 0.4.7
paketo-buildpacks/dotnet-execute 0.14.31
Timer: Detector ran for 57.956287ms and ended at 2024-05-26T05:39:41Z
===> RESTORE
Timer: Restorer started at 2024-05-26T05:39:42Z
Timer: Restorer ran for 158.992µs and ended at 2024-05-26T05:39:42Z
===> BUILD
Timer: Builder started at 2024-05-26T05:39:43Z
Paketo Buildpack for CA Certificates 3.7.0 https://github.com/paketo-buildpacks/ca-certificates
Launch Helper: Contributing to layer
Creating /layers/paketo-buildpacks_ca-certificates/helper/exec.d/ca-certificates-helper
Paketo Buildpack for .NET Core SDK 0.14.8
Resolving .NET Core SDK version
Candidate version sources (in priority order):
sample-core-app-2.csproj -> "8.0.*"
Selected .NET Core SDK version (using sample-core-app-2.csproj): 8.0.203
Executing build process
Installing .NET Core SDK 8.0.203
Completed in 5.842s
Welcome to .NET 8.0!
---------------------
SDK Version: 8.0.203
Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
----------------
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
--------------------------------------------------------------------------------------
MSBuild version 17.9.6+a4ecab324 for .NET
Determining projects to restore...
Restored /workspace/sample-core-app-2.csproj (in 2.22 sec).
/layers/paketo-buildpacks_dotnet-core-sdk/dotnet-core-sdk/sdk/8.0.203/Current/SolutionFile/ImportAfter/Microsoft.NET.Sdk.Solution.targets(36,5): warning NETSDK1194: The "--output" option isn't supported when building a solution. Specifying a solution-level output path results in all projects copying outputs to the same directory, which can lead to inconsistent builds. [/workspace/sample-core-app-2.sln]
sample-core-app-2 -> /workspace/bin/Release/net8.0/linux-x64/sample-core-app-2.dll
Determining projects to restore...
Restored /tmp/tbdvtn1w.4vq/WorkerExtensions.csproj (in 4.01 sec).
WorkerExtensions -> /tmp/tbdvtn1w.4vq/buildout/Microsoft.Azure.Functions.Worker.Extensions.dll
sample-core-app-2 -> /tmp/dotnet-publish-output3283835181/
Determining projects to restore...
Restored /tmp/4bk3lyui.pqo/WorkerExtensions.csproj (in 270 ms).
WorkerExtensions -> /tmp/4bk3lyui.pqo/publishout/Microsoft.Azure.Functions.Worker.Extensions.dll
WorkerExtensions -> /tmp/4bk3lyui.pqo/publishout/
Completed in 14.086566876s
Dividing build output into layers to optimize cache reuse
Generating SBOM for /workspace
Completed in 26ms
Removing source code
Paketo Buildpack for ASP.NET Core Runtime 0.4.7
Resolving ASP.NET Core Runtime version
Candidate version sources (in priority order):
runtimeconfig.json -> "8.0.0"
-> ""
No exact version match found; attempting version roll-forward
Selected ASP.NET Core Runtime version (using runtimeconfig.json): 8.0.3
Executing build process
Installing ASP.NET Core Runtime 8.0.3
Completed in 1.112s
I am trying to build .NET8 HTTP trigger Azure function using kpack.
Everything seems working fine but pods are crashing with following error:
ERROR:
Setting ASPNETCORE_URLS=http://0.0.0.0:8080 Unhandled exception. System.InvalidOperationException: The gRPC channel URI 'http://:0' could not be parsed. at Microsoft.Azure.Functions.Worker.Grpc.GrpcWorkerClientFactory.GrpcWorkerClient.CreateClient() in D:\a\_work\1\s\src\DotNetWorker.Grpc\GrpcWorkerClientFactory.cs:line 110 at Microsoft.Azure.Functions.Worker.Grpc.GrpcWorkerClientFactory.GrpcWorkerClient..ctor(GrpcHostChannel outputChannel, GrpcWorkerStartupOptions startupOptions, IMessageProcessor processor) in D:\a\_work\1\s\src\DotNetWorker.Grpc\GrpcWorkerClientFactory.cs:line 52 at Microsoft.Azure.Functions.Worker.Grpc.GrpcWorkerClientFactory.CreateClient(IMessageProcessor messageProcessor) in D:\a\_work\1\s\src\DotNetWorker.Grpc\GrpcWorkerClientFactory.cs:line 33 at Microsoft.Azure.Functions.Worker.GrpcWorker.StartAsync(CancellationToken token) in D:\a\_work\1\s\src\DotNetWorker.Grpc\GrpcWorker.cs:line 57 at Microsoft.Azure.Functions.Worker.WorkerHostedService.StartAsync(CancellationToken cancellationToken) in D:\a\_work\1\s\src\DotNetWorker.Core\WorkerHostedService.cs:line 25 at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) at Program.<Main>$(String[] args) in /workspace/Program.cs:line 3
kp build logs:
`
===> PREPARE
Build reason(s): CONFIG
CONFIG:
resources: {}
- source: {}
+ source:
+ git:
+ revision: 5c3395f3954480d1053f431c30a026a2a1849ca8
+ url: https://github.com/RakeshSharnagate-eaton/sample_core_app_2.git
Loading registry credentials from service account secrets
Loading secret for "selfdeploy.azurecr.io" from secret "selfdeploy-registry-secret" at location "/var/build-secrets/selfdeploy-registry-secret"
Loading cluster credential helpers
Cloning "https://github.com/RakeshSharnagate-eaton/sample_core_app_2.git" @ "5c3395f3954480d1053f431c30a026a2a1849ca8"...
Successfully cloned "https://github.com/RakeshSharnagate-eaton/sample_core_app_2.git" @ "5c3395f3954480d1053f431c30a026a2a1849ca8" in path "/workspace"
===> ANALYZE
Timer: Analyzer started at 2024-05-26T05:39:41Z
Image with name "selfdeploy.azurecr.io/sample-core-app-2:v1" not found
Timer: Analyzer ran for 115.519931ms and ended at 2024-05-26T05:39:41Z
===> DETECT
Timer: Detector started at 2024-05-26T05:39:41Z
6 of 12 buildpacks participating
paketo-buildpacks/ca-certificates 3.7.0
paketo-buildpacks/dotnet-core-sdk 0.14.8
paketo-buildpacks/icu 0.7.9
paketo-buildpacks/dotnet-publish 0.12.30
paketo-buildpacks/dotnet-core-aspnet-runtime 0.4.7
paketo-buildpacks/dotnet-execute 0.14.31
Timer: Detector ran for 57.956287ms and ended at 2024-05-26T05:39:41Z
===> RESTORE
Timer: Restorer started at 2024-05-26T05:39:42Z
Timer: Restorer ran for 158.992µs and ended at 2024-05-26T05:39:42Z
===> BUILD
Timer: Builder started at 2024-05-26T05:39:43Z
Paketo Buildpack for CA Certificates 3.7.0
https://github.com/paketo-buildpacks/ca-certificates
Launch Helper: Contributing to layer
Creating /layers/paketo-buildpacks_ca-certificates/helper/exec.d/ca-certificates-helper
Paketo Buildpack for .NET Core SDK 0.14.8
Resolving .NET Core SDK version
Candidate version sources (in priority order):
sample-core-app-2.csproj -> "8.0.*"
Executing build process
Installing .NET Core SDK 8.0.203
Completed in 5.842s
Configuring build environment
PATH -> "/layers/paketo-buildpacks_dotnet-core-sdk/dotnet-core-sdk:$PATH"
Generating SBOM for /layers/paketo-buildpacks_dotnet-core-sdk/dotnet-core-sdk
Completed in 0s
Paketo Buildpack for ICU 0.7.9
Resolving ICU version
Candidate version sources (in priority order):
-> ""
Executing build process
Installing ICU
Completed in 538ms
Generating SBOM for /layers/paketo-buildpacks_icu/icu
Completed in 0s
Paketo Buildpack for .NET Publish 0.12.30
Executing build process
Running 'dotnet publish /workspace --configuration Release --runtime linux-x64 --self-contained false --output /tmp/dotnet-publish-output3283835181'
Dividing build output into layers to optimize cache reuse
Generating SBOM for /workspace
Completed in 26ms
Removing source code
Paketo Buildpack for ASP.NET Core Runtime 0.4.7
Resolving ASP.NET Core Runtime version
Candidate version sources (in priority order):
runtimeconfig.json -> "8.0.0"
-> ""
Executing build process
Installing ASP.NET Core Runtime 8.0.3
Completed in 1.112s
Configuring launch environment
DOTNET_ROOT -> "/layers/paketo-buildpacks_dotnet-core-aspnet-runtime/dotnet-core-aspnet-runtime"
PATH -> "/layers/paketo-buildpacks_dotnet-core-aspnet-runtime/dotnet-core-aspnet-runtime:$PATH"
Generating SBOM for /layers/paketo-buildpacks_dotnet-core-aspnet-runtime/dotnet-core-aspnet-runtime
Completed in 0s
Paketo Buildpack for .NET Execute 0.14.31
Generating SBOM for /workspace
Completed in 22ms
Assigning launch processes:
sample-core-app-2 (default): /workspace/sample-core-app-2
Timer: Builder ran for 21.756620127s and ended at 2024-05-26T05:40:05Z
===> EXPORT
Timer: Exporter started at 2024-05-26T05:40:08Z
Adding layer 'paketo-buildpacks/ca-certificates:helper'
Adding layer 'paketo-buildpacks/icu:icu'
Adding layer 'paketo-buildpacks/dotnet-core-aspnet-runtime:dotnet-core-aspnet-runtime'
Adding layer 'paketo-buildpacks/dotnet-execute:port-chooser'
Adding layer 'buildpacksio/lifecycle:launch.sbom'
Adding 2/2 app layer(s)
Adding layer 'buildpacksio/lifecycle:launcher'
Adding layer 'buildpacksio/lifecycle:config'
Adding layer 'buildpacksio/lifecycle:process-types'
Adding label 'io.buildpacks.lifecycle.metadata'
Adding label 'io.buildpacks.build.metadata'
Adding label 'io.buildpacks.project.metadata'
Setting default process type 'sample-core-app-2'
Timer: Saving selfdeploy.azurecr.io/sample-core-app-2:v1... started at 2024-05-26T05:40:10Z
*** Images (sha256:57e04d7e3da2508193274e9543cb25ce03d78bb0876a8804a92a4818e80de0e7):
selfdeploy.azurecr.io/sample-core-app-2:v1
selfdeploy.azurecr.io/sample-core-app-2:v1-b1.20240526.053925
Timer: Saving selfdeploy.azurecr.io/sample-core-app-2:v1... ran for 2.933978748s and ended at 2024-05-26T05:40:13Z
Timer: Exporter ran for 4.963909409s and ended at 2024-05-26T05:40:13Z
Timer: Cache started at 2024-05-26T05:40:13Z
Adding cache layer 'paketo-buildpacks/dotnet-core-sdk:dotnet-core-sdk'
Adding cache layer 'paketo-buildpacks/icu:icu'
Adding cache layer 'paketo-buildpacks/dotnet-publish:nuget-cache'
Adding cache layer 'buildpacksio/lifecycle:cache.sbom'
Timer: Cache ran for 4.479478894s and ended at 2024-05-26T05:40:17Z
===> COMPLETION
Build successful
`
The text was updated successfully, but these errors were encountered: