Skip to main content
Nintex Community Menu Bar
Knowledge Base

K2 service not starting due to proxy

  • September 2, 2024
  • 0 replies
  • 111 views
  • Translate

Forum|alt.badge.img+7

Topic

Unable to start "K2 Server" service. The following errors are logged in the HostServer logs:

"Error","General","0","ErrorMessage","SourceCode.Hosting.Server.Runtime.HostLoadBalancedServerManager.Poll","0 System.Exception: Error (0) . ---> System.Net.WebException: Unable to connect to server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:8888"

"Error","System","2001","ServerStartError","SourceCode.Hosting.Server.Runtime.HostServerEngine.StartHostServer","2001 Error Starting Host Server: System.NullReferenceException: Object reference not set an an instance of an object"


Instructions 

These errors are thrown whenever the "K2 Server" service is unable to connect to "K2 Configuration Service". Whenever you see such error messages, always make sure the "K2 Configuration Service" is running.

If the "K2 Configuration Service" is running, examine the error message again. In this scenario, the ip address and port number was logged along with the connection could not be made error. "K2 Configuration Service" runs on port 5560 by default, so K2 should be attempting a connection to port 5560. The error message above shows K2 was attempting to connect to port 8888 instead.

If you see K2 attempting to connect to the "K2 Configuration Service" using any ports that are not 5560, this means there may be a proxy that is intercepting the "K2 Server" service's connection attempt to the "K2 Configuration Service".

Check the [Program Files]\K2\Host Server\Bin\K2HostServer.exe.config for any proxy section under <system.net>. If there is a proxy section, remove or disable the proxy. You can disable the proxy by setting enabled from "true" to "false":

<defaultProxy enabled="true" useDefaultCredentials = "true">    <proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:8888" usesystemdefault="false" /></defaultProxy>


If you do not find any proxy section in K2HostServer.exe.config, check if your server or network has any proxy configured. If your server is using proxy, you need to configure local bypass condition to allow the "K2 Server" service to connect to "K2 Configuration Service" locally via port 5560 without going through the proxy.


 


Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings