There are a few checkpoints to troubleshoot this error:
- Make sure the PES and cred_V2 files are valid and present in the same directory.
- Make sure the SECUDIR environment variable is set. On Unix, check the output of command 'env'; on Windows, check the output of command 'set'.
- If the system environment is correct, on Unix please check if the environment variable is overrided in the start script (startBWAppnode.sh).
- Check the loaded SECUDIR env variable value in the runtime. To do this:
- enable the OSGI console. https://docs.tibco.com/pub/activematrix_businessworks/6.5.1/doc/html/GUID-780D3F2B-CE92-4D1B-AD93-8DDDFCD5D690.html
- telnet to the OSGI port. and run 'env', check the environment variable values.
If the SECUDIR is not correctly set in the runtime environment, we can use an override in the start script, to do this:
1. Go to the BW/domains/<domain name>/appnodes/<appspace name>/<appnode name>/bin, and modify the 'startBWAppnode.sh',
2. Add SECUDIR override as the first line in this script and save:
export SECUDIR=<your directory that stores pse and cred_v2 files>.
3. Restart the appnode from BWAdmin or TEA.