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

Issue after rebooting using docker #813

Closed
Crackpotpower56 opened this issue Feb 21, 2024 · 0 comments · Fixed by #815
Closed

Issue after rebooting using docker #813

Crackpotpower56 opened this issue Feb 21, 2024 · 0 comments · Fixed by #815

Comments

@Crackpotpower56
Copy link

Docker on Unraid if you restart the container you get this error

Unhandled exception. System.FormatException: An invalid IP address was specified.
---> System.Net.Sockets.SocketException (22): Invalid argument
--- End of inner exception stack trace ---
at System.Net.IPAddressParser.Parse(ReadOnlySpan1 ipSpan, Boolean tryParse) at Program.<>c__DisplayClass0_0.<<Main>$>b__4(ForwardedHeadersOptions options) in C:\repos\Remotely\Server\Program.cs:line 150 at Microsoft.Extensions.Options.OptionsFactory1.Create(String name)
at Microsoft.Extensions.Options.UnnamedOptionsManager1.get_Value() at Microsoft.AspNetCore.HttpOverrides.ForwardedHeadersMiddleware..ctor(RequestDelegate next, ILoggerFactory loggerFactory, IOptions1 options)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Extensions.Internal.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider provider)
at Microsoft.Extensions.Internal.ActivatorUtilities.CreateInstance(IServiceProvider provider, Type instanceType, Object[] parameters)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass5_0.b__0(RequestDelegate next)
at Microsoft.AspNetCore.Builder.ApplicationBuilder.Build()
at Microsoft.AspNetCore.Builder.ApplicationBuilder.Build()
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 Program.

$(String[] args) in C:\repos\Remotely\Server\Program.cs:line 298
at Program.(String[] args)
at System.Threading.PeriodicTimer.State.Signal(Boolean stopping, CancellationToken cancellationToken)
at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.DisposeAsync()
at Microsoft.Extensions.Hosting.Internal.Host.g__DisposeAsync|16_0(Object o)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Extensions.Hosting.Internal.Host.g__DisposeAsync|16_0(Object o)
at Microsoft.Extensions.Hosting.Internal.Host.DisposeAsync()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Extensions.Hosting.Internal.Host.DisposeAsync()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.AspNetCore.Builder.WebApplication.RunAsync(String url)
at Program.$(String[] args) in C:\repos\Remotely\Server\Program.cs:line 298
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Program.$(String[] args)
at Program.(String[] args)
--- End of stack trace from previous location ---
at System.Threading.PeriodicTimer.State.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
at Immense.RemoteControl.Server.Services.RemoteControlSessionReconnector.ExecuteAsync(CancellationToken stoppingToken) in C:\repos\Remotely\submodules\Immense.RemoteControl\Immense.RemoteControl.Server\Services\RemoteControlSessionReconnector.cs:line 35
at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
[02:08:54 ERR] BackgroundService failed {EventId={Id=9, Name="BackgroundServiceFaulted"}, SourceContext="Microsoft.Extensions.Hosting.Internal.Host", ThreadId=1}
System.OperationCanceledException: The operation was canceled.
at System.Threading.PeriodicTimer.State.Signal(Boolean stopping, CancellationToken cancellationToken)
at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.DisposeAsync()
at Microsoft.Extensions.Hosting.Internal.Host.g__DisposeAsync|16_0(Object o)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Extensions.Hosting.Internal.Host.g__DisposeAsync|16_0(Object o)
at Microsoft.Extensions.Hosting.Internal.Host.DisposeAsync()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Extensions.Hosting.Internal.Host.DisposeAsync()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.AspNetCore.Builder.WebApplication.RunAsync(String url)
at Program.$(String[] args) in C:\repos\Remotely\Server\Program.cs:line 298
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Program.$(String[] args)
at Program.(String[] args)
--- End of stack trace from previous location ---
at System.Threading.PeriodicTimer.State.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
at Immense.RemoteControl.Server.Services.RemoteControlSessionCleaner.ExecuteAsync(CancellationToken stoppingToken) in C:\repos\Remotely\submodules\Immense.RemoteControl\Immense.RemoteControl.Server\Services\RemoteControlSessionCleaner.cs:line 23
at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
[02:08:54 FTL] 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. {EventId={Id=10, Name="BackgroundServiceStoppingHost"}, SourceContext="Microsoft.Extensions.Hosting.Internal.Host", ThreadId=1}
System.OperationCanceledException: The operation was canceled.
at System.Threading.PeriodicTimer.State.Signal(Boolean stopping, CancellationToken cancellationToken)
at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.DisposeAsync()
at Microsoft.Extensions.Hosting.Internal.Host.g__DisposeAsync|16_0(Object o)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Extensions.Hosting.Internal.Host.g__DisposeAsync|16_0(Object o)
at Microsoft.Extensions.Hosting.Internal.Host.DisposeAsync()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Extensions.Hosting.Internal.Host.DisposeAsync()
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.AspNetCore.Builder.WebApplication.RunAsync(String url)
at Program.$(String[] args) in C:\repos\Remotely\Server\Program.cs:line 298
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Program.$(String[] args)
at Program.(String[] args)
--- End of stack trace from previous location ---
at System.Threading.PeriodicTimer.State.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
at Immense.RemoteControl.Server.Services.RemoteControlSessionCleaner.ExecuteAsync(CancellationToken stoppingToken) in C:\repos\Remotely\submodules\Immense.RemoteControl\Immense.RemoteControl.Server\Services\RemoteControlSessionCleaner.cs:line 23
at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
[02:08:54 INF] Application is shutting down. Stopping data cleanup service. {SourceContext="Remotely.Server.Services.DataCleanupService", ThreadId=1}

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

Successfully merging a pull request may close this issue.

1 participant