# Mongo Error: ExceptionName " MongoNotConnectedError"

**URL:** <https://forum.genieacs.com/t/mongo-error-exceptionname-mongonotconnectederror/4488>\
**Category:** Uncategorized\
**Created:** [September 12, 2023, 2:44am UTC](https://forum.genieacs.com/t/mongo-error-exceptionname-mongonotconnectederror/4488 "2023-09-12T02:44:23Z")\
**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:44am UTC](https://forum.genieacs.com/t/mongo-error-exceptionname-mongonotconnectederror/4488/1 "2023-09-12T02:44:23Z")

</div>

Hello,

I met a lot of logs as follows:

genieacs-cwmp: 2023-09-10T13:28:58.272Z [ERROR] Uncaught exception; pid=15547 exceptionName=“MongoNotConnectedError” exceptionMessage=“MongoClient must be connected to perform this operation” exceptionStack=“MongoNotConnectedError: MongoClient must be connected to perform this operation\n at Object.getTopology (/usr/lib/node\_modules/genieacs/node\_modules/mongodb/lib/utils.js:391:11)\n → /usr/lib/node\_modules/genieacs/node\_modules/mongodb/src/utils.ts:476:9\n at Collection.deleteOne (/usr/lib/node\_modules/genieacs/node\_modules/mongodb/lib/collection.js:185:61)\n → /usr/lib/node\_modules/genieacs/node\_modules/mongodb/src/collection.ts:570:7\n at xs (/usr/lib/node\_modules/genieacs/bin/genieacs-cwmp:2:58227)\n → /usr/lib/node\_modules/lib/cache.ts:113:37\n at Bn (/usr/lib/node\_modules/genieacs/bin/genieacs-cwmp:2:119987)\n → /usr/lib/node\_modules/lib/cwmp.ts:828:9\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task\_queues.js:97:5)\n at async qn (/usr/lib/node\_modules/genieacs/bin/genieacs-cwmp:2:111339)\n → /usr/lib/node\_modules/lib/cwmp.ts:207:29”

Can anyone advise and suggestion solution help me ?

Thank you so much for your support

---

<div class="post-metadata">

**Author:** ![sothatsu](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@sothatsu](https://forum.genieacs.com/u/sothatsu)\
**Post date:** [September 15, 2023, 4:44am UTC](https://forum.genieacs.com/t/mongo-error-exceptionname-mongonotconnectederror/4488/2 "2023-09-15T04:44:49Z")

</div>

Same issue, is there anybody help us

---

<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:08am UTC](https://forum.genieacs.com/t/mongo-error-exceptionname-mongonotconnectederror/4488/3 "2023-11-30T09:08:35Z")

</div>

> [@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…
