Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongodb connection issue #8212

Open
JimZam opened this issue Jan 18, 2024 · 6 comments
Open

mongodb connection issue #8212

JimZam opened this issue Jan 18, 2024 · 6 comments

Comments

@JimZam
Copy link

JimZam commented Jan 18, 2024

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
Copy link

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
Copy link
Author

JimZam commented Jan 18, 2024

@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
Copy link

billyjbryant commented Jan 23, 2024

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
Copy link

@billyjbryant which MongoDB container version are you using?

@billyjbryant
Copy link

@psonnera mongo:4.4.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants