Timothy, thank you for sharing, that is nice workaround indeed! On Thu, Apr 23, 2015 at 8:57 PM, Timothy Perrigo <[email protected]> wrote:
> Greetings all, > This is probably common knowledge for for experienced git users, but it > had me blocked for a couple of days, so at the risk of sounding like and > idiot I'd thought I'd share the problem I was having and its (extremely > simple) solution. > > I had successfully built git from home (on Mac OS X), but was getting > build errors trying to do so from my office (on Ubuntu 14.04)-- the > Zeppelin: web Application module kept failing when bower was trying to > resolve dependencies using the git protocol (rather than https). I kept > getting build failures like the one below. > > The problem was due to the fact that our corporate firewall blocked port > 9418, which the git protocol uses (I could use git via https with no > problems). The solution was simply to configure git to always use https:// > instead of git:// : > > git config --global url."https://".insteadOf git:// > > Embarrassingly, I spent hours trying to figure out a work-around before > stumbling upon this simple config setting, so I thought I'd send this out > to the mailing list in case anyone else was experiencing the same issue. > Once I changed the config setting, Zeppelin built completely without any > issues! > > Below is a sample of the errors I would receive before redirecting git to > use https instead of the git protocol. If anyone else is trying to build > git behind a restrictive firewall, I hope this helps! > > Tim > > Example Build Error: > > [INFO] bower angular-mocks#1.3.8 not-cached git:// > github.com/angular/bower-angular-mocks.git#1.3.8 > [INFO] bower angular-mocks#1.3.8 resolve git:// > github.com/angular/bower-angular-mocks.git#1.3.8 > [INFO] bower angular-scenario#1.3.8 not-cached git:// > github.com/angular/bower-angular-scenario.git#1.3.8 > [INFO] bower angular-scenario#1.3.8 resolve git:// > github.com/angular/bower-angular-scenario.git#1.3.8 > [ERROR] bower bootstrap#~3.2.0 ECMDERR Failed to execute > "git ls-remote --tags --heads git://github.com/twbs/bootstrap.git", exit > code of #128 fatal: unable to connect to github.com: github.com[0: > 192.30.252.129]: errno=Connection timed out > [ERROR] > [ERROR] Additional error details: > [ERROR] fatal: unable to connect to github.com: > [ERROR] github.com[0: 192.30.252.129]: errno=Connection timed out > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Zeppelin .......................................... SUCCESS [3.150s] > [INFO] Zeppelin: Interpreter ............................. SUCCESS [6.697s] > [INFO] Zeppelin: Zengine ................................. SUCCESS [2.478s] > [INFO] Zeppelin: Spark ................................... SUCCESS > [23.952s] > [INFO] Zeppelin: Markdown interpreter .................... SUCCESS [1.120s] > [INFO] Zeppelin: Angular interpreter ..................... SUCCESS [1.015s] > [INFO] Zeppelin: Shell interpreter ....................... SUCCESS [1.018s] > [INFO] Zeppelin: Hive interpreter ........................ SUCCESS [1.586s] > [INFO] Zeppelin: web Application ......................... FAILURE > [2:29.662s] > [INFO] Zeppelin: Server .................................. SKIPPED > [INFO] Zeppelin: Packaging distribution .................. SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 3:10.966s > [INFO] Finished at: Tue Apr 21 15:33:32 CDT 2015 > [INFO] Final Memory: 45M/829M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > com.github.eirslett:frontend-maven-plugin:0.0.23:bower (bower install) on > project zeppelin-web: Failed to run task: 'bower --allow-root install' > failed. (error code 1) -> [Help 1] > [ERROR] > > > > -- -- Kind regards, Alexander.
