cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
669
Views
4
Helpful
4
Replies

dcrcli error Error Locking the Mutex

akemp
Level 5
Level 5

I use homebrew scripting to cross validate the inventories of two autonomous LMS installations. Sometimes I get this error "Error Locking the Mutex" and the only way I can recover is to recycle the DCR server it occurs on.

Anyone have a clue what exactly this is ? I'm assuming the DCRcli is attempting to lock the DB for exclusive access so it doesnt get modified while its doing its operations, but cant find it documented anywhere (well except google in dev forums)

4 Replies 4

Joe Clarke
Cisco Employee
Cisco Employee

Is this the exact error? I cannot find this in the code.

Yes , verbatim as output from the CLI. it might be an error message from the underlying database and the way it handles assertions.

I found it. It doesn't come from the database, but rather from our regdaemon.xml accessor code. We're trying to lock a semaphore, and this is failing.

When this happens, it would be helpful to get the output of ipcs as well as a truss of the dcrcli process:

truss -a -f -vall -rall -wall -o truss.out dcrcli ...

This would need to be run as root.

I'll need to wait for it to occur again before I can capture it. Its an infrequent occurance so I'll keep track of it.