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

docker-compose build with some unexpected errors #52

Open
science-labs-f opened this issue Jan 28, 2023 · 2 comments
Open

docker-compose build with some unexpected errors #52

science-labs-f opened this issue Jan 28, 2023 · 2 comments

Comments

@science-labs-f
Copy link

Hello Roboviewer-team! checking out this tool and trying to install it locally on a mac.

sudo docker-compose build command runs pretty well, but gives following ERRORS.

What is your advice?

=> CACHED [build-stage 2/6] WORKDIR /app 0.0s
=> CACHED [build-stage 3/6] RUN npm update 0.0s
=> CACHED [build-stage 4/6] RUN npm install -g requirejs 0.0s
=> ERROR [build-stage 5/6] COPY ./robotreviewer/static/ static/ 0.0s
=> CACHED [production-stage 2/25] RUN useradd --create-home --home /var/lib/deploy deploy 0.0s
=> CACHED [production-stage 3/25] ADD apt-requirements.txt /tmp/apt-requirements.txt 0.0s
=> CACHED [production-stage 4/25] RUN apt-get -qq update -y 0.0s
=> CACHED [production-stage 5/25] RUN xargs -a /tmp/apt-requirements.txt apt-get install -y --no-install 0.0s
=> CACHED [production-stage 6/25] RUN mkdir -p /etc/pki/tls/certs && ln -s /etc/ssl/certs/ca-certifi 0.0s
=> CACHED [production-stage 7/25] RUN chown -R deploy.deploy /var/lib/deploy/ 0.0s
=> CACHED [production-stage 8/25] RUN aria2c -s 16 -x 16 -k 30M https://repo.continuum.io/miniconda/Mini 0.0s
=> CACHED [production-stage 9/25] RUN cd /var/lib/deploy && bash Anaconda.sh -b && rm -rf Anaconda.sh 0.0s
=> ERROR [production-stage 10/25] ADD robotreviewer_env.yml tmp/robotreviewer_env.yml 0.0s
=> CACHED [production-stage 11/25] RUN conda env create -f tmp/robotreviewer_env.yml 0.0s
=> CACHED [production-stage 12/25] RUN python -m nltk.downloader punkt stopwords 0.0s
=> CACHED [production-stage 13/25] RUN python -m spacy download en 0.0s
=> CACHED [production-stage 14/25] RUN pip install tensorflow==1.12.0 0.0s
=> CACHED [production-stage 15/25] RUN mkdir -p /var/lib/deploy/robotreviewer/data 0.0s
=> ERROR [production-stage 16/25] ADD server.py /var/lib/deploy/ 0.0s
=> ERROR [production-stage 17/25] ADD server_api.py /var/lib/deploy/ 0.0s

@bassoonpelle
Copy link

bassoonpelle commented Mar 17, 2023

Hi @ijmarshall hey people @science-labs-f! I'm facing a similar issue:

With docker-compose build I got an error:

[+] Building 4.4s (22/38)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 79B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 81B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:16.04 1.3s
=> [internal] load metadata for docker.io/library/node:12-alpine 1.4s
=> [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s
=> [auth] library/node:pull token for registry-1.docker.io 0.0s
=> [production-stage 1/25] FROM docker.io/library/ubuntu:16.04@sha256:1 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 28.38kB 0.1s
=> [build-stage 1/6] FROM docker.io/library/node:12-alpine@sha256:d4b15b 0.0s
=> CACHED [build-stage 2/6] WORKDIR /app 0.0s
=> CACHED [build-stage 3/6] RUN npm update 0.0s
=> CACHED [build-stage 4/6] RUN npm install -g requirejs 0.0s
=> CACHED [build-stage 5/6] COPY ./robotreviewer/static/ static/ 0.0s
=> CACHED [build-stage 6/6] RUN r.js -o static/build.js && mv static 0.0s
=> CACHED [production-stage 2/25] RUN useradd --create-home --home /var 0.0s
=> CACHED [production-stage 3/25] ADD apt-requirements.txt /tmp/apt-req 0.0s
=> CACHED [production-stage 4/25] RUN apt-get -qq update -y 0.0s
=> CACHED [production-stage 5/25] RUN xargs -a /tmp/apt-requirements.tx 0.0s
=> CACHED [production-stage 6/25] RUN mkdir -p /etc/pki/tls/certs && 0.0s
=> CACHED [production-stage 7/25] RUN chown -R deploy.deploy /var/lib/d 0.0s
=> CACHED [production-stage 8/25] RUN aria2c -s 16 -x 16 -k 30M https:/ 0.0s
=> ERROR [production-stage 9/25] RUN cd /var/lib/deploy && bash Anacond 2.8s


[production-stage 9/25] RUN cd /var/lib/deploy && bash Anaconda.sh -b && rm -rf Anaconda.sh:
#0 1.364 PREFIX=/var/lib/deploy/miniconda3
#0 2.732 Unpacking payload ...
#0 2.736 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory


failed to solve: executor failed running [/bin/sh -c cd /var/lib/deploy && bash Anaconda.sh -b && rm -rf Anaconda.sh]: exit code: 255

And I've resolved using docker-compose build --platform linux/amd64 -t te-grafana-dashboards-toolchain --no-cache

In the next step with docker-compose up -d, I'm facing the same error as before (but the solution used wasn't helpful).

[+] Running 0/3
⠿ api Warning 2.1s
⠿ celery Warning 2.1s
⠿ web Warning 2.1s
[+] Building 3.4s (22/38)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 79B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 81B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:16.04 2.2s
=> [internal] load metadata for docker.io/library/node:12-alpine 2.0s
=> [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s
=> [auth] library/node:pull token for registry-1.docker.io 0.0s
=> [production-stage 1/25] FROM docker.io/library/ubuntu:16.04@sha256:1 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 28.38kB 0.0s
=> [build-stage 1/6] FROM docker.io/library/node:12-alpine@sha256:d4b15b 0.0s
=> CACHED [build-stage 2/6] WORKDIR /app 0.0s
=> CACHED [build-stage 3/6] RUN npm update 0.0s
=> CACHED [build-stage 4/6] RUN npm install -g requirejs 0.0s
=> CACHED [build-stage 5/6] COPY ./robotreviewer/static/ static/ 0.0s
=> CACHED [build-stage 6/6] RUN r.js -o static/build.js && mv static 0.0s
=> CACHED [production-stage 2/25] RUN useradd --create-home --home /var 0.0s
=> CACHED [production-stage 3/25] ADD apt-requirements.txt /tmp/apt-req 0.0s
=> CACHED [production-stage 4/25] RUN apt-get -qq update -y 0.0s
=> CACHED [production-stage 5/25] RUN xargs -a /tmp/apt-requirements.tx 0.0s
=> CACHED [production-stage 6/25] RUN mkdir -p /etc/pki/tls/certs && 0.0s
=> CACHED [production-stage 7/25] RUN chown -R deploy.deploy /var/lib/d 0.0s
=> CACHED [production-stage 8/25] RUN aria2c -s 16 -x 16 -k 30M https:/ 0.0s
=> ERROR [production-stage 9/25] RUN cd /var/lib/deploy && bash Anacond 1.0s


[production-stage 9/25] RUN cd /var/lib/deploy && bash Anaconda.sh -b && rm -rf Anaconda.sh:
#0 0.489 PREFIX=/var/lib/deploy/miniconda3
#0 1.014 Unpacking payload ...
#0 1.017 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory


failed to solve: executor failed running [/bin/sh -c cd /var/lib/deploy && bash Anaconda.sh -b && rm -rf Anaconda.sh]: exit code: 255

Did you find out a solution that can solve my problem too?
Thank you!

(I'm using a M1 mac)

@renespijker
Copy link

HI @ijmarshall

trying out the docker container but facing similar problems as above.
I'm also using a Mac M1 so the referral to ib64/ld-linux-x86-64 is invalid .
any workaround found for non x86 machines?

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

3 participants