nightscout / cgm-remote-monitor

nightscout web monitor
GNU Affero General Public License v3.0
2.36k stars 71.35k forks source link

mongodb connection issue #8212

Open JimZam opened 5 months ago

JimZam commented 5 months ago

Good morning. My Nightscout in Fly was working yesterday but today I get the following error. How can I solve it? Thank you in advance Kind regards

Oops - Nightscout is having trouble

Don't panic, we can work this out! This happens to the best of us.

Check the errors below and then refer to the troubleshooting documentation. Errors occurred during startup:

Unable to connect to Mongo MONGODB_URI seems invalid: connect ECONNREFUSED 3.224.32.###:27017

psonnera commented 5 months ago

Did you try to restart your app? https://nightscout.github.io/troubleshoot/fly.io/#restart-your-app anything obvious when you look at your database in MongoDB?

JimZam commented 5 months ago

@psonnera It worked!! I've spent all the morning trying to figure out what was happening (absolute noob here, just copy and paste...). Thank you so much psonnera

billyjbryant commented 5 months ago

This happens to me on a daily basis (at roughly 3~4am) while running Nightscout on a container, is there something that happens routinely within Nightscout that would cause this? I am not seeing any logs on the Mongodb container or my docker host that give any indication of an error or issue that would cause this lack of communication and it takes nothing more than recycling the Nightscout container to restore connectivity.

psonnera commented 5 months ago

@billyjbryant which MongoDB container version are you using?

billyjbryant commented 5 months ago

@psonnera mongo:4.4.18

psonnera commented 5 months ago

@billyjbryant do you use logging purging? https://github.com/nightscout/nightscout.github.io/blob/944b213970bed25226a3149c48a2395d09ab41c9/docs/_static/docker-compose.yml#L3