Jump to content
  • 0

Error Linux - Starting API [Ubuntu 20.04]


Wiz

Question

Hello,

I'm with the following error when i start the server with API.

Spoiler

Server Started. Using UDP Port #5400
Failed to start API.
2022-03-01 06:22:20.002 [Error] Failed to start API.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: Address already in use
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x0004c] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0
  at System.Net.EndPointListener..ctor (System.Net.HttpListener listener, System.Net.IPAddress addr, System.Int32 port, System.Boolean secure) [0x0004a] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0
  at System.Net.EndPointManager.GetEPListener (System.String host, System.Int32 port, System.Net.HttpListener listener, System.Boolean secure) [0x000be] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0
  at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00064] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0
  at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x000bf] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0
  at System.Net.HttpListener.Start () [0x00012] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0
  at Microsoft.Owin.Host.HttpListener.OwinHttpListener.Start (System.Net.HttpListener listener, System.Func`2[T,TResult] appFunc, System.Collections.Generic.IList`1[T] addresses, System.Collections.Generic.IDictionary`2[TKey,TValue] capabilities, System.Func`2[T,TResult] loggerFactory) [0x00138] in <68f7adf518f945aaa528fe9acf594456>:0
  at Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create (System.Func`2[T,TResult] app, System.Collections.Generic.IDictionary`2[TKey,TValue] properties) [0x0008e] in <68f7adf518f945aaa528fe9acf594456>:0
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007c] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0009a] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
  at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create (Owin.IAppBuilder builder) [0x000f5] in <93a52f5a29914a198d1776fb8fec0cb3>:0
  at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer (Microsoft.Owin.Hosting.Engine.StartContext context) [0x0000c] in <93a52f5a29914a198d1776fb8fec0cb3>:0
  at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00065] in <93a52f5a29914a198d1776fb8fec0cb3>:0
  at Microsoft.Owin.Hosting.WebApp.StartImplementation (System.IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options, System.Action`1[T] startup) [0x00088] in <93a52f5a29914a198d1776fb8fec0cb3>:0
  at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions options, System.Action`1[T] startup) [0x00006] in <93a52f5a29914a198d1776fb8fec0cb3>:0
  at Intersect.Server.Web.RestApi.RestApi.Start () [0x00022] in <3763c94bee7d4d8a84cf553cca0a8851>:0

 

System OS: Ubuntu 20.04

 

Best Regards,

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
2 minutes ago, Cheshire said:

Sounds like the error should tell you what's going on. The address you're trying to bind the API to is already in use by something.

 

What that is I can't say since I don't know about the setup of your system.

 

Yeah i noticed that once i posted the topic xd. Thanks. Solved.

Link to comment
Share on other sites

×
×
  • Create New...