dhermanns / rpi-nightscout

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

Docker-Cmpose #35

Open Harrypatz opened 1 year ago

Harrypatz commented 1 year ago

Hello, I'm not really good in Linux, I have a Pi 3, they ran Nightscout in the 32 bit version years ago. I then disabled it by unplugging it, and I can't get it to work anymore, now that we only use local profiles in aaps I only need Nightscout for my M5Stacks. So I want to run it on a Raspberry. I wrote the Hypriot 64 image to the SD and then went through the individual instructions with no error messages. After entering: docker-compose up -d this error message came up: /usr/local/bin/docker-compose: line 1: Not: command not found When checking with ls -l, you saw that the docker-compose file is very small, and when you read it, the first line only says: not found.

image

dhermanns commented 1 year ago

Looks like your docker-compose installation is not working as expected. I would try to reinstall it.

Maybe you can check my k3s documentation here:

https://h3rmanns.medium.com/creating-a-k3s-raspberry-pi-cluster-with-k3sup-to-fire-up-a-nightscout-backend-service-based-on-a-27c1f5727e5b

That is the recommended way to use the docker image in production.

Harrypatz commented 1 year ago

Hello, Thank you for the fast answer. I've reinstalled it several times. If I set up the 32 bit version (armv7), the docker compose works and is also larger, there are only the problems with mongo. With the 64bit it doesn't seem to find the docker compose and therefore creates an empty one with the note not found.

I looked at the k3s documentation but firstly I didn't want to use 2 Pi's and secondly I don't have a Mac, I work on Windows.

Greeting Harry

dhermanns commented 1 year ago

The second pi is optional.

Harrypatz commented 1 year ago

But then there still remains the problem with the Mac, so that I cannot install the required programs that are installed on the Mac.

Can you do that with this statement : "curl -L https://github.com/hypriot/compose/releases/download/1.2.0-raspbian/docker-compose-`uname -s-uname -m` > /usr/local/bin/docker -compose" download and install the downloaded file differently?

Sorry for my English, it's through a translator

dhermanns commented 1 year ago

The Hypriot Image and the docker compose you are trying to install is pretty old. I would switch to the official raspberry 64bit Image and install a current docker compose.

dhermanns commented 1 year ago

My documentation here is for 32bit only. I should update this to 64bit. Maybe I find some time later on to update it.

Harrypatz commented 1 year ago

Das Hypriot-Image und die Docker-Komposition, die Sie installieren möchten, sind ziemlich alt. Ich würde zum offiziellen Raspberry 64bit Image wechseln und ein aktuelles Docker komponieren.

Thanks, Already installed the official Pi OS, then installed Docker, then went through their instructions with the same error.

so now i have to get ur work, have a nice day

Harrypatz commented 1 year ago

Me again, after I didn't get any further here with different variants, I googled a bit. I found a page where it was described for Pi 4 with Ubuntu 64bit. Then I proceeded with my Pi 3 and used the original Raspberry Pi OS 64, and it worked the first time. My Nightscout is running now.

Thank you for your work here and your effort. Greeting Harry

dhermanns commented 1 year ago

Great. You can leave the link to the docs here. Maybe it could help someone else, too.

Harrypatz commented 1 year ago

Okay, I'll do it, didn't know if it was in your interest. I create an image of the SD card and then I will deal with https, if I shoot something I have an image again.

https://toastbrot.org/2021/03/04/nightscout-installation-auf-einem-raspberry-pi-4/

Making it available from the Internet also worked in a very short time.