Troubleshooting
Problem
When trying to execute the run.sh or many other scripts located in the /bin directory, like setupfiles.sh, dbverify.sh, dump_info.sh etc. a java security error is thrown.
Symptom
Below is the type of java stack trace returned when trying to execute a script.
java.lang.RuntimeException: Restricted security policy expired.at java.base/openj9.internal.security.RestrictedSecurity.printStackTraceAndExit(RestrictedSecurity.java:663)at java.base/openj9.internal.security.RestrictedSecurity.restrictsCheck(RestrictedSecurity.java:607)at java.base/openj9.internal.security.RestrictedSecurity.configure(RestrictedSecurity.java:484)at java.base/java.security.Security.initialize(Security.java:147)at java.base/java.security.Security$1.run(Security.java:96)at java.base/java.security.Security$1.run(Security.java:94)at java.base/java.security.AccessController.doPrivileged(AccessController.java:693)
Cause
The error is due to having the FIPS_MODE set to True in the sandbox.cfg file and tmp.sh script.
The flag enforces a restricted security policy which can have an expiry date.
Resolving The Problem
To resolve the issue follow the steps below.
1). The first step is to fix the tmp.sh file.
- Go to the <install_dir>/bin directory
- Edit the tmp.sh script
- Search for "¨FIPS_MODE"
- Set the value to "false" and save the file.
- To verify the change is valid, execute a script like ./setupfiles.sh
2). The next steps is to disable FIPS Mode in the sandbox.Cfg file.
- Go to the <install_dir>/properties directory.
- Edit the sandbox.cfg file
- Search for "¨FIPS_MODE"
- Set the value to "false" and save the file.
- The go to the <install_dir>/bin and execute the command: ./setupfiles.sh
The second execution of the setupfiles.sh will disable the FIPS mode in various locations such as security.properties, tmp.sh.
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
24 September 2026
UID
ibm17289266