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

[Bug]: Exception thrown on startup #2007

Closed
xzy66s opened this issue Jan 11, 2024 · 2 comments
Closed

[Bug]: Exception thrown on startup #2007

xzy66s opened this issue Jan 11, 2024 · 2 comments
Labels
area: backend Related to backend functionality or under the /backend directory bug Something isn't working Stale type: dependencies

Comments

@xzy66s
Copy link

xzy66s commented Jan 11, 2024

What happened?

Executing docker compose up --build throws an exception. why?

Relevant log output

root@test-virtual-machine:/home/test/quivr-0.0.161# docker compose up --build
[+] Building 4.9s (12/28)                                                                                                                                         docker:default
 => [worker internal] load build definition from Dockerfile                                                                                                                 0.0s
 => => transferring dockerfile: 1.12kB                                                                                                                                      0.0s
 => [worker internal] load .dockerignore                                                                                                                                    0.0s
 => => transferring context: 185B                                                                                                                                           0.0s
 => [worker internal] load metadata for docker.io/library/python:3.11.6-slim-bullseye@sha256:0c1fbb294096d842ad795ee232d783cab436c90b034210fe894f2bb2f2be7626               2.5s
 => [backend-core internal] load build definition from Dockerfile                                                                                                           0.0s
 => => transferring dockerfile: 1.12kB                                                                                                                                      0.0s
 => [backend-core internal] load .dockerignore                                                                                                                              0.0s
 => => transferring context: 185B                                                                                                                                           0.0s
 => [beat internal] load build definition from Dockerfile                                                                                                                   0.0s
 => => transferring dockerfile: 1.12kB                                                                                                                                      0.0s
 => [beat internal] load .dockerignore                                                                                                                                      0.0s
 => => transferring context: 185B                                                                                                                                           0.0s
 => CACHED [worker 1/8] FROM docker.io/library/python:3.11.6-slim-bullseye@sha256:0c1fbb294096d842ad795ee232d783cab436c90b034210fe894f2bb2f2be7626                          0.0s
 => [backend-core internal] load build context                                                                                                                              0.1s
 => => transferring context: 16.97kB                                                                                                                                        0.0s
 => [beat internal] load build context                                                                                                                                      0.1s
 => => transferring context: 16.97kB                                                                                                                                        0.1s
 => [worker internal] load build context                                                                                                                                    0.1s
 => => transferring context: 16.97kB                                                                                                                                        0.1s
 => ERROR [backend-core 2/8] RUN apt-get clean && apt-get update && apt-get install -y     libgeos-dev     libcurl4-openssl-dev     libssl-dev     binutils     pandoc      2.4s
------                                                                                                                                                                           
 > [backend-core 2/8] RUN apt-get clean && apt-get update && apt-get install -y     libgeos-dev     libcurl4-openssl-dev     libssl-dev     binutils     pandoc     curl     git     poppler-utils     tesseract-ocr     build-essential &&     rm -rf /var/lib/apt/lists/* && apt-get clean:                                                                     
1.825 Err:1 http://deb.debian.org/debian bullseye InRelease                                                                                                                      
1.825   Connection failed [IP: 146.75.114.132 80]                                                                                                                                
2.075 Err:2 http://deb.debian.org/debian-security bullseye-security InRelease                                                                                                    
2.075   Connection failed [IP: 146.75.114.132 80]
2.332 Err:3 http://deb.debian.org/debian bullseye-updates InRelease
2.332   Connection failed [IP: 146.75.114.132 80]
2.336 Reading package lists...
2.347 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease  Connection failed [IP: 146.75.114.132 80]
2.347 W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease  Connection failed [IP: 146.75.114.132 80]
2.347 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease  Connection failed [IP: 146.75.114.132 80]
2.347 W: Some index files failed to download. They have been ignored, or old ones used instead.
2.357 Reading package lists...
2.367 Building dependency tree...
2.368 Reading state information...
2.370 E: Unable to locate package libgeos-dev
2.370 E: Unable to locate package libcurl4-openssl-dev
2.370 E: Unable to locate package libssl-dev
2.370 E: Unable to locate package binutils
2.370 E: Unable to locate package pandoc
2.370 E: Unable to locate package curl
2.370 E: Unable to locate package git
2.370 E: Unable to locate package poppler-utils
2.370 E: Unable to locate package tesseract-ocr
2.370 E: Unable to locate package build-essential
------
failed to solve: process "/bin/sh -c apt-get clean && apt-get update && apt-get install -y     libgeos-dev     libcurl4-openssl-dev     libssl-dev     binutils     pandoc     curl     git     poppler-utils     tesseract-ocr     build-essential &&     rm -rf /var/lib/apt/lists/* && apt-get clean" did not complete successfully: exit code: 100

Twitter / LinkedIn details

No response

@xzy66s xzy66s added the bug Something isn't working label Jan 11, 2024
Copy link

dosubot bot commented Jan 11, 2024

🤖

Hello @xzy66s! I'm Dosu, a friendly bot assisting with the Quivr repository. I help troubleshoot bugs, answer questions, and guide contributors. While we wait for a human maintainer to join us, I'm here to assist you. Let's get that bug squashed, shall we?

The error you're encountering seems to be related to the Docker build process not being able to fetch the necessary packages from the Debian repositories. This could be due to a network issue or a problem with the Debian repositories themselves.

Here are a few steps you can try to resolve this issue:

  1. Check your network connection: Ensure that your machine has a stable internet connection and can reach the Debian repositories. You can test this by running ping deb.debian.org in your terminal.

  2. Try a different mirror: If your machine can reach the internet but still can't fetch the packages, it's possible that there's an issue with the Debian mirror you're using. You can try changing to a different mirror by editing your /etc/apt/sources.list file. Here's a list of Debian mirrors you can use.

  3. Update your Dockerfile: If the above steps don't work, you can try updating your Dockerfile to use a different base image that includes the necessary packages. For example, you could use a base image like python:3.11.6-buster which is based on an older version of Debian, but might not have the same issues fetching packages.

If none of these steps work, please provide more information about your environment (e.g., operating system, Docker version, network setup) so we can help troubleshoot further.

Regarding the similar issues found in the Quivr repository, they seem to be related to different problems:

  • The Error with Docker compose for backend issue suggests changing line endings from CRLF to LF for the backend/scripts/start.sh file and rebuilding the Docker image. This doesn't seem to be related to your issue as the error message you're seeing is different.

  • The /bin/sh -c pip install --no-cache-dir -r /code/requirements.txt --timeout 100 issue suggests manually installing the libraries listed in the requirements.txt file one by one. This could potentially help if the problem is related to specific packages, but your error message suggests that the issue is with fetching packages in general, not specific ones.

  • The Installation issue issue suggests using the same keys in both front and back-ends .env files. This doesn't seem to be related to your issue as it's about environment configuration, not package fetching.

I hope this helps! Let me know if you have any other questions or if there's anything else I can do to assist you.

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.

@dosubot dosubot bot added area: backend Related to backend functionality or under the /backend directory type: dependencies labels Jan 11, 2024
Copy link
Contributor

Thanks for your contributions, we'll be closing this issue as it has gone stale. Feel free to reopen if you'd like to continue the discussion.

@github-actions github-actions bot added the Stale label Apr 11, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend Related to backend functionality or under the /backend directory bug Something isn't working Stale type: dependencies
Projects
None yet
Development

No branches or pull requests

1 participant