Collecting Trace Logs for Troubleshooting the SAP Analytics Cloud Agent

Learn how to enable and collect more detailed trace log information for the SAP Analytics Cloud agent to help you troubleshoot data acquisition connections to your-premise systems.

The following trace log information can be collected with the SAP Analytics Cloud agent and used to troubleshoot errors between SAP Analytics Cloud and your data source you're acquiring data from.

The Apache Tomcat error log
  • File: <Tomcat_Install_Dir>/logs/tomcat-stderr.<DATE>.log (for example tomcat7-stderr.2018-04-09.log)

  • Inside this log file you should see an entry for the error. Here are some examples:

    April 09, 2018 11:29:48 AM com.sap.fpa.cloud.internal.DAException logException
    SEVERE: Could not reach CMS '10.165.28.118'. Specify the correct host and port and check for network issues. (FWM 20030)
    Could not reach CMS '10.165.28.118'. Specify the correct host and port and check for network issues. (FWM 20030)
The Apache Tomcat Catalina log
  • File: <Tomcat_Install_Dir>/logs/catalina.<DATE>.log (for example catalina.2018-04-09.log)

  • Inside this log file you should see an entry for the error. Here are some examples:

    SEVERE [http-nio-8080-exec-4] com.sap.fpa.logging.CoreLogger.log Enterprise authentication could not log you on. Please make sure your logon information is correct. (FWB 00008)
    com.crystaldecisions.sdk.exception.SDKServerException: Enterprise authentication could not log you on. Please make sure your logon information is correct. (FWB 00008)
    cause:com.crystaldecisions.enterprise.ocaframework.idl.OCA.oca_abuse: IDL:img.seagatesoftware.com/OCA/oca_abuse:3.2
    detail:Enterprise authentication could not log you on. Please make sure your logon information is correct. (FWB 00008)
    The server supplied the following details: OCA_Abuse exception 10496 at [exceptionmapper.cpp : 67] 42040 {}
    ...Enterprise authentication could not log you on. Please make sure your logon information is correct. (FWB 00008)
    Increase the Apache Tomcat log level in one of these ways to enable more detail logging on your SAC agent 
You can increase the Apache Tomcat log level in one of several ways to enable more detailed logging on your SAP Analytics Cloud agent.

Increase Logging in the Apache Tomcat Client Tool

Procedure

  1. Start the Apache Tomcat client tool.
  2. Go to the Logging tab.
  3. Change the Level to Debug.
  4. Restart Apache Tomcat.

Increase Logging in the Global logging.properties File

Procedure

  1. Edit the \conf\logging.properties file under the Apache Tomcat folder. Refer to the Apache Tomcat documentation for details.
  2. Restart Apache Tomcat.

Increase Logging in the SAP Analytics Cloud Agent logging.properties File

Procedure

  1. Add a logging.properties file under the Tomcat folder \webapps\C4A_AGENT\WEB-INF\classes, with this content:
    handlers = com.sap.fpa.logging.CoreLogge
    com.sap.fpa.logging.CoreLogger.level=WARNING
    
  2. Optionally, you can also Enable extra logging of request and response details by doing the following. (Important! These extra details may contain credentials and other secrets, so Log cleanup is highly recommended after debugging):
    1. Start the Apache Tomcat client tool.
    2. Go to the Java tab.
    3. Under Java Options, add the following line to the end: -DSAP_CLOUD_AGENT_LOG_REQUEST_DETAILS=true
  3. Restart Apache Tomcat.

Results

After restarting Tomcat, start the workflow a few times that causes your error in SAP Analytics Cloud and then go to the Apache Tomcat log folder to get the latest logs:
  • <Tomcat_Install_Dir>/logs/tomcat-stderr.<DATE>.log (for example tomcat7-stderr.2018-04-09.log).

  • <Tomcat_Install_Dir>/logs/catalina.<DATE>.log (for example catalina.2018-04-09.log)

Then reduce the log level back to its previous settings once you've collected the more detailed trace logs.