Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MongoError loading node servers

Featured Replies

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? 

 

Solved by cw1400

Go to solution

@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.

  • Author

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

  • Author
  • Solution

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

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.