akkadotnet / akka.net

Canonical actor model implementation for .NET with local + distributed actors in C# and F#.
http://getakka.net
Other
4.7k stars 1.04k forks source link

Error in start application on CentOs system #3544

Closed DAREAS closed 6 years ago

DAREAS commented 6 years ago

Dears. Good afternoon.

I have an application using .net core 2.1, Akka 1.3.8 and Akka.remote 1.3.8 deployed on CentOs system. But when executing dotnet run return the following error "Remoting system has been terminated abruptly. Attempting to shut down transports".

I need help.

Follow my Akka configuration.

"akka {
actor { provider = ""Akka.Remote.RemoteActorRefProvider, Akka.Remote"" creation-timeout = 20s unstarted-push-timeout = 10s } remote { dot-netty.tcp { port = 8089
hostname = localhost } } }"

Thanks at moment.

Aaronontheweb commented 6 years ago

@DAREAS So does this error occur on startup or when you attempt to connect to another Akka.Remote system?

DAREAS commented 6 years ago

@Aaronontheweb on startup

DAREAS commented 6 years ago

@Aaronontheweb this is a inner message System.AggregateException: One or more errors occurred. (One or more errors occurred. (Exception has been thrown by the target of an invocation.)) ---> System.AggregateException: One or more errors occurred. (Exception has been thrown by the target of an invocation.) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(ReadOnlySpan1 str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(ReadOnlySpan1 s, NumberStyles style, NumberFormatInfo info) at Akka.Configuration.Hocon.HoconValue.GetInt() at Akka.Remote.Transport.DotNetty.DotNettyTransportSettings.Create(Config config) at Akka.Remote.Transport.DotNetty.DotNettyTransport..ctor(ActorSystem system, Config config) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at Akka.Remote.EndpointManager.get_Listens() --- End of stack trace from previous location where exception was thrown --- at Akka.Remote.EndpointManager.<>cDisplayClass48_0.b0() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot) --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait(TimeSpan timeout) at Akka.Remote.Remoting.Start() at Akka.Remote.RemoteActorRefProvider.Init(ActorSystemImpl system) at Akka.Actor.Internal.ActorSystemImpl.Start() at Akka.Actor.ActorSystem.Create(String name, Config config) at DecisionEngineDecision.Actors.SystemActor.CreateActorSystem(String name) in C:\VSTS-Agent\build\36\s\src\DecisionEngineDecision.Actors\SystemActor.cs:line 19 at DecisionEngineDecision.Extensions.ActorSystemServicesExtensions.AddActorSystemServices(IServiceCollection services, IConfiguration configuration, String name) in C:\VSTS-Agent\build\36\s\src\DecisionEngineDecision\Extensions\ActorSystemServicesExtensions.cs:line 17 at DecisionEngineDecision.Startup.ConfigureServices(IServiceCollection services) in C:\VSTS-Agent\build\36\s\src\DecisionEngineDecision\Startup.cs:line 22 --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services) at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices() at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize() at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build() at DecisionEngineDecision.Program.Main(String[] args) in C:\VSTS-Agent\build\36\s\src\DecisionEngineDecision\Program.cs:line 10 Aborted

Aaronontheweb commented 6 years ago
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(ReadOnlySpan1 str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(ReadOnlySpan1 s, NumberStyles style, NumberFormatInfo info)
at Akka.Configuration.Hocon.HoconValue.GetInt()
at Akka.Remote.Transport.DotNetty.DotNettyTransportSettings.Create(Config config)

Sure looks like you have a bad configuration of some kind - double check if anything numeric is quoted et al.

DAREAS commented 6 years ago

@Aaronontheweb. Good Afternoon.

I resolved the problem. Thanks for your help. My execution of the system doesn't find the appsettings file, because of this the actor system cannot start.

More one, thanks for the help and I'm sorry for my English.