dhermanns / rpi-nightscout

CGM Remote Monitor aka Nightscout for the Raspberry Pi 1/2.
35 stars 49 forks source link

After reboot rpinightscout_mongo_1 keeps restarting #9

Closed harmen91 closed 5 years ago

harmen91 commented 5 years ago

Hi dhermanns,

rpinightscout_mongo_1 keeps restarting

Everything works fine on the first install, but after a reboot nightscout is unable to connect to the database it seems

docker ps: Restarting (100) 46 seconds ago rpinightscout_mongo_1

Thanks for your amazing work btw

dhermanns commented 5 years ago

Hi harmen,

this seems to happen if the mongo-db doesn't gets stopped nicely. I had this e.g. when there was an power outage.

My dumb and easy solution was to remove the mongo-db container. Something like

docker stop docker rm docker-compose up -d

But you will loose your data inside your MongoDB when doing so. Sure there will be a better way to repair the MongoDB, but I did no research how this could be done.

Maybe some mongodb expert can help here.

Hope this helps.

harmen91 commented 5 years ago

Allright thanks for the reply. That method seems to work for now.

dhermanns commented 5 years ago

Great - and merry xmas!

harmen91 commented 5 years ago

Thanks you 2