Symptoms
Frequent Errors in K2 Host Server Logs
Diagnoses
We are getting frequent errors of the type of the two listed below in our K2 development environment.
1) 24148 The User Manager 127.0.0.1 returned an empty queue.
2) 64005 Failed to resolve 'SP:SharepointGroupProviderNameSharepointGroupName': An unexpected failure was encountered when contacting SharePoint to get information from the group provider Inventory Management: The SharePoint server has indicated that the web service could not be found. Consider updating the group provider configuration..
Resolution
1) This error can usually be ignored if you are not experiencing any issues (usually with destination sets/client event task/roles). Using a console app, we determined that all of the roles in this environment will return at least one valid user (whether it is from a user role item, group role item or a Smartobject role item). After further investigation of the hServer].rDestqueue] table, we found entries that were "UserName" and not roles (this can occur if a non-role (string, username) was used in a destination set but was marked as a role instead). Some possible ways to resolve this issue includes correcting the destination set and redeploying the process (to prevent this from recurring one can use the "Root" column for the correspond role in the hServer].rDestqueue] to determine which K2 Project this was ill-configured in). Then perhaps removing the bad entries from the hServer].rDestqueue] table please create a database backup before doing so. In our case, we just increased the refresh 'Interval' for the bad roles in the hServer].rDestqueue] table such that the error is logged less often.
2) We determined that the URLs associated with the Group providers were valid and is accessible from the K2 server. Re-running the App Registration wizard against the site indicated by the Group Provider url resolved the issue. We were able to resolve group membership against the Group Provider/SP label using the UMUser > Get Group Users method. If the URL associated with group provider is no longer valid (site/web application was deleted and is no longer in use) one can remove the associating rows in the hHostServer].rGroupProvider] table and restart the K2 blackpearl service afterward please also make a database backup before doing so.