What does the (startsync) and (endsync) mean or do in a process.ini file?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What does the (startsync) and (endsync) mean or do in a process.ini file?

L3 Networker

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

 

1 accepted solution

Accepted Solutions

L0 Member

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>

 

 

 

View solution in original post

6 REPLIES 6

L5 Sessionator

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.

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.

L0 Member

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>

 

 

 

Hi

 

ill try this and let you know.

Adding tmp/ worked, thank you.

@James Cardany​  Hi , Do you know what type of reconcile account you used . I am trying with nsroot account but it says permission denied.

  • 1 accepted solution
  • 951 Views
  • 6 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!