Troubleshooting
If you are having an issue with Secret Server loading after enabling HSM or seeing errors like CKR_FUNCTION_FAILED, please follow these steps to resolve the race condition happening during the PKCS #11 login.
For Secret Server Version 11.7.35 and Greater:
-
Add Settings to web-appSettings.config:
-
Locate the
web-appSettings.config
file in the root of Secret Server. -
Add the following setting:
<add key="DelayBackgroundStartupMilliseconds" value="5000" />
You can add the value 5000, the equivalent of 5 seconds, but you may need to increase the value depending on the server hardware and web environment.
-
Run the
iisreset
command.
For Secret Server Version Less Than 11.7.35:
-
Download the Version with the DelayBackgroundStartupMilliseconds Setting:
Ensure you have the version 11.7.35 or greater of Secret Server.
-
Add Settings to web-appSettings.config:
-
Locate the
web-appSettings.config
file in the root of Secret Server. -
Add the following settings:
<add key="PreventBackgroundThreads" value="true" />
<add key="DelayBackgroundStartupMilliseconds" value="5000" />
You can add the value 5000, the equivalent of 5 seconds, but you may need to increase the value depending on the server hardware and web environment.
-
-
Run the
iisreset
command. -
Upgrade Secret Server:
-
Navigate to the Secret Server upgrade section.
-
Select the version with the DelayBackgroundStartupMilliseconds setting (version 11.7.35 and greater).
-
Upgrade the Secret Server to the selected version.
-
-
Update Settings Post-Upgrade:
-
Once the upgrade is finished, change
PreventBackgroundThreads
to false in theweb-appSettings.config
file. -
Run the
iisreset
command.
-
-
This will pick up the new delay setting and delay the background workers so the web node can log in to the PKCS #11 library first.
If you are still having issues, increase the delay value and retry.