SAP Knowledge Base Article - Public

3614392 - Error "Access to the path specified by the connection is not permitted" when creating a File Server connection in SAP Analytics Cloud.

Symptom

  • When attempting to create a File Server connection in SAP Analytics Cloud, the following error message is displayed:

"Access to the path specified by the connection is not permitted. Contact your administrator."

  • In "Catalina.log" the following error is found: "The environment variable and JVM property are not set for file server whitelist."

Environment

  • SAP Analytics Cloud.
  • Linux Operating System

Reproducing the Issue

  1. Create an "allowlist.txt" file on the Linux server where Apache Tomcat and the SAP Analytics Cloud Agent are installed.
  2. Define the full file server path to be accessed by SAP Analytics Cloud.
  3. Set the environment variable by adding the following line to the "setenv.sh" file:
    export JAVA_OPTS="SAP_CLOUD_AGENT_FILE_SERVER_WHITELIST_PATH=<full_path_to_allowlist.txt>"
  4. Restart Apache Tomcat to apply the changes.
  5. Try to create the file server connection in SAC.
    >>The following error appears: "Access to the path specified by the connection is not permitted. Contact your administrator."

Cause

Missing configuration.

Resolution

Set the parameter JAVA_OPTS="-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -DSAP_CLOUD_AGENT_FILE_SERVER_WHITELIST_PATH=<AllowlistFilepath>" under "JAVA_OPTS" in the "catalina.sh" file (For RedHat OS, the "JAVA_OPT" parameter is located under "tomcat.conf " file.)

See Also

Keywords

Fileserver, SAC, Linux, JAVA_OPTS. , KBA , LOD-ANA-AQU , Import Data Connections (Acquiring Data) , Problem

Product

SAP Analytics Cloud 1.0