QuivrHQ / quivr

Opiniated RAG for integrating GenAI in your apps 🧠 Focus on your product rather than the RAG. Easy integration in existing products with customisation! Any LLM: GPT4, Groq, Llama. Any Vectorstore: PGVector, Faiss. Any Files. Anyway you want.
https://core.quivr.com
Other
36.65k stars 3.58k forks source link

[Bug]: frontend build failed when running with ollama in step "RUN apk add --no-cache libc6-compat python3 make g++" #1949

Closed permanzh closed 10 months ago

permanzh commented 10 months ago

What happened?

using following command to run with ollama

docker compose -f docker-compose-ollama.yml up --build

it 's failed when build frontend image

Relevant log output

[+] Building 11.4s (15/33)
 => [quivr-frontend internal] load build definition from Dockerfile                                                0.0s
 => => transferring dockerfile: 2.75kB                                                                             0.0s
 => [quivr-frontend internal] load .dockerignore                                                                   0.0s
 => => transferring context: 340B                                                                                  0.0s
 => [backend-base internal] load build definition from Dockerfile                                                  0.0s
 => => transferring dockerfile: 1.05kB                                                                             0.0s
 => [backend-base internal] load .dockerignore                                                                     0.0s
 => => transferring context: 185B                                                                                  0.0s
 => [quivr-frontend internal] load metadata for docker.io/library/node:18-alpine                                   1.0s
 => [backend-base internal] load metadata for docker.io/library/python:3.11.6-slim-bullseye                        1.2s
 => CACHED [quivr-frontend base 1/1] FROM docker.io/library/node:18-alpine@sha256:b1a0356f7d6b86c958a06949d3db3f7  0.0s
 => [quivr-frontend internal] load build context                                                                   0.0s
 => => transferring context: 81.73kB                                                                               0.0s
 => CACHED [quivr-frontend builder 1/4] WORKDIR /app                                                               0.0s
 => CACHED [quivr-frontend runner 2/8] RUN addgroup --system --gid 1001 nodejs                                     0.0s
 => CACHED [quivr-frontend runner 3/8] RUN adduser --system --uid 1001 nextjs                                      0.0s
 => ERROR [quivr-frontend deps 1/5] RUN apk add --no-cache libc6-compat python3 make g++                          10.3s
 => [backend-base internal] load build context                                                                     0.0s
 => => transferring context: 17.00kB                                                                               0.0s
 => CACHED [backend-base 1/8] FROM docker.io/library/python:3.11.6-slim-bullseye@sha256:0c1fbb294096d842ad795ee23  0.0s
 => CANCELED [backend-base 2/8] RUN apt-get clean && apt-get update && apt-get install -y     libgeos-dev     li  10.1s
------
 > [quivr-frontend deps 1/5] RUN apk add --no-cache libc6-compat python3 make g++:
#0 0.276 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
#0 5.282 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.19/main: temporary error (try again later)
#0 5.282 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
#0 10.29 WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.19/community: temporary error (try again later)
#0 10.29 ERROR: unable to select packages:
#0 10.29   g++ (no such package):
#0 10.29     required by: world[g++]
#0 10.29   libc6-compat (no such package):
#0 10.29     required by: world[libc6-compat]
#0 10.29   make (no such package):
#0 10.29     required by: world[make]
#0 10.29   python3 (no such package):
#0 10.29     required by: world[python3]
------
failed to solve: process "/bin/sh -c apk add --no-cache libc6-compat python3 make g++" did not complete successfully: exit code: 4

Twitter / LinkedIn details

No response

dosubot[bot] commented 10 months ago

🤖

Hello @permanzh! 👋 I'm Dosu, a friendly bot here to assist you while we wait for a human maintainer to join us. I can help with bug troubleshooting, answering your queries, and guiding you on how to contribute to this project. Let's solve this together! 😊

Based on the error log you've provided, it seems like the Docker build process is unable to fetch the necessary packages from the Alpine Linux repositories. This could be due to a temporary network issue or a problem with the Alpine Linux repositories themselves.

A similar issue was reported in the Quivr repository before (#727). The user in that case was able to resolve the issue by using a VPN to change their network location to the United States. This suggests that the problem might be related to network restrictions or issues specific to certain regions.

If you're in a region where network restrictions might be an issue, you could try using a VPN or a proxy to see if that resolves the problem. Alternatively, you could try building the Docker image at a different time, in case the issue is due to temporary problems with the Alpine Linux repositories.

Regarding the command RUN apk add --no-cache libc6-compat python3 make g++, it's used to install specific packages that the application needs to run properly in the Docker container. You can find more details about this command in the frontend/Dockerfile in the Quivr repository.

If the issue persists, could you please provide more information about your environment? Specifically, the version of Docker you're using, your operating system, and your network configuration might be helpful for further troubleshooting.

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

permanzh commented 10 months ago

set docker daemon.json with correct dns, fixed.