Troubleshooting the Analytics Aggregator Service
PreEmptive Analytics for TFS User Guide | |
Troubleshooting the Analytics Aggregator Service | |
www.preemptive.com |
Glossary Item Box
This section provides troubleshooting information related to the PreEmptive Analytics Aggregator Service. This service is responsible for sending requests to the Query Service to get recent exception data, manage criteria (rules) for exception types, and connecting to TFS to create work items.
Issues experienced by the aggregator service are logged in the Windows Event Log, in the PreEmptive node of the Applications and Services Logs section. Examining this log can often provide assistance in resolving aggregator service issues.
Problem | Potential Cause | Solution |
Work Items are not showing up as expected. | Raw data service endpoint is not running. | See the Troubleshooting the Analytics Endpoint Services topic. |
Raw data service endpoint is not accessible from the machine hosting the aggregator service. |
|
|
Raw data service is experiencing an error. | See the Troubleshooting the Analytics Endpoint Services topic. | |
Raw data service endpoint is using basic authentication and credentials in the aggregator service .config file are missing or incorrect. |
|
|
Raw data service endpoint is using basic authentication and login name in the aggregator service .config file is not an authorized user in IIS. |
|
|
Raw data service endpoint is using basic authentication, aggregator service is configured to connect using http URI scheme (not https.) | Using basic authentication over SSL is highly recommended, as credentials are transmitted in plain text. However, if your configuration requires the PreEmptive Analytics endpoint raw data service to use basic authentication over unsecured HTTP instead of SSL, you will need to locate the <binding> element named BasicSecurity and change its security mode value from Transport to TransportCredentialOnly. | |
Aggregator service is not running. |
|
|
Aggregator service is not running under an account with permissions to create and edit work items in Team Foundation Server. | The Analytics aggregator service must be configured to execute using an account with permissions to create and edit work items in Team Foundation Server.
To determine the name of an account with permissions to create and edit work items in Team Foundation Server, launch the Team Foundation Server Administration Console and click on the Application Tier node. Click on Group Membership, and locate an account that is a member of a group with permissions to create and edit work items, such as the Team Foundation Administrators group. |
|
Rule criteria not being met. | Using SQL Server Management Studio, connect to the exceptions database being used to persist exception data. Query against the Exceptions table, and verify the number of exception report messages exceeds the threshold, and have been persisted within the time span specified in the rule. |
|
Exceptions received not in rule’s exception set. | Inspect the exception set assigned to the rule and ensure the exceptions being received are included, or create a new exception set that includes the exceptions being received and assign it to the rule. | |
Team project is not provisioned for PreEmptive Analytics. | See the Provision team projects section of the Provisioning Team Projects topic. | |
TFS Work item query does not include Incident work items. | Ensure that the Incident work item type is included in the TFS work item query you wish to use for viewing work items created by the Aggregator service. | |
PreEmptive Analytics node is not visible in Team Explorer. | Team project is not provisioned for PreEmptive Analytics. | See the Provision team projects section of the Provisioning Team Projects topic. |
Configuration Utility or VS extension can’t connect to configuration service. | Aggregator service is not running. |
|
Aggregator service credentials are incorrect. |
|
|
Aggregator service account does not have Log on as a Service rights. |
|
|
Aggregator service account does not have permission to host configuration service on port 80. |
|
|
Aggregator configuration service is being blocked by a firewall. | Launch the configuration tool for your firewall. Allow the PreEmptive.Analytics.Aggregator.exe application to accept incoming connections on port 80. The PreEmptive.Analytics.Aggregator.exe application is located in the Service subfolder within the PreEmptive Analytics installation directory (by default, C:\Program Files (x86)\PreEmptive Solutions\PreEmptive Analytics CE) | |
Aggregator service raw data connection is configured incorrectly, or raw data service is inaccessible. |
If this is configured correctly:
|
|
(For VS extension) Aggregator service is not accessible from the machine running Visual Studio. |
|
|
Provisioning a team project fails. | Aggregator service is not running under an account with permissions to create and edit work items in Team Foundation Server. | The Analytics aggregator service must be configured to execute using an account with permissions to create and edit work items in Team Foundation Server.
To determine the name of an account with permissions to create and edit work items in Team Foundation Server, launch the Team Foundation Server Administration Console and click on the Application Tier node. Click on Group Membership, and locate an account that is a member of a group with permissions to create and edit work items, such as the Team Foundation Administrators group. |
PreEmptive Analytics hub is not visible in Visual Studio. | Team project is not provisioned for PreEmptive Analytics. | See the Provision team projects for PreEmptive Analytics section of the Provisioning Team Projects topic. |
Visual Studio extension cache must be refreshed. | Launch an instance of the Visual Studio Command Prompt and execute the command devenv.exe /setup to refresh the extension cache. | |
Sample reports are not working correctly. | TFS data warehouse has not run. | The TFS data warehouse process executes every two hours by default. You can wait for the process to occur, or manually execute the data warehouse process by following the instructions in the Manually Process the Data Warehouse and Analysis Services Cube for Team Foundation Server topic of the Team Foundation Server documentation. |
Report data is cached. |
|
|
In TFS Web Access, the Incident work item does not show the exception information or an error is displayed. | PreEmptive Analytics Aggregator Visualizer extension is disabled or not installed. | Follow the installation process in the Installing the Analytics Visualizer Extension for TFS Web Access topic. Ensure you enable the extension after it is installed. |
Viewing the Aggregator Service Debug Console
Occasionally, a problem with the PreEmptive analytics aggregator service may present itself without writing a meaningful event to the Windows event log. In these cases, it can be useful to view the debug output of the aggregator service itself using the aggregator service debug console. Running the service in debug mode should only be done to debug specific issues - once the issues are solved, do not continue to run the service in debug mode. Instead, exit the debug console and start the PreEmptive Analytics Aggregator Service from the Services console directly.
- Ensure the PreEmptive Analytics Aggregator Service is stopped from within the Services console.
- From the command prompt, change directory to the Service subfolder within the PreEmptive Analytics installation directory (by default, C:\Program Files (x86)\PreEmptive Solutions\PreEmptive Analytics CE).
- Execute the command PreEmptive.Analytics.Aggregator.exe /debug to launch the debug console.
- Click the Start button to start the service in debug mode, and watch the Trace log window for debugging messages.
- When finished, click the Stop button and close the debug console. Restart the PreEmptive Analytics Aggregator Service from the Services console.
See Also
Troubleshooting the Analytics Endpoint Services
Installing PreEmptive Analytics
Installing the Analytics Visualizer Extension for TFS Web Access
Configuring your Team Projects for PreEmptive Analytics
Provisioning Team Projects
Defining Exception Sets and Rules
© 2012 PreEmptive Solutions. All rights reserved.