Bower error status 128

On 2012/09/14, in signal, webdev, by a b

I’m new to Bower (and Grunt (and Node)), and was having some trouble with a script using Bower. I kept getting errors, with status 128. This was weirdly intermittent. The script always worked fine on my laptop. It would fail on our Jenkins build server, and was a little intermittent. The error output didn’t make it obvious, so I went to The Goog, but couldn’t find much.

Then, my co-worker Larry saved the day; if you are behind a firewall that blocks SSH, and try to pull dependencies that require SSH to connect, Bower will fail. The error trace is below:

bower copying /Users/Administrator/.bower/jsdoc3
bower cloning git://github.com/components/jquery.git
bower caching git://github.com/components/jquery.git
bower cloning git://github.com/documentcloud/backbone.git
bower cloning git://github.com/documentcloud/underscore.git
bower caching git://github.com/documentcloud/backbone.git
bower caching git://github.com/documentcloud/underscore.git
github.com[0: 207.97.227.239]: errno=Operation timed out
fatal: unable to connect a socket (Operation timed out)

bower error Git status: 128
github.com[0: 207.97.227.239]: errno=Operation timed out
fatal: unable to connect a socket (Operation timed out)

github.com[0: 207.97.227.239]: errno=Operation timed out
fatal: unable to connect a socket (Operation timed out)

github.com[0: 207.97.227.239]: errno=Operation timed out
fatal: unable to connect a socket (Operation timed out)

bower error Git status: 128
bower error Git status: 128
bower error Git status: 128

In retrospect, ‘unable to connect to socket’ should have tipped me off. Anyway, just putting this out there for the other n00bs. A workaround for this is to change the git endpoint to use HTTP

.

You might also have a case-sensitivity problem, as noted on github.

 

4 Responses to Bower error status 128

  1. Daniel Wabyick says:

    Bower can work with the HTTP repository structure as well. We changed that to make it easier for people behind Firewalls.
    https://github.com/twitter/bootstrap.git#v2.1.1

    • a b says:

      Seems we’re having small troubles with that; something within bower is still hitting SSH and causing the error 128? More digging required.

  2. Gui Pinto says:

    Thank you so much… I had to disconnect from my VPN, in order to run ‘yeoman install [package]’ (yeoman uses bower for pkg mgmt). Luckily I am working remotely and had the chance to do this… If I was in the office would have been harder. Hopefully this will be resolved soon by the Bower team.

    Thanks again.

  3. Noah says:

    Thank you, saved me a lot of time and frustration!