Stuart winchester in Coding 1 minutes

Fixing Build Pod Issues On Cdk

Sometimes the builds in the CDK are unable to access github or the outside world.

Cloning "https://github.com/openshift/ruby-ex.git" ...
WARNING: timed out waiting for git server, will wait 1m4s
WARNING: timed out waiting for git server, will wait 4m16s
error: build error: fatal: unable to access 'https://github.com/openshift/ruby-ex.git/': Failed connect to github.com:443; Operation now in progress

To fix this we need to perform the following actions:

vagrant ssh
su -
#(password is vagrant)

systemctl stop docker && \
iptables -F && \
iptables -t nat -F && \
systemctl start docker && \
docker ps -a | awk '{print $1}' | xargs docker start

Now your network stuff should be all working fine :)

Cloning "https://github.com/openshift/ruby-ex.git" ...
	Commit:	855ab2de53ff897a19e1055f7554c64d19e02c50 (Merge pull request #6 from aj07/typo)
	Author:	Ionut Palade <PI-Victor@users.noreply.github.com>
	Date:	Mon Dec 12 14:37:32 2016 +0100

---> Installing application source ...
---> Building your Ruby application from source ...
...