Replies: 1 comment 8 replies
-
It will not run in docker since WSL blocks some behaviour such as certificate instalation and adding paths.. Docker also isolates containers to use host.docker.internall.... The APIServer, IdentityServer and BFF must be run manualy or using Tye... Since they require working HTTPS... Try to build directly on Windows using install scripts... (Install script = Nuke). The manual install was not used on workshop i dont know the state...., insted automatic script was used.. Follow steps on main readme.... -> Use prepared init script. Run |
Beta Was this translation helpful? Give feedback.
-
i can not strart Frontned and Backend. I have do everything follow this link https://github.com/damikun/trouble-training/blob/main/Doc/Manual_Install.md
my everonment : Windows 10 , wsl2, docker,
dotnet --list-sdks
2.2.300 [C:\Program Files\dotnet\sdk]
5.0.302 [C:\Program Files\dotnet\sdk]
6.0.301 [C:\Program Files\dotnet\sdk]
when i try to start app , i got this error
D:\Works\trouble-training-main\src\APIServer\api> dotnet run
D:\Works\trouble-training-main\src\APIServer\Aplication\Common\Behaviours\PerformanceBehaviour.cs(67,48): warning CS069
3: Type parameter 'TRequest' has the same name as the type parameter from outer type 'PerformanceBehaviour<TRequest, TR
esponse>' [D:\Works\trouble-training-main\src\APIServer\Aplication\APIServer.Aplication.csproj]
D:\Works\trouble-training-main\src\APIServer\Aplication\Graphql\Extensions\UseConnection\UseConnection.cs(76,39): warni
ng CS8600: Converting null literal or possible null value to non-nullable type. [D:\Works\trouble-training-main\src\API
Server\Aplication\APIServer.Aplication.csproj]
[ User profile is available. Using 'C:\Users\kengh\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
[ Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
[ The property 'WebHook.HookEvents' is a collection or enumeration type with a value converter but with no value comparer. Set a value comparer to ensure the collection/enumeration elements are compared correctly.
[ Entity Framework Core 6.0.0 initialized 'ApiDbContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite:6.0.0' with options: SensitiveDataLoggingEnabled DetailedErrorsEnabled MaxPoolSize=1024
[ Executed DbCommand (22ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT COUNT(*) FROM "sqlite_master" WHERE "type" = 'table' AND "rootpage" IS NOT NULL;
[ Starting Hangfire Server using job storage: 'Connection string: Hangfire.db, prefix: hangfire'
[ Using the following options for Hangfire Server:
Worker count: 20
Listening queues: 'default'
Shutdown timeout: 00:00:15
Schedule polling interval: 00:00:15
[ Server kenghot-hp:14000:69089965 successfully announced in 148.0882 ms
[ Server kenghot-hp:14000:69089965 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler...
[ Server kenghot-hp:14000:69089965 all the dispatchers started
[ Failed to process the job '694': an exception occurred. Retry attempt 4 of 5 will be performed in 00:02:32.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException()
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateScope()
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.CreateScope()
at Hangfire.AspNetCore.AspNetCoreJobActivator.BeginScope(JobActivatorContext context)
at Hangfire.JobActivator.BeginScope(PerformContext context)
at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context)
at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_0.b__0()
at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func
1 continuation) at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_1.<PerformJobWithFilters>b__2() at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable
1 filters)at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context)
at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId)
[ Failed to process the job '693': an exception occurred. Retry attempt 4 of 5 will be performed in 00:01:48.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException()
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateScope()
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.CreateScope()
at Hangfire.AspNetCore.AspNetCoreJobActivator.BeginScope(JobActivatorContext context)
at Hangfire.JobActivator.BeginScope(PerformContext context)
at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context)
at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_0.b__0()
at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func
1 continuation) at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_1.<PerformJobWithFilters>b__2() at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable
1 filters)at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context)
at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId)
[ Runtime unhandled exception
Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The system cannot find the path specified.
at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(ReadOnlySpan
1 rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Certificates.CertificateConfigLoader.LoadCertificate(CertificateConfig certInfo, String endpointName) at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.LoadDefaultCert() at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.Reload() at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.Load() at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication
1 application, CancellationToken cancellationToken)at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
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 APIServer.Program.Main(String[] args) in D:\Works\trouble-training-main\src\APIServer\api\Program.cs:line 22
[ Stopping the server due to DomainUnload or ProcessExit event...
[ Server kenghot-hp:14000:69089965 caught stopping signal...
[ Server kenghot-hp:14000:69089965 caught stopped signal...
[ Server kenghot-hp:14000:69089965 caught shutdown signal...
[ Server kenghot-hp:14000:69089965 All dispatchers stopped
[ Server kenghot-hp:14000:69089965 successfully reported itself as stopped in 3.8036 ms
[ Server kenghot-hp:14000:69089965 has been stopped in total 8.849 ms
Beta Was this translation helpful? Give feedback.
All reactions