dhermanns / rpi-nightscout

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

Error connecting to MongoDB #14

Closed dassystem closed 4 years ago

dassystem commented 4 years ago

Hi there,

when running a fresh docker-compose up

I get Error connecting to MongoDB: {"name":"MongoNetworkError","errorLabels": "TransientTransactionError"]} - retrying in 3 sec

I'm using a Raspberry Pi 4 - 4GB with…

$ uname -a
Linux pi4 4.19.118-v8+ #1311 SMP PREEMPT Mon Apr 27 14:32:38 BST 2020 aarch64 GNU/Linux

It might have something to do with my v8+ Kernel, which I got after a recent update.

I attach my docker-compose logs docker-ns.log

Do you have any suggestion how to deal with this error? I'm not able to start the application.

dhermanns commented 4 years ago

Hi Adrian,

yes - could be. I'm using:

Linux k2 4.19.57-v7l+ #1244 SMP Thu Jul 4 18:48:07 BST 2019 armv7l GNU/Linux

Am Sa., 18. Juli 2020 um 12:58 Uhr schrieb Adrian Salamon < notifications@github.com>:

Hi there,

when running a fresh docker-compose up

I get Error connecting to MongoDB: {"name":"MongoNetworkError","errorLabels": "TransientTransactionError"]} - retrying in 3 sec

I'm using a Raspberry Pi 4 - 4GB with…

$ uname -a

Linux pi4 4.19.118-v8+ #1311 SMP PREEMPT Mon Apr 27 14:32:38 BST 2020 aarch64 GNU/Linux

It might have something to do with my v8+ Kernel, which I got after a recent update.

I attach my docker-compose logs Uploading docker-ns.log…

Do you have any suggestion how to deal with this error? I'm not able to start the application.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dhermanns/rpi-nightscout/issues/14, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYPBFN7CEFSHRPUEVRUBMTR4F56RANCNFSM4O7YGTVA .

dassystem commented 4 years ago

I did some research: the v8 kernel is a 64bit system and it seems that it does not like the MonogDB container. I was able to switch back to a 32bit kernel via these instructions (but reverse) https://www.sindastra.de/p/1345/switch-your-raspberry-pi-to-64-bit-kernel-raspbian/ .