Reputation: 616
I installed Openshift origin v3 using vagrant on my computer and created a project and an python component whose source code is hosted on Github.
When a build is started, it shows the error:
builder.go:204] Error: build error: timeout while waiting for remote repository
I had the same mistake yesterday for a while, but all of sudden, it worked and my app deployed successfully. Today, I tried to rebuild after some code changes, but couldn't make Openshift download my code from github.
Any idea ?
Upvotes: 0
Views: 252
Reputation: 616
Ok, I tried to ping github.com from the vagrant machine, in ssh and it worked. So I tried to ping again from a docker container executed within the vagrant vm :
me@ vagrant ssh
vagrant@ docker run --rm -it openshift/base-centos7 /bin/bash
WARNING: IPv4 forwarding is disabled. Networking will not work.
bash@ ping github.com
ping: unknown host github.com
The warning was right, it didn't work. So I restarted the docker daemon from within the vagrant machine, and it solved the problem.
vagrant@ sudo service restart docker
Link : https://github.com/openshift/origin/issues/7840
Upvotes: 0
Reputation: 19
this could be because of a DNS issue. Are you using the official vagrant openshift image? If you're not, then it might be because of firewalld, try turning that off. There's also oc cluster up
i might recommend. But bare in mind, you might run into the same issue.
https://github.com/openshift/origin/issues/11949
please see this for oc cluster up https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md
Upvotes: 1