# Error" exceptionMessage="Failed to acquire lock"

**URL:** <https://forum.genieacs.com/t/error-exceptionmessage-failed-to-acquire-lock/4487>\
**Category:** Uncategorized\
**Created:** [September 12, 2023, 2:22am UTC](https://forum.genieacs.com/t/error-exceptionmessage-failed-to-acquire-lock/4487 "2023-09-12T02:22:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashget81](https://avatars.discourse-cdn.com/v4/letter/f/ebca7d/32.png) [@flashget81](https://forum.genieacs.com/u/flashget81)\
**Post date:** [September 12, 2023, 2:22am UTC](https://forum.genieacs.com/t/error-exceptionmessage-failed-to-acquire-lock/4487/1 "2023-09-12T02:22:00Z")

</div>

Hello,

I met a lot of logs as follows:

genieacs-cwmp: 2023-09-10T09:38:44.433Z [ERROR] Uncaught exception; pid=70426 exceptionName=“Error” exceptionMessage=“Failed to acquire lock” exceptionStack=“Error: Failed to acquire lock\n at \_s (/usr/lib/node\_modules/genieacs/bin/genieacs-cwmp:2:58134)\n → /usr/lib/node\_modules/lib/cache.ts:101:13\n at processTicksAndRejections (internal/process/task\_queues.js:97:5)”

my environment as  
GenieACS 1.2.8  
NodeJS: 12  
MongoDB shell version v4.4.14

Can you check and advise me to fix it

Thank you so much for your support

---

<div class="post-metadata">

**Author:** ![ganjap123](https://avatars.discourse-cdn.com/v4/letter/g/58956e/32.png) [@ganjap123](https://forum.genieacs.com/u/ganjap123)\
**Post date:** [October 24, 2023, 12:13am UTC](https://forum.genieacs.com/t/error-exceptionmessage-failed-to-acquire-lock/4487/2 "2023-10-24T00:13:37Z")

</div>

I am also facing same issues,

let me know how did you solved

---

<div class="post-metadata">

**Author:** ![harilam](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@harilam](https://forum.genieacs.com/u/harilam)\
**Post date:** [November 30, 2023, 9:07am UTC](https://forum.genieacs.com/t/error-exceptionmessage-failed-to-acquire-lock/4487/3 "2023-11-30T09:07:33Z")

</div>

Check my reply here

> [@Cwmp service failed with "Database clock skew too great" log](https://forum.genieacs.com/t/cwmp-service-failed-with-database-clock-skew-too-great-log/4635/5):
>
> Hi Felipe, I think I already figured out the problem with my production environment. My production run a cron job to get all devices’ information every 2 hours via NBI and this is the main cause of the exceptionName=“Error” exceptionMessage=“Database clock skew too great” and exceptionName=“MongoNotConnectedError” exceptionMessage=“MongoClient must be connected to perform this operation”. I just add some delay and reduce the number of devices / each request from my cron job and now problem di…
