Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

Silver

dcrcli error Error Locking the Mutex

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
Cisco Employee

Re: dcrcli error Error Locking the Mutex

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

Silver

Re: dcrcli error Error Locking the Mutex

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

Cisco Employee

Re: dcrcli error Error Locking the Mutex

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.

Silver

Re: dcrcli error Error Locking the Mutex

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.

121
Views
4
Helpful
4
Replies