dcrcli error Error Locking the Mutex

Unanswered Question

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)


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Loading.
Joe Clarke Mon, 07/28/2008 - 05:37
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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

Joe Clarke Mon, 07/28/2008 - 06:07
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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.

Actions

This Discussion