A Jackson
A Jackson

Reputation: 2856

Gitlab CI Docker Network timeout

I've just set up Ubuntu Server 17.04 and installed Docker and Gitlab CI Runner. While it seems to work, any builds that require network access (e.g. npm, nuget etc.) the network traffic seems to take forever and ultimately times out.

This happens for both Internet and local address.

If I start a container manually and try to connect from that, it works perfectly. There's only an issue when the runner tries.

I find it odd that the git clone at the start of the build appears to work fine (local Gitlab server) because presumably that would need network access as well?

We have a proxy server for Internet access which I have configured but that should not be needed for local servers.

Upvotes: 0

Views: 1930

Answers (1)

A Jackson
A Jackson

Reputation: 2856

Seems to be a whole series of problems.

  1. The Docker IP addresses were conflicting with our local network - changed the Docker binding IP
  2. Needed to use http_proxy rather than HTTP_PROXY
  3. An npm package was cloning from [email protected] but our network blocks outbound SSH. Had to add git config --global url.http://github.com/.insteadOf [email protected]

Thanks for Tarun Lalwani for the help

Upvotes: 4

Related Questions