K2 Host Server and K2 workspace not working

  • 9 June 2009
  • 3 replies
  • 18 views

Badge

I have recently installed K2 BlackPearl on a development server. This server has a new instance on MOSS. For our MOSS enviroment, we have one web front end and a SQL backend for our databases. I have two issues I need help on:


 


 When trying to launch K2 server I get the following error message:


Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.


C:Program FilesK2 blackpearlHost ServerBin>k2hostserver
;K2 HostServer Console Mode
;======================================
;Loading .NET Framework v2.0.50727
;Framework loaded successfully.
;Creating App Domain.
;Creating Host Server Runtime.
;Boot Strapping Hosting Server Runtime
;Press ESC to end..


Info    1001 Host Server Started as CORPDOMAINa-jgarcia
Info    1002 Using .NET Framework v2.0.50727
Info    1003 Host Server Version: 4.8256.1.0
Info    1005 Initializing Connection to Host Server Database: THHOUDVBLDSQL.Host
Server
Info    1007 Initialized Connection to Host Server Database: THHOUDVBLDSQL.HostS
erver
Info    1010 Enrolling Type : SourceCode.Security.Providers.K2UMProvider.K2UMPro
vider
Info    1010 Enrolling Type : SourceCode.Security.Providers.SalesforceProvider.S
alesforceProvider
Info    1010 Enrolling Type : SourceCode.Security.Providers.SharePoint.SharePoin
tProvider
Info    1010 Enrolling Type : SourceCode.Hosting.Server.Services.AppDomainServic
e
Info    1010 Enrolling Type : SourceCode.Hosting.Server.Services.DiscoveryServic
e
Info    1010 Enrolling Type : SourceCode.Hosting.Services.DependancyService
Info    1010 Enrolling Type : SourceCode.Hosting.Server.Services.TCPIOCPService
Info    12000 Dependancy Service Initialized
Info    1010 Enrolling Type : SourceCode.Workflow.Runtime.K2LogServer
Info    1010 Enrolling Type : K2Server
Info    1010 Enrolling Type : SourceCode.ArtifactLibrary.Runtime.ArtifactLibrary
HostableServer
Info    1010 Enrolling Type : SourceCode.Categories.Runtime.CategoryServer
Info    1010 Enrolling Type : SourceCode.Dependancy.Runtime.DependancyServer
Info    1010 Enrolling Type : SourceCode.EnvironmentSettings.Runtime.Environment
SettingsHostableServer
Info    1010 Enrolling Type : SourceCode.EventBus.ManagementServer.ClientServer
Info    1010 Enrolling Type : SourceCode.EventBus.Scheduler.Server.ServerImplime
ntation
Info    1010 Enrolling Type : SourceCode.EventBus.Scheduler.Server.ClientServerI
mplimentation
Info    1010 Enrolling Type : SourceCode.EventBus.Server.ClientServerImplimentat
ion
Info    1010 Enrolling Type : SourceCode.EventBus.Server.ServerImplimentation
Info    1010 Enrolling Type : SourceCode.Hosting.Servers.LicenseManagement
Info    1010 Enrolling Type : SourceCode.Hosting.Servers.Management
Info    1010 Enrolling Type : SourceCode.Security.UserRoleManager.Runtime.UserRo
leManagerServer
Info    1010 Enrolling Type : SourceCode.Hosting.Servers.SecurityManagement
Info    1010 Enrolling Type : SourceCode.SmartFunctions.Runtime.SmartFunctionEng
ine
Info    1010 Enrolling Type : SourceCode.SmartObjects.Runtime.SmartObjectClientS
erver
Info    1010 Enrolling Type : SourceCode.SmartObjects.Runtime.SmartObjectManagem
entServer
Info    1010 Enrolling Type : SourceCode.Workflow.Runtime.Management.WorkflowMan
agementHostServer
Info    5000 URM Server Initializing....
Info    5001 URM Server Initializing....
Info    5002 Default label name K2
Info    12500 Dependancy Server Initialized
Info    10000 SmartObject Runtime Server starting up......
Info    10001 SmartObject Runtime Connecting to Store Database on THHOUDVBLDSQL
....
Info    10003 SmartObject Runtime successfully connected to Database on THHOUDVB
LDSQL
Info    10004 SmartObject Runtime Store using integrated security.
Info    10021 SmartObject Runtime Event Handler initialized successfully.
Info    10010 SmartObject Object Factory initialized with cache time of 0
Info    10019 SmartObject Runtime Server successfully initialized and running.
Info    7500 Loading Eventbus Scheduling Server Version='4.0.0.0' Last Updated='
14 Jan 2008 10:41:36'
Info    7523 Loading Schedule Server
Info    7505 Configuration settings initialized
Info    7532 Initialization Check Successfull
Info    7513 Service registered with ID:5 running on machine: THHOUDVBLDW01
Info    7503 Loading ScheduleEventRecorder..
Info    7504 All Recorders Loaded
Info    7514 Schedule Buffers Initialized Successfully
Info    7522 Schedule Server Loaded Successfully
Info    15000 Workflow Management Server Initializing
Info    15001 Workflow Management Server Initialized
Info    10500 SmartObject Runtime.Management Server starting up......
Info    10514 Name: 'SourceCode.SmartObjects.Runtime.Management' Version: '4.820
4.1.0'  Date: '7/22/2008 9:05:20 AM'
Info    10512 EventHandler 'SourceCode.EventBus.SmartObjectEventRecorder.Recorde
r' started successfully  ...
Info    10507 SmartObject Runtime.Management Connecting to Store Database on THH
OUDVBLDSQL ....
Info    10509 SmartObject Runtime.Management successfully connected to Database
on THHOUDVBLDSQL
Info    10510 SmartObject Runtime.Management Store using integrated security.
Info    10505 SmartObject Runtime.Management Server started successfully...
Info    7000 Version='4.0.0.0' 14 Jan 2008 10:30:54
Info    7001 Checking EventBus Server Dependencies
Info    7003 SourceCode.SmartFunctions.Runtime.SmartFunctionEngine not yet Loade
d..
Info    7003 SourceCode.SmartFunctions.Runtime.SmartFunctionEngine not yet Loade
d..
Info    27022 Starting K2 Server Performance Monitoring
Info    7003 SourceCode.SmartFunctions.Runtime.SmartFunctionEngine not yet Loade
d..
Info    7003 SourceCode.SmartFunctions.Runtime.SmartFunctionEngine not yet Loade
d..
Info    1020 Starting Session F57DF1684082175B29745AD1DFF15263
Info    3000 Authenticating CORPDOMAINa-jgarcia for session F57DF1684082175B297
45AD1DFF15263 using K2 - NTLM
Info    5000 URM Server Initializing....
Info    5001 URM Server Initializing....
Info    5002 Default label name K2
Info    27120 K2 Server was successfully started
Info    28041 Server running
Info    9035 Initializing SmartFunction Engine...
Info    9040 SmartFunction Engine successfully initialized.
Info    7004 All Dependencies Loaded
Info    7021 Assembly Execution Path successfully updated
Info    7023 Loading Event Bus Server
Info    7005 Configuration settings initialized
Error   7031 Unable to connect to one of the following queue's 'thhoudvbldw01Ev
entBus : 'Message Queuing has not been installed on this computer.' queue
Error   7026 Unable to load EventBus Server

 


When launching the K2 workspace I get the following error message:


Error:
Initialization failed: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: indexAn error has occurred.
Please contact your administrator.
Error:
Initialization failed before PreInit: Thread was being aborted.
Possible causes
- using anonymous logon in IIS while Windows security is specified in Workspace configuration
- current logged on user can not be verified against the Active Directory Membership provider
- please review log files for more information


 


 


I have uninstalled, reinstalled and still nothing works. Please help


3 replies

Badge +11
Take a look at the prerequisites for installation for the MSMQ (Microsoft Message Queue).
Badge +9

With regards to your Workspace issue; I've seen that happen in certain environments if the default AD port is not set in the Workspace web.config.

You can modify the workspace web.config (C:Program FilesK2 blackpearlWorkSpaceSiteweb.config) to add the default AD port (389) to the AD connection string.  For example:


    <add name="ADConnectionString" connectionString="LDAP://YOURDOMAINHERE.COM:389" />

After saving the web.config, try browsing to Workspace again and see if you still get that same PreInit error.  NOTE:  if your K2 host service is not running you will get a red error on the K2 Workspace tasklist on home page stating it can't connect to the K2 service.  This is to be expected if the K2 host service is not running and is not an indication of a Workspace problem.

You should probably make a backup copy of the web.config first; just in case.

 

Badge +3

If you also continue to see the workspace error you can also try the following string;



Normal
0




false
false
false

EN-GB
X-NONE
X-NONE










































































































































































/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}



Locate the Workspace “web.config” file “Install%PathK2
BlackpearlWorkspaceSite”. Edit the following section in the XML file;



From



<add name="ADConnectionString"
connectionString="LDAP://YOURDOMAIN.FQN" />



To



<add name="ADConnectionString"
connectionString="LDAP://YOURDOMAINNETBIOS/DC=YOURDOMAIN,DC=FQN" />

 

In rare cases I have seen only the above format work.



 

Reply