The CardioLog Diagnostics Service checks the status of the CardioLog Scheduling Service components, and sends error alerts via email. You can access the current status of the services through the navigation pane by clicking on Administration > System Diagnostics > Diagnostics Dashboard. By default, all CardioLog Scheduling Service components run daily at 12:00 AM, except Usage Data Processing which runs every hour on the hour, and the CardioLog Diagnostics Service which runs every day at 08:30 AM. For assistance in troubleshooting service errors, please open a new support ticket

Contents

CardioLog Services Log Files

Both the CardioLog Scheduling Service and the CardioLog Diagnostics Service write messages to log files. There are two ways to view the log files:

Log files can be accessed by a user with a local administrator account on the CardioLog application server and with a CardioLog Administrator role. The CardioLog log files are located in the [CardioLog Installation Folder]\CardioLogScheduleServices\Logs folder.

The following log files are created by default:

These files are limited to 8MB each. 

In addition, CardioLog creates the following XML files -

The XML files have no file size limit.

When extended logging is turned on for troubleshooting purposes, the following log files are created:

The extended log files have no file size limit. It is recommended to turn off extended logging when it is not needed and archive/delete these log files periodically.

CardioLog Scheduling Service

Log File - CardioLogServices.log:

_____________________________________

// Service started successfully

Time : 27/01/2015 08:29:49

Message : Started

_____________________________________

// Service stopped successfully

Time : 27/01/2015 08:39:27

Message : Stopped

Possible Faults

1. Starting the service may fail due to a database connection problem
Solution: Verify that the CardioLog Scheduling Service login account can connect to the CardioLog database and is assigned a db_owner role.

2. The CardioLog Scheduling Service is started but all the jobs fail. 
Error in the log file: "Exception has been thrown by the target of an invocation".

Solution: See the Configuration FAQ for more information.

CardioLog Diagnostics Service

Log File - CardioLogSystemMonitoringServices.log:

_____________________________________

// Service started successfully

Time : 27/01/2015 08:29:49

Message : Started

_____________________________________

// Service stopped successfully

Time : 27/01/2015 08:39:27

Message : Stopped

Possible Faults

1. Starting the service can fail when SMTP is not configured.

Error in the log file: 
"Error: CardioLog Diagnostics Service failed to start. (Exception: SMTP mail server is not configured)".

Solution: See Report Scheduling to configure SMTP settings.

2. Sending email alerts can fail due to a SMTP connection problem.

Error in the log file:
"Error: Failed to send an email alert to the system administrator. (Exception: System.ApplicationException: Send Mail Exception: Failed to connect to SMTP mail server at CardioLog.API.Util.SendMail(String SMTPMailServer, String SMTPUser, String SMTPPassword, String from, String to, String subject, String body, MessageType type) at CardioLog.Services.CardioLogMonitoringServices.OnStart(String[] args))"

Solution: Verify that the CardioLog Scheduling Service login account has all details completed and can connect to the SMTP server.

Users and Groups Updates

Log File - ADAgent.log:

Possible Faults

Loading from Active Directory can fail due to:

1. Missing parameters

Error in the log file:
"Error: Parameter Active Directory connection string is missing"

Solution: See the Active Directory Updates service for more information.

2. Invalid parameters

Error in the log file:
"Error: Exception: There is no such object on the server."

"Error: A referral was returned from the server."

Solution: Verify that the Active Directory connection string is in a FQDN (Fully Qualified Domain Name) format (eg. corp.company.com). If you have defined specific organizational units to load from, verify that they exist in the expected location.

3. Insufficient permissions to read from Active Directory

Error in the log file:
"Error: Exception: Logon failure: unknown user name or bad password."

Solution: Verify that the CardioLog Scheduling Service login account has read access to Active Directory. If you have supplied credentials, verify that they are valid  and correct. If the CardioLog Scheduling Service login account is in the same domain, there is no need to supply credentials.

4. Network errors

Errors in the log file:
"Error: Exception: The operation has timed out"

Solution: Temporary network load, usually the next Active Directory Updates run will succeed.

"Exception: The server is not operational."

Solution: Make sure the FQDN (Fully Qualified Domain Name) name you defined exists in the DNS. You also need to make sure that TCP port 389 is open to the domain controller, as your traffic might be getting blocked by the firewall.

5. Database connection problem
Solution: Verify: 

 

Note: For more details turn on extended logging for the ADTree web application and view the log file - ADXMLTree.log

Portal Tree Updates

Log File - OMAgent.log

_____________________________________

// Loading a SharePoint 2010 farm tree

Time : 11/26/2008 12:18:25 AM

Message : Loading from: http://[CardioLog server name:port]/SP2010Tree/default.aspx?docVersions=true&output=file&logFilePath=C:\Program Files\Intlock\CardioLog\CardioLogScheduleServices\Logs\SP2010Tree.xml

_____________________________________

// Loading a custom website site map

Time : 11/26/2008 12:35:34 AM

Message : Loading from: http://[CardioLog server name:port]/WebsiteTree/default.aspx

_____________________________________

Time : 11/26/2008 12:46:42 AM

Message : Get Tree: Success

_____________________________________

// Loading trees XML structure (OMTree.xml) into a temporary table (tab_sharepoint_tree_load) in the CardioLog database

Time : 11/26/2008 12:46:42 AM

Message : Loading Xml to DB...

_____________________________________

Time : 26/11/2008 02:32:48

Message : Load Xml to DB: Success

_____________________________________

// Checking for duplicate URLs in tree in CardioLog database (the URL is the unique identifier for tree objects)

Time : 26/11/2008 02:32:48

Message : No Duplicate Urls.

_____________________________________

// Shrinking SQL log file

Time : 26/11/2008 02:32:48

Message : Shrinking SQL Log File...

_____________________________________

Time : 26/11/2008 02:32:48

Message : Shrink Log File: Success

_____________________________________

// Updating the old tree (located in the tab_sharepoint_tree table) after comparing it with the new tree (located in the tab_sharepoint_tree_load table) in CardioLog database

Time : 26/11/2008 02:32:48

Message : Refreshing OM Tree...

_____________________________________

Time : 26/11/2008 04:13:28

Message : Refresh OM Tree: Success

_____________________________________

// Updating inventory count for tree item types

Time : 26/11/2008 04:13:28

Message : Counting Inventory

_____________________________________

// Fixing lost events (events that are not associated with tree items)

Time : 26/11/2008 04:13:32

Message : Mapping lost URLs to SharePoint IDs (from 9/11/2007 1:26:35 PM)

_____________________________________

Time : 26/11/2008 04:13:38

Message : Map lost URLs to SPID: Success

_____________________________________

Time : 26/11/2008 04:13:43

Message : Fixing lost events and cached data (from 9/11/2007 1:26:35 PM)...

_____________________________________

Time : 26/11/2008 04:14:56

Message : Fix lost events: Success

_____________________________________

// Checking if tree structure is valid (lost branch - a tree item with no parent item)

Time : 26/11/2008 04:14:56

Message : Finding lost branches

_____________________________________

Time : 26/11/2008 04:15:19

Message : No lost branches found.

_____________________________________

// Delete Analysis Center html tree cache

Time : 26/11/2008 04:15:26

Message : Clean CardioLog tree cache

_____________________________________

// Service finished successfully

Time : 26/11/2008 04:15:26

Message : Updating service account name in global settings.

_____________________________________

Time : 26/11/2008 04:15:26

Message : Updating last run global settings.

_____________________________________

Time : 26/11/2008 04:15:26

Message : OMAgent run complete.

 

Possible Faults

Loading the tree structure from the tree adaptor can fail due to:

1. Insufficient permissions to the SharePoint databases

Errors in the log file:

 

Solution: Verify that the CardioLog Scheduling Service login account has read access to all SharePoint configuration and content databases, and read access to the SharePoint TEMPLATE path: \\[SharePoint WFE server name]\C$\Program Files\Common Files\Microsoft Shared\web server extensions\[XX]\TEMPLATE (12 - for MOSS 2007, 14 - for SharePoint 2010, 15 - for SharePoint 2013)

2. Insufficient resources

Error in the log file:

Solution: Verify that your system has enough resources according to system requirements.

3. Network errors

Error in the log file:
"Error: 401 Not authorized"

Solution: Verify that the CardioLog user account has access to the tree adaptor and sufficient read permissions on the server where the site tree is located.

4. Database connection problem 
Verify that:

Note: For more details turn on extended logging for the SP20XXTree web application and view the log file -SP20XXTree.log  (XX - 07 for MOSS 2007, 10 for SharePoint 2010, 13 for SharePoint 2013)

Usage Data Processing

Log File - Maintenance.log:

_____________________________________

// Executing the usage data processing procedure (stp_eventlog_migrate), including the black list filters (what data not to collect), against the CardioLog database

Time : 29/01/2009 13:01:00

Message : Starting

_____________________________________

Time : 29/01/2009 13:01:00

Message : Creating temp duration events...

_____________________________________

// Archiving history events and verifying events and WFEs quota (according to product edition license)

Time : 29/01/2009 13:01:00

Message : Archiving events...

_____________________________________

Time : 29/01/2009 13:01:03

Message : Archiving successful.

_____________________________________

Time : 29/01/2009 13:01:03

Message : Verifying page views monthly quota...

_____________________________________

Time : 29/01/2009 13:01:03

Message : Verifying WFEs quota...

_____________________________________

Time : 29/01/2009 13:01:03

Message : Migrating temp events...

_____________________________________

Time : 29/01/2009 13:01:03

Message : Updating referrer summary...

_____________________________________

Time : 29/01/2009 13:01:03

Message : Updating geo data...

_____________________________________

Time : 29/01/2009 13:01:03

Message : Refreshing CardioLog Agent Cache...

_____________________________________

// Updating service last run time in CardioLog database

Time : 29/01/2009 13:01:03

Message : Updating last run global setting

_____________________________________

// Service finished successfully

Time : 29/01/2009 13:01:04

Message : Finished

Possible Faults

Processing the usage data can fail due to database connection problem.

Solution: Verify

Report Scheduling

Log File - CardioLogScheduler.log:

Possible Faults

The Generation of reports on the CardioLog database can fail due to:

1. Insufficient permissions

Solution: Verify that the CardioLog Scheduling Service login account is assigned a db_owner role on the CardioLog database.

2. Internal error caused by a "heavy" report

Errors in the log file:
"Error : Report Id: 060ad715-cd6e-4e02-9e3a-b94ab3f63d8f failed. Exception: The remote server returned an error: (500) Internal Server Error." 
"Error : Report Id: 3dc7a74d-3445-450a-ad43-405fd2ad1ce8 failed. Exception: The operation has timed out."

Solution: see tips for efficient report creation or contact us.
In order to identify the report causing the problem, run the following query against the CardioLog database: 

select [name] from tab_virtual_tree

where EntityId='[the report id]'

[the report id] - the report GUID from the error message in the log file. For instance: 060ad715-cd6e-4e02-9e3a-b94ab3f63d8f

3. Sending emails to report distribution lists can fail due to SMTP connection problem.

Solution: Verify that the CardioLog Scheduling Service login account can connect to the SMTP services server.

User Categories Updates

Log File - CategoryAgent.log:

Possible Faults

Loading from the User Categories web service can fail due to:

Timeout caused by a slow network

Solution:  Increase the web service timeout.
The User Categories web service timeout can be configured in the Web.config file. Edit the <httpRuntime> element in the <system.web>section. The Execution Timeout property indicates the maximum number of seconds a request is allowed to attempt to execute before being automatically shut down by ASP.NET. The default timeout is 90 seconds.
Note: When using a custom user data web service, contact the web service developer to increase the user categories web service timeout. 

<system.web>

<httpRuntime executionTimeout="7200" maxRequestLength="2000000"/>

</system.web>

2. Internal web service error

Solution: Verify that you can browse the user data web service URL (specified in the User Categories Updates service parameters) or contact the web service developer when using a custom user data web service.

3. Reading and writing the user data to the CardioLog database can fail due to insufficient permissions or database connection problems

Solution: Verify that the CardioLog Scheduling Service login account can connect to the CardioLog database and is assigned a db_owner role

SEO Analysis

Log File - SEO.log:

Possible Faults

Crawling a website can fail due to:

1. Insufficient permissions to browse the website

Solution: Set sufficient permissions for the SEO crawl.

2.   Reading and writing the user data to the CardioLog database can fail due to insufficient permissions database connection problems. 

Solution: Verify that the CardioLog Scheduling Service login account can connect to the CardioLog database and is assigned a db_owner role.

Note: In order to troubleshoot issues during the crawl process, turn on extended logging for the CardioLog web application, execute the crawl immediately via the CardioLog UI and view the log file - CardioLogUI.log.

Extended Logging

In order to turn on message logging to trace the CardioLog service components, add the "Verbose,Message" switch to the "logType" key in the component configuration file -

<add key="logType" value="Verbose,Message,Warning,Error" />


In order to turn off message logging for the CardioLog service components, remove the "Verbose,Message" switch from the "logType" key in the component configuration file -

<add key="logType" value="Warning,Error" />


Configuration Files
 -