Dzień dobry,
po aktualizacja klastra k8s z 1.28 do 1.29 na którym stoi nasze środowisko testowe EZD-RP w kontenerze ezdrp-api pojawił się błąd który zgodnie z polityką deploymentu powoduje ciągły restart poda. Próbowałem samemu dojść do sedna problemu niestety przez brak doświadczenia w .NET nie byłem w stanie. Prośba o pomoc, poniżej zamieszczam dane środowiska oraz komunikat błędu
K8S VERSION: v1.29.4
OS-IMAGE: Debian GNU/Linux 11 (bullseye)
KERNEL-VERSION: 5.10.0-29-amd64
CONTAINER-RUNTIME: containerd://1.7.16
[13:05:54 StatupModules [Verbose] Action "InitializeHostBuilder" on module "AspNetRoutingStartupModule"
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.Hosting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. An internal error occurred.
(0x8007054F)
File name: 'Microsoft.AspNetCore.Hosting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
at Microsoft.Extensions.Hosting.GenericHostBuilderExtensions.ConfigureWebHostDefaults(IHostBuilder builder, Action`1 configure)
at .(IHostBuilder , Action`1 )
at ICE.Infrastructure.AspNetCore.AspNetRoutingStartupModule.InitializeHostBuilder(IHostBuilder builder)
at ..(IStartupModule )
at .(Action`1 , String )
at ICE.AppCommon.Startup.StartupModules.Each(Action`1 action, String actionname)
at .(IHostBuilder )
at .(String[] )
at .(String[] )
at .(String[] , CancellationToken )
UnhandledException caught : Could not load file or assembly 'Microsoft.AspNetCore.Hosting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. An internal error occurred.
(0x8007054F)
StackTrace : at Microsoft.Extensions.Hosting.GenericHostBuilderExtensions.ConfigureWebHostDefaults(IHostBuilder builder, Action`1 configure)
at .(IHostBuilder , Action`1 )
at ICE.Infrastructure.AspNetCore.AspNetRoutingStartupModule.InitializeHostBuilder(IHostBuilder builder)
at ..(IStartupModule )
at .(Action`1 , String )
at ICE.AppCommon.Startup.StartupModules.Each(Action`1 action, String actionname)
at .(IHostBuilder )
at .(String[] )
at .(String[] )
at .(String[] , CancellationToken )
at ICE.App.Host.IceCoreApp.RunAsync(CancellationToken cancellationToken)
at Program.<Main>$(String[] args)
at Program.<Main>(String[] args)
Runtime terminating: True
Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.Hosting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. An internal error occurred.
(0x8007054F)
File name: 'Microsoft.AspNetCore.Hosting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
at Microsoft.Extensions.Hosting.GenericHostBuilderExtensions.ConfigureWebHostDefaults(IHostBuilder builder, Action`1 configure)
at .(IHostBuilder , Action`1 )
at ICE.Infrastructure.AspNetCore.AspNetRoutingStartupModule.InitializeHostBuilder(IHostBuilder builder)
at ..(IStartupModule )
at .(Action`1 , String )
at ICE.AppCommon.Startup.StartupModules.Each(Action`1 action, String actionname)
at .(IHostBuilder )
at .(String[] )
at .(String[] )
at .(String[] , CancellationToken )
at ICE.App.Host.IceCoreApp.RunAsync(CancellationToken cancellationToken)
at Program.<Main>$(String[] args)
at Program.<Main>(String[] args)