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

Service 'db' failed to build : Build failed #477

Open
liweijian opened this issue Sep 6, 2023 · 1 comment
Open

Service 'db' failed to build : Build failed #477

liweijian opened this issue Sep 6, 2023 · 1 comment

Comments

@liweijian
Copy link

OS: Ubuntu 22.04
Docker version: 24.0.5
Docker-compose version: 1.29.2

I'm trying to set up the docker by make start-development, and got following error:

$ make start-development
./scripts/version.sh
Updated environments/development.env
No production.env file
./scripts/validate-env.sh
Validating environments/development.env...
Validating OCAML_BENCH_FRONTEND_URL: http://localhost:8182 is valid
Validating OCAML_BENCH_PIPELINE_URL: http://localhost:8181 is valid
Validating OCAML_BENCH_GRAPHQL_URL: http://localhost:8180/v1/graphql is valid
Validating OCAML_BENCH_DOCKER_CPU: 0,1,2,3,4,5,6,7 is valid
environments/production.env does not exist. Skipping...
./scripts/dev.sh up --remove-orphans --build
Building db
[+] Building 128.1s (5/6)
 => [internal] load build definition from Dockerfile                                                                                                            0.0s
 => => transferring dockerfile: 148B                                                                                                                            0.0s
 => [internal] load .dockerignore                                                                                                                               0.0s
 => => transferring context: 2B                                                                                                                                 0.0s
 => [internal] load metadata for docker.io/library/postgres:12                                                                                                  1.1s
 => [internal] load build context                                                                                                                               0.0s
 => => transferring context: 29B                                                                                                                                0.0s
...
------
 > [1/2] FROM docker.io/library/postgres:12@sha256:0932767f76423dbe8f041dfeb450be7de564955320f4c1618a6a8459011fddd1:
------
Dockerfile:1
--------------------
   1 | >>> FROM postgres:12
   2 |     COPY ./init.sql /docker-entrypoint-initdb.d/init.sql
   3 |     CMD ["docker-entrypoint.sh", "postgres"]
--------------------
ERROR: failed to solve: failed to read expected number of bytes: unexpected EOF
ERROR: Service 'db' failed to build : Build failed
make: *** [Makefile:40: start-development] Error 1
@punchagan
Copy link
Contributor

Hey @liweijian

It looks like a transient network issue on your end, or an issue accessing docker hub for some reason. You could try building again, may be using a different network, if the problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants