QuivrHQ / quivr

Open-source RAG Framework for building GenAI Second Brains 🧠 Build productivity assistant (RAG) ⚡️🤖 Chat with your docs (PDF, CSV, ...) & apps using Langchain, GPT 3.5 / 4 turbo, Private, Anthropic, VertexAI, Ollama, LLMs, Groq that you can share with users ! Efficient retrieval augmented generation framework
https://quivr.com
Other
36.18k stars 3.52k forks source link

[Bug]: ERROR [frontend deps 1/5] RUN apk add --no-cache libc6-dev python3 make g++ #2641

Closed bldzz closed 3 months ago

bldzz commented 3 months ago

What happened?

I'm getting this error after entering "docker compose up"

Relevant log output

[+] Building 0.0s (0/0)  docker:default
[+] Building 7.5s (9/21)                                                                                    docker:default 
 => [frontend internal] load build definition from Dockerfile                                                         0.3s 
 => => transferring dockerfile: 2.98kB                                                                                0.1s 
 => [frontend internal] load metadata for docker.io/library/node:18.19.0-alpine                                       1.2s
 => [frontend internal] load .dockerignore                                                                            0.0s
 => => transferring context: 365B                                                                                     0.0s 
 => [frontend internal] load build context                                                                            0.1s 
 => => transferring context: 66.31kB                                                                                  0.1s 
 => CACHED [frontend base 1/1] FROM docker.io/library/node:18.19.0-alpine@sha256:0085670310d2879621f96a4216c893f92e2  0.0s 
 => CACHED [frontend runner 1/8] WORKDIR /app                                                                         0.0s 
 => CACHED [frontend runner 2/8] RUN addgroup --system --gid 1001 nodejs                                              0.0s 
 => CACHED [frontend runner 3/8] RUN adduser --system --uid 1001 nextjs                                               0.0s
------
 > [frontend deps 1/5] RUN apk add --no-cache libc6-dev python3 make g++:
0.405 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
0.733 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
5.378 ERROR: unable to select packages:
5.378   libc6-dev (no such package):
5.378     required by: world[libc6-dev]
------
failed to solve: process "/bin/sh -c apk add --no-cache libc6-dev python3 make g++" did not complete successfully: exit code: 1
PS C:\Users\z\quivr> docker compose up
[+] Building 3.3s (9/21)                                                                                    docker:default
 => [frontend internal] load build definition from Dockerfile                                                         0.0s
 => => transferring dockerfile: 2.98kB                                                                                0.0s 
 => [frontend internal] load metadata for docker.io/library/node:18.19.0-alpine                                       1.7s 
 => [frontend internal] load .dockerignore                                                                            0.0s
 => => transferring context: 365B                                                                                     0.0s 
 => CACHED [frontend base 1/1] FROM docker.io/library/node:18.19.0-alpine@sha256:0085670310d2879621f96a4216c893f92e2  0.0s 
 => [frontend internal] load build context                                                                            0.1s 
 => => transferring context: 66.31kB                                                                                  0.1s 
 => CACHED [frontend builder 1/4] WORKDIR /app                                                                        0.0s 
 => CACHED [frontend runner 2/8] RUN addgroup --system --gid 1001 nodejs                                              0.0s 
 => CACHED [frontend runner 3/8] RUN adduser --system --uid 1001 nextjs                                               0.0s
------
 > [frontend deps 1/5] RUN apk add --no-cache libc6-dev python3 make g++:
0.454 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
0.769 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
1.378 ERROR: unable to select packages:
1.378   libc6-dev (no such package):
1.378     required by: world[libc6-dev]
------
failed to solve: process "/bin/sh -c apk add --no-cache libc6-dev python3 make g++" did not complete successfully: exit code: 1
PS C:\Users\z\quivr> docker compose up
[+] Building 2.7s (9/21)                                                                                    docker:default
 => [frontend internal] load build definition from Dockerfile                                                         0.0s
 => => transferring dockerfile: 2.98kB                                                                                0.0s 
 => [frontend internal] load metadata for docker.io/library/node:18.19.0-alpine                                       1.1s 
 => [frontend internal] load .dockerignore                                                                            0.0s
 => => transferring context: 365B                                                                                     0.0s 
 => [frontend internal] load build context                                                                            0.1s 
 => => transferring context: 66.31kB                                                                                  0.1s 
 => CACHED [frontend base 1/1] FROM docker.io/library/node:18.19.0-alpine@sha256:0085670310d2879621f96a4216c893f92e2  0.0s 
 => CACHED [frontend builder 1/4] WORKDIR /app                                                                        0.0s 
 => CACHED [frontend runner 2/8] RUN addgroup --system --gid 1001 nodejs                                              0.0s 
 => CACHED [frontend runner 3/8] RUN adduser --system --uid 1001 nextjs                                               0.0s
 => ERROR [frontend deps 1/5] RUN apk add --no-cache libc6-dev python3 make g++                                       1.5s 
------
 > [frontend deps 1/5] RUN apk add --no-cache libc6-dev python3 make g++:
0.462 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
0.813 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
1.359 ERROR: unable to select packages:
1.359   libc6-dev (no such package):
1.359     required by: world[libc6-dev]
------
failed to solve: process "/bin/sh -c apk add --no-cache libc6-dev python3 make g++" did not complete successfully: exit code: 1

Twitter / LinkedIn details

No response

dosubot[bot] commented 3 months ago

Hey there, @bldzz! 👋 I'm here to help you out with any bugs, questions, or contributions. I'll assist you while we wait for a human maintainer.

The error occurs because the libc6-dev package is not available in the Alpine Linux repositories. To resolve this, you should use the libc6-compat package instead. Update your Dockerfile to replace libc6-dev with libc6-compat:

RUN apk add --no-cache libc6-compat python3 make g++

This should resolve the issue as libc6-compat provides the necessary compatibility [1].

To continue talking to Dosu, mention @dosu.