ocurrent / current-bench

Experimental benchmarking infrastructure using OCurrent pipelines
Apache License 2.0
33 stars 17 forks source link

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

Open liweijian opened 1 year ago

liweijian commented 1 year ago

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 commented 1 year ago

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.