DeveLanCacheUI_Backend icon indicating copy to clipboard operation
DeveLanCacheUI_Backend copied to clipboard

Stuck in loop

Open Dustinhoefer opened this issue 1 year ago • 26 comments

I installed both the backend and frontend in unraid.

After the initial loading and some tinkering, everything seems to be working now.

Unfortunately the cpu keeps rising to 20% all the time, because the log file is read again and again and again and at the end, an error is thrown.

I guess its trying to download the depot file from github and not getting a connection?

Could this be caught and dealt with accordingly, so that it does not start over and over again?

Skipped total of 1949000 lines (already processed) Skipped total of 1950000 lines (already processed) Skipped total of 1951000 lines (already processed) Skipped total of 1952000 lines (already processed) Skipped total of 1953000 lines (already processed) Skipped total of 1954000 lines (already processed) Skipped total of 1955000 lines (already processed) Skipped total of 1956000 lines (already processed) Skipped total of 1957000 lines (already processed) Skipped total of 1958000 lines (already processed) Skipped total of 1959000 lines (already processed) Skipped total of 1960000 lines (already processed) Skipped total of 1961000 lines (already processed) Skipped total of 1962000 lines (already processed) Skipped total of 1963000 lines (already processed) Skipped total of 1964000 lines (already processed) Skipped total of 1965000 lines (already processed) Processing 1 lines... First DateTime: 23/09/2023 02:27:53 (Total processed: 0) 23/09/2023 02:42:30 No new log lines, waiting... fail: Microsoft.Extensions.Hosting.Internal.Host[9] BackgroundService failed System.Net.Http.HttpRequestException: Resource temporarily unavailable (api.github.com:443) ---> System.Net.Sockets.SocketException (11): Resource temporarily unavailable at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|281_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.HttpConnectionWaiter1.WaitForConnectionAsync(Boolean async, CancellationToken requestCancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at DeveLanCacheUI_Backend.Steam.SteamDepotDownloaderHostedService.NewDepotFileAvailable() in /src/DeveLanCacheUI_Backend/Steam/SteamDepotDownloaderHostedService.cs:line 107 at DeveLanCacheUI_Backend.Steam.SteamDepotDownloaderHostedService.GoRun(CancellationToken stoppingToken) in /src/DeveLanCacheUI_Backend/Steam/SteamDepotDownloaderHostedService.cs:line 53 at DeveLanCacheUI_Backend.Steam.SteamDepotDownloaderHostedService.ExecuteAsync(CancellationToken stoppingToken) in /src/DeveLanCacheUI_Backend/Steam/SteamDepotDownloaderHostedService.cs:line 33 at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService) crit: Microsoft.Extensions.Hosting.Internal.Host[10] The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted. System.Net.Http.HttpRequestException: Resource temporarily unavailable (api.github.com:443) ---> System.Net.Sockets.SocketException (11): Resource temporarily unavailable at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|281_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.HttpConnectionWaiter1.WaitForConnectionAsync(Boolean async, CancellationToken requestCancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at DeveLanCacheUI_Backend.Steam.SteamDepotDownloaderHostedService.NewDepotFileAvailable() in /src/DeveLanCacheUI_Backend/Steam/SteamDepotDownloaderHostedService.cs:line 107 at DeveLanCacheUI_Backend.Steam.SteamDepotDownloaderHostedService.GoRun(CancellationToken stoppingToken) in /src/DeveLanCacheUI_Backend/Steam/SteamDepotDownloaderHostedService.cs:line 53 at DeveLanCacheUI_Backend.Steam.SteamDepotDownloaderHostedService.ExecuteAsync(CancellationToken stoppingToken) in /src/DeveLanCacheUI_Backend/Steam/SteamDepotDownloaderHostedService.cs:line 33 at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService) info: Microsoft.Hosting.Lifetime[0] Application is shutting down...

Dustinhoefer avatar Sep 23 '23 00:09 Dustinhoefer