Jump to content

MongoError loading node servers


cw1400
Go to solution Solved by cw1400,

Recommended Posts

Posted

Somehow my Polisy is in a state where no node servers are listed on the dashboard, yet they show as installed on the store page and if I try to a new server in one of the slots I get a "please fill in all fields" error. 

I see this error in the polyglot logs:

5/9/2022, 18:57:23 [polyglot] info: MQTTS: polyglot authenticated successfully.
5/9/2022, 18:57:23 [polyglot] info: MQTTS: Client Connected:
5/9/2022, 18:57:23 [polyglot] error: loadNodeServers: MongoError: connection 2 to localhost:27017 closed
    at Function.create (/snapshot/polyglot-v2/node_modules/mongodb-core/lib/error.js:29:11)
    at Socket.<anonymous> (/snapshot/polyglot-v2/node_modules/mongodb-core/lib/connection/connection.js:214:22)
    at Object.onceWrapper (events.js:422:26)
    at Socket.emit (events.js:315:20)
    at TCP.<anonymous> (net.js:674:12)
5/9/2022, 18:57:23 [polyglot] info: MQTTS: polyglot_frontend-I4JuY authenticated successfully.

I tried reseting the polisy using the pinhole button on the front. I wait until three lights are visible and then it resets. However, when I log back in, all the broken configuration is still there. I tried using ssh to upgrade versions hoping that would overwrite anything missing, but that didn't work. Same issues withe missing node servers.

Is there any way to overwrite everything with the original image? 

 

Posted

@cw1400 I'd open a ticket with UDI. I suspect you are up against a UDX bug. You can try the following first if you like.

SSH to the Polisy then...

sudo pkg update && sudo pkg upgrade

sudo service udx restart

sudo service isy restart

If you have a backup of the configuration, you can load it now.

  • Like 1
Posted

i tried the steps above and four or five packages were updated, but still no luck. I'll open a ticket. Thanks for the help! Chris

  • Solution
Posted (edited)

Michael was quick and helped me solve the problem.  Turned out the mongo db was corrupt. 

Solution was to run via ssh: 

sudo su -m mongodb -c "mongod --repair --dbpath /var/db/mongodb"

sudo service mongod start

sudo service polyglot restart

sudo service udx restart

sudo service isy restart

Edited by cw1400
  • Like 5
Guest
This topic is now closed to further replies.

×
×
  • Create New...