Thanks! That seems much more logical than what I was trying to do, especially 
the simplified version. I’m now running into a different set of errors. When I 
try your config in the provision, my test modems stop responding to refreshes 
and stop their periodic connections. When I look in cwmp.log I see the 
following errors listed:

2018-10-04T19:05:20.694Z [INFO] Worker listening; pid=18214 address="127.0.0.1" 
port=7547
2018-10-04T19:07:51.096Z [ERROR] Uncaught exception; pid=18214 
exceptionName="TypeError" exceptionMessage="Cannot convert undefined or null to 
object" exceptionStack="TypeError: Cannot convert undefined or null to object\n 
   at Function.entries (<anonymous>)\n    at run 
(/home/devin/genieacs/lib/session.js:1006:39)\n    at runProvisions 
(/home/devin/genieacs/lib/session.js:601:5)\n    at Object.rpcRequest 
(/home/devin/genieacs/lib/session.js:975:17)\n    at session.rpcRequest 
(/home/devin/genieacs/lib/cwmp.js:436:17)\n    at rpcRequest 
(/home/devin/genieacs/lib/session.js:1401:29)\n    at err 
(/home/devin/genieacs/lib/session.js:1179:7)\n    at clear 
(/home/devin/genieacs/lib/session.js:2169:48)\n    at rpcRequest 
(/home/devin/genieacs/lib/session.js:1176:17)\n    at err 
(/home/devin/genieacs/lib/session.js:1042:7)"
2018-10-04T19:08:19.492Z [ERROR] Uncaught exception; pid=18214 
exceptionName="MongoError" exceptionMessage="Topology was destroyed" 
exceptionStack="MongoError: Topology was destroyed\n    at nextFunction 
(/home/devin/genieacs/node_modules/mongodb-core/lib/cursor.js:547:27)\n    at 
Cursor.next [as _next] 
(/home/devin/genieacs/node_modules/mongodb-core/lib/cursor.js:701:3)\n    at 
nextObject (/home/devin/genieacs/node_modules/mongodb/lib/cursor.js:680:8)\n    
at Cursor.next 
(/home/devin/genieacs/node_modules/mongodb/lib/cursor.js:270:12)\n    at 
findOne (/home/devin/genieacs/node_modules/mongodb/lib/collection.js:1414:10)\n 
   at Collection.findOne 
(/home/devin/genieacs/node_modules/mongodb/lib/collection.js:1400:44)\n    at 
Object.mongoGet [as get] (/home/devin/genieacs/lib/cache.js:162:21)\n    at 
Timeout.setTimeout (/home/devin/genieacs/lib/cwmp.js:798:13)\n    at ontimeout 
(timers.js:498:11)\n    at Timer.unrefdHandle (timers.js:611:5)"
2018-10-04T19:08:19.927Z [ERROR] Uncaught exception; pid=18214 
exceptionName="MongoError" exceptionMessage="Topology was destroyed" 
exceptionStack="MongoError: Topology was destroyed\n    at nextFunction 
(/home/devin/genieacs/node_modules/mongodb-core/lib/cursor.js:547:27)\n    at 
Cursor.next [as _next] 
(/home/devin/genieacs/node_modules/mongodb-core/lib/cursor.js:701:3)\n    at 
nextObject (/home/devin/genieacs/node_modules/mongodb/lib/cursor.js:680:8)\n    
at Cursor.next 
(/home/devin/genieacs/node_modules/mongodb/lib/cursor.js:270:12)\n    at 
findOne (/home/devin/genieacs/node_modules/mongodb/lib/collection.js:1414:10)\n 
   at Collection.findOne 
(/home/devin/genieacs/node_modules/mongodb/lib/collection.js:1400:44)\n    at 
Object.mongoGet [as get] (/home/devin/genieacs/lib/cache.js:162:21)\n    at 
Timeout.setTimeout (/home/devin/genieacs/lib/cwmp.js:798:13)\n    at ontimeout 
(timers.js:498:11)\n    at Timer.unrefdHandle (timers.js:611:5)"
2018-10-04T19:08:20.482Z [ERROR] Uncaught exception; pid=18214 
exceptionName="MongoError" exceptionMessage="Topology was destroyed" 
exceptionStack="MongoError: Topology was destroyed\n    at nextFunction 
(/home/devin/genieacs/node_modules/mongodb-core/lib/cursor.js:547:27)\n    at 
Cursor.next [as _next] 
(/home/devin/genieacs/node_modules/mongodb-core/lib/cursor.js:701:3)\n    at 
nextObject (/home/devin/genieacs/node_modules/mongodb/lib/cursor.js:680:8)\n    
at Cursor.next 
(/home/devin/genieacs/node_modules/mongodb/lib/cursor.js:270:12)\n    at 
findOne (/home/devin/genieacs/node_modules/mongodb/lib/collection.js:1414:10)\n 
   at Collection.findOne 
(/home/devin/genieacs/node_modules/mongodb/lib/collection.js:1400:44)\n    at 
Object.mongoGet [as get] (/home/devin/genieacs/lib/cache.js:162:21)\n    at 
Timeout.setTimeout (/home/devin/genieacs/lib/cwmp.js:798:13)\n    at ontimeout 
(timers.js:498:11)\n    at Timer.unrefdHandle (timers.js:611:5)"
2018-10-04T19:08:21.102Z [ERROR] Worker died; pid=18214 exitCode=1
2018-10-04T19:08:21.320Z [INFO] Worker listening; pid=18542 address="127.0.0.1" 
port=7547


Any ideas?

Thanks,
Devin
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to