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]: Error response from daemon: No such image: backend-base:latest #2885

Open
Techno-Trek opened this issue Jul 20, 2024 · 12 comments
Open
Labels
area: backend Related to backend functionality or under the /backend directory bug Something isn't working

Comments

@Techno-Trek
Copy link

What happened?

After the last update I can no longer start building the quivr docker images.
The error is presented when executing the "docker compose up" command

System: Ubuntu Server 24.04 LTS

Relevant log output

=> [frontend runner 7/8] COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./                                              0.5s
 => [frontend runner 8/8] COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static                                      0.0s
 => [frontend] exporting to image                                                                                                         0.3s
 => => exporting layers                                                                                                                   0.3s
 => => writing image sha256:fb07fbe90db961d2f09f593f666debf18b5eb03e7793b0728a2c6d5e1271d7bc                                              0.0s
 => => naming to docker.io/library/quivr-frontend-prebuilt                                                                                0.0s
[+] Running 6/3
 ✔ Network quivr_default   Created                                                                                                        0.1s
 ✔ Container redis         Created                                                                                                        0.0s
 ✔ Container backend-core  Created                                                                                                        0.0s
 ✔ Container web           Created                                                                                                        0.0s
 ✔ Container worker        Created                                                                                                        0.0s
 ✔ Container beat          Created                                                                                                        0.0s
 ⠋ Container notifier      Creating                                                                                                       0.0s
 ⠋ Container flower        Creating                                                                                                       0.0s
Error response from daemon: No such image: backend-base:latest

Twitter / LinkedIn details

No response

@Techno-Trek Techno-Trek added the bug Something isn't working label Jul 20, 2024
Copy link

linear bot commented Jul 20, 2024

@dosubot dosubot bot added the area: backend Related to backend functionality or under the /backend directory label Jul 20, 2024
Copy link

dosubot bot commented Jul 20, 2024

To resolve the issue where the "docker compose up" command fails with the error "No such image: backend-base:latest" on your Ubuntu Server 24.04 LTS system, you need to ensure that the backend-base:latest image is available locally or can be built from the provided Dockerfile.

You can force the build process by running the following command:

docker compose up --build

This command will build the backend-base:latest image from the Dockerfile specified in the backend-core service configuration and then start the services.

Here is the relevant part of the docker-compose.dev.yml file that specifies the build context and Dockerfile:

services:
  backend-core:
    image: backend-base:latest
    build:
      context: backend
      dockerfile: Dockerfile.dev

By running docker compose up --build, Docker will use the backend/Dockerfile.dev to build the backend-base:latest image, ensuring that the image is available for all services that depend on it [1][2].

To continue talking to Dosu, mention @dosu.

@Techno-Trek
Copy link
Author

@dosu

running the command "docker compose up --build"
another error occurs:

=> CACHED [worker 12/13] COPY supabase /code/supabase/ 0.0s
=> ERROR [worker 13/13] RUN poetry install --no-root --with dev,test && playwright install --with-deps && rm -rf /tmp/poetry_ca 1.1s

[worker 13/13] RUN poetry install --no-root --with dev,test && playwright install --with-deps && rm -rf /tmp/poetry_cache:
0.555 Skipping virtualenv creation, as specified in config file.
0.655 Installing dependencies from lock file
1.019
1.019 pyproject.toml changed significantly since poetry.lock was last generated. Run poetry lock [--no-update] to fix the lock file.


failed to solve: process "/bin/sh -c poetry install --no-root --with dev,test && playwright install --with-deps && rm -rf $POETRY_CACHE_DIR" did not complete successfully: exit code: 1

Copy link

dosubot bot commented Jul 20, 2024

To resolve the issue where the poetry install --no-root --with dev,test command fails due to a significant change in the pyproject.toml file since the poetry.lock file was last generated, you should regenerate the poetry.lock file. This can be done by running the following command:

poetry lock

After regenerating the poetry.lock file, you can proceed with the installation:

poetry install --no-root --with dev,test

This will ensure that the poetry.lock file is in sync with the pyproject.toml file, resolving any discrepancies that might have caused the installation to fail [1][2].

To continue talking to Dosu, mention @dosu.

@Techno-Trek
Copy link
Author

@dosu It didn't work, the error persists.

=> => exporting layers 0.0s
=> => writing image sha256:adc6af4a6bf70f6b39509eee94856ad2b84bc9fd96eaec8f98d2e8df4a52d2d6 0.0s
=> => naming to docker.io/library/quivr-frontend-prebuilt 0.0s
[+] Running 5/6
✔ Network quivr_default Created 0.3s
✔ Container redis Created 10.3s
✔ Container backend-core Created 10.3s
⠋ Container web Creating 0.1s
✔ Container beat Created 0.1s
✔ Container worker Created 0.1s
⠋ Container flower Creating 0.0s
⠋ Container notifier Creating 0.0s
Error response from daemon: No such image: backend-base:latest

@lanyur
Copy link

lanyur commented Jul 21, 2024

So can the author be more rigorous? According to the README, it's impossible to achieve successful build.

@zdkderpphb
Copy link

@lanyur I also ran in this problem. After Codecheck i changed the Line with the image. Maybe a quick fix for you.

backend-base:latest to stangirard/quivr-backend-prebuilt:latest

@Techno-Trek
Copy link
Author

@zdkderpphb Thank you very much. It apparently worked, I'm going to redo everything from the beginning to see if it will work correctly.

@lanyur
Copy link

lanyur commented Jul 22, 2024

@lanyur I also ran in this problem. After Codecheck i changed the Line with the image. Maybe a quick fix for you.

backend-base:latest to stangirard/quivr-backend-prebuilt:latest

thank you,it's worked

@PFLigthart
Copy link

I also have the same error which is partially resolved by following @zdkderpphb recommendation. However, I am unable to get llama3 or 2 to work with ollama. I followed the instructions on the README exactly. I also checked issue #2777 but this does not solve my problems. Tried to get it working today and yesterday.

@c4801725870
Copy link

I also have the same error which is partially resolved by following @zdkderpphb recommendation. However, I am unable to get llama3 or 2 to work with ollama. I followed the instructions on the README exactly. I also checked issue #2777 but this does not solve my problems. Tried to get it working today and yesterday.

hi, sorry about your troubles. see #2777 once again, i got it working

@atulgrover
Copy link

the docker-compose.yaml file should be updated with all "images:" directed to "stangirard/quivr-backend-prebuilt:latest"

image: stangirard/quivr-backend-prebuilt:latest

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
Projects
None yet
Development

No branches or pull requests

6 participants