Search code examples
githubdownloadredhatopenshift-origin

Can't download from github Openshift v3


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 ?


Solution

  • 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