An error occurred while fetching the assigned iteration of the selected issue.
Connection refused to port 443 using GitLab Runner with Docker and services
If I use this gitlab ci configuration the project gets cloned correctly:
YAML
services:
- docker:dind
test-integration:
stage: integration
variables:
DOCKER_TAG: $CI_BUILD_REF_NAME
script:
...
LOG
Running with gitlab-ci-multi-runner 1.7.1 (f896af7)
Using Docker executor with image gitlab.cdp.it:5001/cdp/docker ...
Pulling docker image docker:dind ...
Starting service docker:dind ...
Waiting for services to be up and running...
Pulling docker image gitlab.cdp.it:5001/cdp/docker ...
Running on runner-13b54947-project-7-concurrent-0 via cdprh73...
Cloning repository...
Cloning into '/builds/galileo-covenant/galileo-covenant-services'...
Checking out 7ce057cc as staging...
Checking cache for test-integration/staging...
Successfully extracted cache
Instead if I use this yaml:
services:
- docker:dind
test-integration:
stage: integration
variables:
DOCKER_TAG: $CI_BUILD_REF_NAME
services:
- $GITLAB_REGISTRY/cdp/postgres
- $DOCKER_IMAGE:$DOCKER_TAG
script:
...
I get the error:
Running with gitlab-ci-multi-runner 1.7.1 (f896af7)
Using Docker executor with image gitlab.cdp.it:5001/cdp/docker ...
Pulling docker image gitlab.cdp.it:5001/cdp/postgres ...
Starting service gitlab.cdp.it:5001/cdp/postgres ...
WARNING: Service gitlab.cdp.it:5001/galileo-covenant/galileo-covenant-services:staging is already created. Ignoring.
Waiting for services to be up and running...
Pulling docker image gitlab.cdp.it:5001/cdp/docker ...
Running on runner-e8b434fc-project-7-concurrent-0 via cdprh72...
Cloning repository...
Cloning into '/builds/galileo-covenant/galileo-covenant-services'...
fatal: unable to access 'https://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.cdp.it/galileo-covenant/galileo-covenant-services.git/': Failed to connect to gitlab.cdp.it port 443: Connection refused
/bin/bash: line 51: cd: /builds/galileo-covenant/galileo-covenant-services: No such file or directory
ERROR: Build failed: exit code 1