SAP Knowledge Base Article - Public

3328814 - Error: "http status 401- Unauthorized" when accessing tomcat from a remote machine

Symptom

When trying to access "http://<ip_address>:<port_number>/C4A_AGENT/deploymentInfo/" from a remote machine, the below error occurs:

"http status 401- Unauthorized"

Environment

SAP Analytics Cloud

Reproducing the Issue

  1. Install and configure the SAP cloud connector.
  2. Install the cloud agent.
  3. Try to access http://<ip_address>:<port_number>/C4A_AGENT/deploymentInfo/ from a remote machine
    >>Notice the error: "http status 401- Unauthorized"

Cause

Remote access to tomcat is not allowed. 

Resolution

Comment the Valve tag in the "/webapps/manager/META-INF/context.xml" file as following:

<Context antiResourceLocking="false" privileged="true" >
        <!--<Valve className="org.apache.catalina.valves.RemoteAddrValve"
         allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />-->
</Context>

Keywords

Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics, Issue, sapanalyticscloud, sap analytical cloud, sap analytical cloud , KBA , LOD-ANA-AUT , SAC Authentication / Login , Problem

Product

SAP Analytics Cloud all versions