quivr icon indicating copy to clipboard operation
quivr copied to clipboard

Installation Problem

Open G-linch opened this issue 1 year ago • 2 comments

I installed step by step according to the steps until docker compose build. It prompted "=> CANCELED [5/6] RUN yarn install 240.2s. failed to solve: process "/bin/sh -c pip install --no-cache-dir --upgrade -r /code/requirements.txt --timeout 100" did not complete successfully: exit code: 2". I don't know what happened. Does anyone know?

G-linch avatar May 25 '23 06:05 G-linch

How is your connection speed ?

StanGirard avatar May 25 '23 08:05 StanGirard

How is your connection speed ? I checked it out, I don't think it's related to speed, it's not a timeout issue. Do you have any suggestions?Here is the complete error message: => ERROR [5/6] RUN yarn install 313.6s


[5/6] RUN yarn install: #0 0.897 yarn install v1.22.19 #0 0.935 info No lockfile found. #0 0.944 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [+] Building 318.8s (8/9) => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build definition from Doc 0.0s => => transferring dockerfile: 306B 0.0s => [internal] load metadata for docker.io/li 2.8s => [internal] load build context 0.0s => => transferring context: 796B 0.0s => [1/5] FROM docker.io/library/python:3.11@ 0.0s => CACHED [2/5] WORKDIR /code 0.0s: => CACHED [3/5] COPY ./requirements.txt /cod 0.0sO => CANCELED [4/5] RUN pip install --no-cac 316.0s failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1

G-linch avatar May 25 '23 09:05 G-linch

Same issue here on M1 Max Mac OS.

 => [ 1/10] FROM docker.io/library/node:18-alpine@sha256: xyz                            0.0s
 => [internal] load build context                                                                                                                     0.0s
 => => transferring context: 6.99kB                                                                                                                   0.0s
 => CACHED [ 2/10] RUN apk add --update --no-cache python3 make g++ && ln -sf python3 /usr/bin/python                                                 0.0s
 => CACHED [ 3/10] RUN python3 -m ensurepip                                                                                                           0.0s
 => CACHED [ 4/10] RUN pip3 install --no-cache --upgrade pip setuptools                                                                               0.0s
 => CACHED [ 5/10] RUN mkdir -p /app                                                                                                                  0.0s
 => CACHED [ 6/10] WORKDIR /app                                                                                                                       0.0s
[+] Building 78.5s (10/11)                                                                                                                                 
 => [internal] load .dockerignore                                                                                                                     0.0s
 => => transferring context: 2B                                                                                                                       0.0s
 => [internal] load build definition from Dockerfile                                                                                                  0.0s
 => => transferring dockerfile: 379B                                                                                                                  0.0s 
 => [internal] load metadata for docker.io/library/python:3.11-buster                                                                                 1.2s 
 => [auth] library/python:pull token for registry-1.docker.io                                                                                         0.0s 
 => [1/6] FROM docker.io/library/python:3.11-buster@sha256:xyz                           0.0s 
 => [internal] load build context                                                                                                                     0.0s 
 => => transferring context: 1.20kB                                                                                                                   0.0s 
 => CACHED [2/6] RUN apt-get update && apt-get install -y libgeos-dev                                                                                 0.0s
 => CACHED [3/6] WORKDIR /code                                                                                                                        0.0s
 => CACHED [4/6] COPY ./requirements.txt /code/requirements.txt                                                                                       0.0s
 => CANCELED [5/6] RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt --timeout 100                                                  77.5s
failed to solve: process "/bin/sh -c yarn build" did not complete successfully: exit code: 1     

I re-ran the command several times and it eventually worked.

sam1am avatar Jun 05 '23 21:06 sam1am