Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
WARN: Error initializing server .NET 4.5 (ID: 11): System.Net.Sockets.SocketException
-
Hi,
What might be the cause of this error?
DEBUG: Initializing server 11...DEBUG: Initializing server 6... WARN: Error initializing server .NET 4.5 (ID: 11): System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.150.81.25:6468 at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgentClientPool.CreateClient(Endpoint endpoint) at Inedo.BuildMaster.Extensibility.Agents.ClientConnectionPool`2.AcquireConnection(TEndpoint endpoint) at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgentClientPool.GetClient(String hostName, Int32 port, String securityToken, Boolean ssl, Boolean ignoreCertificateErrors) at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgent.GetClient() at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgent.Inedo.BuildMaster.Extensibility.Agents.IRemoteMethodExecuter.InvokeMethod(MethodBase method, Object instance, Object[] parameters) at Inedo.BuildMaster.Extensibility.Agents.AgentExtensions.InvokeFunc[TResult](IRemoteMethodExecuter agent, Func`1 method) at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgent.<.ctor>b__2() at Inedo.BuildMaster.Extensibility.Agents.RemoteFileOperationsExecuter.Inedo.BuildMaster.Extensibility.Agents.IFileOperationsExecuter.GetBaseWorkingDirectory() at Inedo.BuildMaster.Extensibility.Agents.AgentExtensions.GetDefaultApplicationBaseDirectory(IFileOperationsExecuter agent, Int32 applicationId) at Inedo.BuildMaster.Windows.ServiceApplication.PlanExecuter.PromotionExecution.PrepareServer(Object arg) WARN: Error initializing server OZBLD8 (NET4.5) (ID: 6): System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.150.81.26:6468 at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgentClientPool.CreateClient(Endpoint endpoint) at Inedo.BuildMaster.Extensibility.Agents.ClientConnectionPool`2.AcquireConnection(TEndpoint endpoint) at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgentClientPool.GetClient(String hostName, Int32 port, String securityToken, Boolean ssl, Boolean ignoreCertificateErrors) at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgent.GetClient() at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgent.Inedo.BuildMaster.Extensibility.Agents.IRemoteMethodExecuter.InvokeMethod(MethodBase method, Object instance, Object[] parameters) at Inedo.BuildMaster.Extensibility.Agents.AgentExtensions.InvokeFunc[TResult](IRemoteMethodExecuter agent, Func`1 method) at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at Inedo.BuildMaster.Extensibility.Agents.Tcp.TcpAgent.<.ctor>b__2() at Inedo.BuildMaster.Extensibility.Agents.RemoteFileOperationsExecuter.Inedo.BuildMaster.Extensibility.Agents.IFileOperationsExecuter.GetBaseWorkingDirectory() at Inedo.BuildMaster.Extensibility.Agents.AgentExtensions.GetDefaultApplicationBaseDirectory(IFileOperationsExecuter agent, Int32 applicationId) at Inedo.BuildMaster.Windows.ServiceApplication.PlanExecuter.PromotionExecution.PrepareServer(Object arg)
Product: BuildMaster
Version: 4.5.4
-
This simply means that the agent did not respond to the connection request in a certain time period. This can happen for a variety of reasons:
- the agent service is not running
- there is a firewall blocking the connection to that port
- the remote IP address is incorrect
- the remote IP address was not assigned to the remote server until after the agent started listening already
- DNS did not resolve the hostname to the correct IP address
Is the agent in ERROR state? Can you ping or telnet to the port from the BuildMaster server?
-
Re: WARN: Error initializing server .NET 4.5 (ID: 11): System.Net.Sockets.SocketException
A SocketException is thrown by the Socket and Dns classes when an error occurs with the network. Most of the time these are connectivity issues due to different IP protocols (IPV4/IPV6) between the two server/computers trying to communicate or extra authentication rules setup on one of the computers for in/out connectivity.
Ways to troubleshoot the issue are, check you have proper internet connection is there on your machine or not, and you are able to ping the remote server or not. Possible causes for the error:
- You are using the wrong IP address.
- You are using the wrong port.
- Firewall blocking the connection.