Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Error when using docker-compose up -d #23

Open
aguadopd opened this issue Mar 30, 2017 · 0 comments
Open

Error when using docker-compose up -d #23

aguadopd opened this issue Mar 30, 2017 · 0 comments

Comments

@aguadopd
Copy link

I'm running OpenAg brain on a Raspberry Pi 2 with Raspbian Jesse. I've been following the guides in the wiki.

It used to work some months ago. Today I wanted to run it again and, just in case, I updated with sudo apt-get update and sudo apt-get upgrade. After that, I pulled on the repo and ran sh install_docker.sh and docker-compose up -d.

The brain is now not working:

pi@raspberrypi:~/openag_brain_docker_rpi $ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
5e1135b95f31        openag/rpi_brain    "./rep.sh ~/catkin_ws"   22 minutes ago      Up 4 seconds        5000/tcp                 openagbraindockerrpi_brain_1
70ae12f1ab91        dogi/rpi-couchdb    "/entrypoint.sh couch"   22 minutes ago      Up 5 seconds        0.0.0.0:5984->5984/tcp   openagbraindockerrpi_db_1

pi@raspberrypi:~/openag_brain_docker_rpi $ docker logs 
5e1135b95f31d84b412320e74877a126a944555651b3dd40463945573a056531
70ae12f1ab91462f28ed9c575809236a54a5c2250b9cf45b5c53231ed0b4c463
openagbraindockerrpi_brain_1
openagbraindockerrpi_db_1


docker logs -f openagbraindockerrpi_brain_1
usage: main [-h] [-A API_SERVER] [-D DB_SERVER] [-f FIXTURES]
            [-F FIXTURE_PATHS] [--screen]
main: error: unrecognized arguments: personal_food_computer_v2.launch

I tried getting into the container but could not:

docker exec -it openagbraindockerrpi_brain_1 bash
Error response from daemon: Container 5e1135b95f31d84b412320e74877a126a944555651b3dd40463945573a056531 is restarting, wait until the container is running

docker exec openagbraindockerrpi_brain_1 rosrun openag_brain load_fixture default
Error response from daemon: Container 5e1135b95f31d84b412320e74877a126a944555651b3dd40463945573a056531 is restarting, wait until the container is running

I ran docker images and saw that the rpi_brain image was created 24 months ago, and this seemed suspicious. So I removed the images. Shouldn't sh install_docker.sh update everything?

pi@raspberrypi:~/openag_brain_docker_rpi $ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
openag/rpi_brain    latest              40926fcbe0f0        3 months ago        1.289 GB
dogi/rpi-couchdb    latest              9d5f8c7d3197        24 months ago       180.2 MB

pi@raspberrypi:~/openag_brain_docker_rpi $ docker rmi openag/rpi_brain
Error response from daemon: conflict: unable to remove repository reference "openag/rpi_brain" (must force) - container 5e1135b95f31 is using its referenced image 40926fcbe0f0

pi@raspberrypi:~/openag_brain_docker_rpi $ docker rmi --force openag/rpi_brain
Untagged: openag/rpi_brain:latest
Deleted: sha256:40926fcbe0f081dc0efd6eb3b6fccccfe7dd0d87cd6524cc6077c84db18d0470

pi@raspberrypi:~/openag_brain_docker_rpi $ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
dogi/rpi-couchdb    latest              9d5f8c7d3197        24 months ago       180.2 MB

pi@raspberrypi:~/openag_brain_docker_rpi $ docker rmi --force dogi/rpi-couchdb
Untagged: dogi/rpi-couchdb:latest
Deleted: sha256:9d5f8c7d31975cdd1069fea43e25eb9317b9432d0b5b88272a81900758b065b9
pi@raspberrypi:~/openag_brain_docker_rpi $ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
pi@raspberrypi:~/openag_brain_docker_rpi $ 

Then I ran again all the commands, but have new error:

pi@raspberrypi:~/openag_brain_docker_rpi $ docker-compose up -d
Pulling db (dogi/rpi-couchdb:latest)...
latest: Pulling from dogi/rpi-couchdb
c066fa7fbbaa: Already exists
a3ed95caeb02: Already exists
88f4a0792111: Already exists
8a257955bed8: Already exists
02ae6de0fa9a: Already exists
20d773a3a0b7: Already exists
8bfd02335ca9: Already exists
1d4e897765fa: Already exists
53dff47b29a9: Already exists
5ee827101ef1: Already exists
623f2ab5e738: Already exists
77d88c73d744: Already exists
7a6f320126b3: Already exists
32ba8a9067b2: Already exists
db6df28ea80a: Already exists
Digest: sha256:b10941e6ed43f08b2aca68ca9116f4604543e2b10d6e8247be6429e5f57ee7b8
Status: Downloaded newer image for dogi/rpi-couchdb:latest
Pulling brain (openag/rpi_brain:latest)...
latest: Pulling from openag/rpi_brain
1e5a7ff64ceb: Pull complete
c8fc2d788b6c: Pull complete
1251617e2783: Pull complete
613ecdeb4270: Pull complete
a3ed95caeb02: Pull complete
24ce135364d4: Pull complete
8ba14682e168: Pull complete
0a4563018884: Pull complete
df38f47ae5c5: Pull complete
a17c508f6d23: Pull complete
e23bef45f6ae: Pull complete
655c0db17373: Pull complete
439f7a0f9057: Pull complete
255cc76ee930: Pull complete
e32280e7a156: Pull complete
539e368a9e21: Pull complete
c186df0fd1ff: Pull complete
d7349f5628db: Pull complete
81c295447f02: Pull complete
92669e3ce334: Pull complete
2b995694126d: Pull complete
Digest: sha256:2f131928864ff7f4372d402e3d4d35166b36a7b755e21c51f700c02cd4319b08
Status: Downloaded newer image for openag/rpi_brain:latest
Starting openagbraindockerrpi_db_1
Recreating openagbraindockerrpi_brain_1

ERROR: for brain  No such image: sha256:40926fcbe0f081dc0efd6eb3b6fccccfe7dd0d87cd6524cc6077c84db18d0470
ERROR: Encountered errors while bringing up the project.

However, I can do docker-compose start and it works, but I still get the main: error: unrecognized arguments: personal_food_computer_v2.launch error. Note: there is no clean openagbraindockerrpi_brain_1 container, but a 5e1135b95f31_5e1135b95f31_5e1135b95f31_5e1135b95f31_openagbraindockerrpi_brain_1 instead

Any hints on this? If no clues, how can I clean everything and start again, besides flashing the SD?

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

No branches or pull requests

1 participant