0
votes

I'm running Gitlab on a development server running Ubuntu. I changed the config in /etc/gitlab/gitlab.rb to an IP address.

I run my Gitlab pipeline and I always get

Uploading artifacts... planfile: found 1 matching files
ERROR: Uploading artifacts to coordinator... error error=couldn't execute POST against http://gitlab.example.be/api/v4/jobs/15/artifacts?artifact_format=zip&artifact_type=archive: Post http://gitlab.example.be/api/v4/jobs/15/artifacts?artifact_format=zip&artifact_type=archive: dial tcp: lookup gitlab.example.be on 144.254.71.184:53: no such host id=15 token=xhDJXFod WARNING: Retrying...
error=invalid argument

How come the artifact is using the DNS name and not the IP address while it is the IP address that is specified in the config file?

1

1 Answers

0
votes

This address is configured in your Gitlab runner configuration (config.toml). This configuration file is different from your Gitlab configuration file.

[[runners]]
  url = "http://gitlab.example.be"

You can view all the advanced settings for your runner on the Gitlab runner documentation page.