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

Connection to database failed! Exitcode 132 MongoDB #24

Open
zwugel opened this issue Mar 1, 2021 · 6 comments
Open

Connection to database failed! Exitcode 132 MongoDB #24

zwugel opened this issue Mar 1, 2021 · 6 comments

Comments

@zwugel
Copy link

zwugel commented Mar 1, 2021

Hi, when i run "sudo docker-compose up" i get two errors.

"automated-irrigation-system_mongodb_1 exited with code 132"
"Connection to database failed!"
database

I try to run it on a Raspberry PI Zero W with Raspberry Pi OS Lite - Kernel version: 5.4
cpuinfo

Here is my Docker-Compose.
docker-compose

I build it with these steps:

curl -sSL https://get.docker.com | sh
sudo usermod -aG docker pi
sudo apt-get install -y libffi-dev libssl-dev
sudo apt-get install -y python3 python3-pip
sudo apt-get remove python-configparser
sudo pip3 install docker-compose
sudo apt install git
git clone https://github.com/PatrickHallek/automated-irrigation-system
cd automated-irrigation-system
sudo nano docker-compose.yml  #change ip adress
sudo nano Dockerfile #change from issue https://github.com/PatrickHallek/automated-irrigation-system/issues/14#issuecomment-656077450
cd Backend 
sudo nano Dockerfile #change from issue https://github.com/PatrickHallek/automated-irrigation-system/issues/14#issuecomment-656077450
sudo docker-compose up

Thanks

@PatrickHallek
Copy link
Owner

PatrickHallek commented Mar 2, 2021

The MongoDB image only works with the ARMv7 processor as I mentioned in the readme.
You could search for an ARMv6 compatible mongo db image and update it in the docker file.

@zwugel
Copy link
Author

zwugel commented Mar 2, 2021

hmm ok... you wrote here thats only running with ARMv6.
I searched a lot, but i dont find any mongo image for ARMv6.
So if i get it right, now its only run with ARMv7 not with Pi Zero W anymore?

@PatrickHallek
Copy link
Owner

Oh, you are right, I have read wrong. The image should work on your ARMv6. Is the mongoDB container up and running? Is there any terminal output for the database? Can you pleas check the data base container status via docker ps or docker ps -a

@zwugel
Copy link
Author

zwugel commented Mar 3, 2021

docker

@Rus112233
Copy link

Hi, when i run "sudo docker-compose up" i get two errors.

"automated-irrigation-system_mongodb_1 exited with code 132"
"Connection to database failed!"
database

I try to run it on a Raspberry PI Zero W with Raspberry Pi OS Lite - Kernel version: 5.4
cpuinfo

Here is my Docker-Compose.
docker-compose

I build it with these steps:

curl -sSL https://get.docker.com | sh
sudo usermod -aG docker pi
sudo apt-get install -y libffi-dev libssl-dev
sudo apt-get install -y python3 python3-pip
sudo apt-get remove python-configparser
sudo pip3 install docker-compose
sudo apt install git
git clone https://github.com/PatrickHallek/automated-irrigation-system
cd automated-irrigation-system
sudo nano docker-compose.yml  #change ip adress
sudo nano Dockerfile #change from issue https://github.com/PatrickHallek/automated-irrigation-system/issues/14#issuecomment-656077450
cd Backend 
sudo nano Dockerfile #change from issue https://github.com/PatrickHallek/automated-irrigation-system/issues/14#issuecomment-656077450
sudo docker-compose up

Thanks

I am also getting the same issue as mentioned by @zwugel
I also followed the same steps and since i am currently new to this i cant seem to figure it out .

@gardealra
Copy link

gardealra commented Jun 14, 2021

Oh, you are right, I have read wrong. The image should work on your ARMv6. Is the mongoDB container up and running? Is there any terminal output for the database? Can you pleas check the data base container status via docker ps or docker ps -a

Hello Patrick,
I just found the docker image and according to this docker image: this is for ARMv7 which probably is resulting this to fail. I am also having the same problem as @Rus112233 and @zwugel . I manage to run the project manualy and without problems, but of course it would be nice to have this docker running instead. I am kind of lost also here since I am new to docker. Is there a way to use a different image thant the one from ivanmarban ?

Greetings!

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

4 participants