- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-09-2020 03:31 AM
I have the below in a process.ini file and this section keeps on throwing an error when I execute a change password procedure due to the startsync and endsync. The error produced is listed below.
process file section;
#Commit
StartCommit=(startsync)pmterminal-gaia-<address>
SaveConfiguration=save config
SaveConfigLockDatabase=lock database override
SaveConfigUnlockDatabase=unlock database
EndCommit=(endsync)pmterminal-gaia-<address>
logout=(script)close
Error generated;
Error: an error occured while performing a state action. Message: Failed to create mutex pmterminal-gaia-x.x.x.x. Error: couldn't open pmterminal-gaia-x.x.x.x
03-11-2020 08:09 AM
I was able to resolve the issue by modifying "CitrixNetscalerProcess.ini", as the lock file directory was invalid.
Before ->
Line 46: StartCommitLock=(startsync)pmterminal-CitrixNetscaler-<address>
Line 48: StopCommitLock=(endsync)pmterminal-CitrixNetscaler-<address>
After ->
Line 46: StartCommitLock=(startsync)tmp/pmterminal-CitrixNetscaler-<address>
Line 48: StopCommitLock=(endsync)tmp/pmterminal-CitrixNetscaler-<address>
03-09-2020 09:03 AM
Hi @Ed W, (startsync) and (endsync) allow you to set a mutex (wikipedia).
Basically, from the state where you (startsync), you say that "only one CPM process at a time must perform the following states until it reaches the (stopsync)". In your case, if the CPM is concurrently managing 3 gaia accounts of the same device, the "save config" will be performed one after another. If it were not the case, the first "save config" would kick in, and then a second one that would fail since there is already a "save config" going on. That's one good reason to use a mutex but there are others.
On the CPM machine, the state "(startsync)pmterminal-gaia-<address>" will create a file "pmterminal-gaia-192.0.2.1" in the tmp\ folder. This mutex is then only valid for CPM processes managing this device and will not interfere with CPM processes managing a gaia target with IP 192.0.2.33 for example.
03-09-2020 09:22 AM
Explanation makes perfect sense in this case due to the lock database scenario. Thanks.
What would cause the error to occur? I see the tmp folder has full control for the PasswordManagerUser.
03-11-2020 08:09 AM
I was able to resolve the issue by modifying "CitrixNetscalerProcess.ini", as the lock file directory was invalid.
Before ->
Line 46: StartCommitLock=(startsync)pmterminal-CitrixNetscaler-<address>
Line 48: StopCommitLock=(endsync)pmterminal-CitrixNetscaler-<address>
After ->
Line 46: StartCommitLock=(startsync)tmp/pmterminal-CitrixNetscaler-<address>
Line 48: StopCommitLock=(endsync)tmp/pmterminal-CitrixNetscaler-<address>
03-11-2020 08:42 AM
Hi
ill try this and let you know.
03-20-2020 04:42 AM
Adding tmp/ worked, thank you.
08-17-2021 10:34 AM
@James Cardany Hi , Do you know what type of reconcile account you used . I am trying with nsroot account but it says permission denied.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

