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
- Create an "allowlist.txt" file on the Linux server where Apache Tomcat and the SAP Analytics Cloud Agent are installed.
- Define the full file server path to be accessed by SAP Analytics Cloud.
- 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>" - Restart Apache Tomcat to apply the changes.
- 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