Solved

The K2 Blackpearl Server service will not start

  • 21 October 2020
  • 8 replies
  • 100 views

Badge +4

The K2 Blackpearl Server service will not start, the error i get when manually starting the service is:
"The K2 blackpearl server service on Local Computer started and then stopped.  Some services stop automatically if they are not in use by other services or programs."

I have tried running a repair on the installation but that does nothing to help.  In fact, during the repair i see these errors  in the windows even logs.

This is setup is one k2 server and one sql server both on 2012 r2, the K2 version is 4.7.

 

Any help would be appreciated.

 

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 10/21/2020 9:43:07 AM 
Event time (UTC): 10/21/2020 4:43:07 PM 
Event ID: 5480925e5ee044ae91336e9d7c79db37 
Event sequence: 2 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/2/ROOT/Management-2-132477721849496875 
    Trust level: Full 
    Application Virtual Path: /Management 
    Application Path: D:Program Files (x86)K2 blackpearlK2 smartforms Runtime 
    Machine name: Q-K2-APP1 
 
Process information: 
    Process ID: 6356 
    Process name: w3wp.exe 
    Account name: domainsvck2workspaceqa 
 
Exception information: 
    Exception type: SocketException 
    Exception message: No connection could be made because the target machine actively refused it 10.45.162.14:5555
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
   at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnectionBroker.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.GetPoolConnection(Boolean asAppPool, Boolean& tokenApplied, String& credentialToken)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.Connect(BaseAPI baseAPI, Boolean asAppPool, Boolean validateLicense)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ControlsAjaxModule.Initialize()
   at SourceCode.Forms.AppFramework.BundlingModule.PostAuthenticateRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
 
Request information: 
    Request URL: http://localhost/Management/Warmup.aspx 
    Request path: /Management/Warmup.aspx 
    User host address: 127.0.0.1 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: domainsvck2workspaceqa 
 
Thread information: 
    Thread ID: 13 
    Thread account name: domainsvck2workspaceqa 
    Is impersonating: False 
    Stack trace:    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
   at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnectionBroker.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.GetPoolConnection(Boolean asAppPool, Boolean& tokenApplied, String& credentialToken)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.Connect(BaseAPI baseAPI, Boolean asAppPool, Boolean validateLicense)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ControlsAjaxModule.Initialize()
   at SourceCode.Forms.AppFramework.BundlingModule.PostAuthenticateRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details: 


*********************************************************************


Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 10/21/2020 9:43:04 AM 
Event time (UTC): 10/21/2020 4:43:04 PM 
Event ID: d3d21d3bc2364906be24815bcd30aca5 
Event sequence: 2 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/2/ROOT/Runtime-1-132477721822504831 
    Trust level: Full 
    Application Virtual Path: /Runtime 
    Application Path: D:Program Files (x86)K2 blackpearlK2 smartforms Runtime 
    Machine name: Q-K2-APP1 
 
Process information: 
    Process ID: 6356 
    Process name: w3wp.exe 
    Account name: domainsvck2workspaceqa 
 
Exception information: 
    Exception type: SocketException 
    Exception message: No connection could be made because the target machine actively refused it 10.45.162.14:5555
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
   at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnectionBroker.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.GetPoolConnection(Boolean asAppPool, Boolean& tokenApplied, String& credentialToken)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.Connect(BaseAPI baseAPI, Boolean asAppPool, Boolean validateLicense)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ControlsAjaxModule.Initialize()
   at SourceCode.Forms.AppFramework.BundlingModule.PostAuthenticateRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
 
Request information: 
    Request URL: http://localhost/Runtime/Startup_Runtime.html 
    Request path: /Runtime/Startup_Runtime.html 
    User host address: 127.0.0.1 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: domainsvck2workspaceqa 
 
Thread information: 
    Thread ID: 11 
    Thread account name: domainsvck2workspaceqa 
    Is impersonating: False 
    Stack trace:    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
   at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnectionBroker.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.GetPoolConnection(Boolean asAppPool, Boolean& tokenApplied, String& credentialToken)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.Connect(BaseAPI baseAPI, Boolean asAppPool, Boolean validateLicense)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ControlsAjaxModule.Initialize()
   at SourceCode.Forms.AppFramework.BundlingModule.PostAuthenticateRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details: 


*****************************************************************


Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 10/21/2020 9:43:04 AM 
Event time (UTC): 10/21/2020 4:43:04 PM 
Event ID: c4a1575d3f354ac9a31a27eb01fbd7b0 
Event sequence: 2 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/2/ROOT/Designer-1-132477721822504831 
    Trust level: Full 
    Application Virtual Path: /Designer 
    Application Path: D:Program Files (x86)K2 blackpearlK2 smartforms Designer 
    Machine name: Q-K2-APP1 
 
Process information: 
    Process ID: 2692 
    Process name: w3wp.exe 
    Account name: domainsvck2workspaceqa 
 
Exception information: 
    Exception type: SocketException 
    Exception message: No connection could be made because the target machine actively refused it 10.45.162.14:5555
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
   at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnectionBroker.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.GetPoolConnection(Boolean asAppPool, Boolean& tokenApplied, String& credentialToken)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.Connect(BaseAPI baseAPI, Boolean asAppPool, Boolean validateLicense)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ControlsAjaxModule.Initialize()
   at SourceCode.Forms.AppFramework.BundlingModule.PostAuthenticateRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
 
Request information: 
    Request URL: http://localhost/Designer/ 
    Request path: /Designer/ 
    User host address: 127.0.0.1 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: domainsvck2workspaceqa 
 
Thread information: 
    Thread ID: 11 
    Thread account name: domainsvck2workspaceqa 
    Is impersonating: False 
    Stack trace:    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
   at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnectionBroker.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
   at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.GetPoolConnection(Boolean asAppPool, Boolean& tokenApplied, String& credentialToken)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ConnectionClass.Connect(BaseAPI baseAPI, Boolean asAppPool, Boolean validateLicense)
   at SourceCode.Forms.Controls.Web.SDK.Utilities.ControlsAjaxModule.Initialize()
   at SourceCode.Forms.AppFramework.BundlingModule.PostAuthenticateRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details: 


 

 

icon

Best answer by YUDI2 23 October 2020, 03:50

View original

8 replies

Badge +4

I have been comparing prod and qa to check for differences and the only thing that i can see is that on the prod k2 app server the SQL Server (SQLExpress) service is running and it is not on the QA server.  Does the K2 BlackPearl Server service rely on that service to running?

Badge +6

Please try run K2 Server console using K2service account (the account that K2 use to access K2 DB). and check what is the console output.

Badge +4

This is the output from the console:

;K2 HostServer Console Mode
;======================================
;Loading .NET Framework v4.0.30319
;Framework loaded successfully.
;Creating Host Server Runtime.
;Press ESC to end..

;Error Invoking 'StartHostServer' : SourceCode.HostServerLib : Method 'SuspendSe
ssion' in type 'SourceCode.Hosting.Server.Runtime.HostSessionManager' from assem
bly 'SourceCode.HostServerLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=
16a2c5aaaa1b130d' does not have an implementation.


;Stopped Hosting Server Runtime
Press any key to continue...

Badge +6

Please check on this.

https://help.k2.com/support-services/kbt155079

Badge +4

Hi YUDI2, 
I looked in the GAC and saw two entries for SourceCode.HostClient.API, 

The Global Assembly Cache contains the following assemblies:
  SourceCode.HostClientAPI, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d, processorArchitecture=AMD64
  SourceCode.HostClientAPI, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d, processorArchitecture=x86

 

The x86 dll version matches what is in the HostServer/Bin folder and AMD64 is older.  does that AMD64 belong in there?

Badge +6

What is your processor architecture ?  it shouldn’t be duplicated, you may try to comment out the AMD64 setting  and try start up K2 Server console.

 

K2 Server console is complaining about public token 16a2c5aaaa1b130d the same as your finding

Badge +4

i cant remove any of those dlls from the assembly, it says they are required.

Badge +4

I finally got it!!!!!

It was not only the SourceCode.HostClientAPI.dll but also SourceCode.HostServerInterfaces.dll.  That one was still on the older version. Once i updated GAC with the correct DLLs the K2 Server service started.

Thanks for pointing me in the right direction YUDI2!

Reply