Reputation: 1924
Error thrown by GitLab CI since past hour, Not able to proceed. .gitlab-ci.yml
is not changed and very simple (as shown in end).
Only Dockerfile
is changed - but system is not event launching Dockerfile
. What is the remedy?
ERROR LOG
Running with gitlab-ci-multi-runner 1.9.0 (82714ae)
Using Docker executor with image docker:latest ...
Pulling docker image docker:dind ...
ERROR: Preparation failed: Post https://67.205.149.124:2376/v1.18/images/create?fromImage=docker%3Adind: net/http: timeout awaiting response headers
Will be retried in 3s ...
Using Docker executor with image docker:latest ...
Pulling docker image docker:dind ...
ERROR: Preparation failed: Post https://67.205.141.137:2376/v1.18/images/create?fromImage=docker%3Adind: net/http: timeout awaiting response headers
Will be retried in 3s ...
Using Docker executor with image docker:latest ...
Pulling docker image docker:dind ...
ERROR: Preparation failed: Post https://192.241.149.44:2376/v1.18/images/create?fromImage=docker%3Adind: net/http: timeout awaiting response headers
Will be retried in 3s ...
ERROR: Build failed (system failure): Post https://192.241.149.44:2376/v1.18/images/create?fromImage=docker%3Adind: net/http: timeout awaiting response headers
.gitlab-ci.yml
image: docker:latest
services:
- docker:dind
stages:
- build
variables:
NAMEBRAN: registry.gitlab.com/myusername/project:$CI_BUILD_REF_NAME
NAMELAST: registry.gitlab.com/myusername/project:latest
build_image:
stage: build
script:
#LOGIN
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
#BUILD [NEEDS PUSH TO NAME] WITH NAME = $NAMEBRAN
- docker build -t $NAMEBRAN .
- docker push $NAMEBRAN
#TAG $NAMEBRAN as $NAMELAST
- docker pull $NAMEBRAN
- docker tag $NAMEBRAN $NAMELAST
- docker push $NAMELAST
only:
- dockerbranch
Upvotes: 1
Views: 1267
Reputation: 1323183
67.205.149 is a DigitalOcean IP address.
DigitalOcean status is green, so it is not directly linked to the platform itself.
And this does not seem to be a GitLab-CI gitlab-workhorse
router issue.
So check the state of the Docker registry hosted on that DigitalOcean instance used by GitLab: it (the docker registry) might be down (even though GitLab Status does not mention it).
The OP confirms it is the case.
Or use a built-in GitLab Docker registry of a private instance.
Upvotes: 0
Reputation: 1924
Started working without any modifications, Maybe internally gitlab server was overloaded hence timeout error.
Upvotes: 1