Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bower 0.8.5 seems to be stuck #314

Closed
xseignard opened this issue Mar 14, 2013 · 37 comments
Closed

Bower 0.8.5 seems to be stuck #314

xseignard opened this issue Mar 14, 2013 · 37 comments
Milestone

Comments

@xseignard
Copy link

I updated from 0.8.0 (I guess) or later to 0.8.5 and bower seems stuck when i do a simple bower install. It happens on my machine and with my cloudbees hosted jenkins.
I tried to do a bower clean-cache, a bower install --force and a rm -rf ~/.bower with no luck.

It always gets stuck on copying instructions such as :

bower copying /home/bigx/.bower/cache/require/34f0965def4ee39276726c265c9162b6

or any other lib, there is no pattern.

I've got the following when I try to reinstall bower (only on my machine not on cloudbees):

npm WARN unmet dependency /usr/lib/node_modules/modulus/node_modules/prompt/node_modules/winston requires pkginfo@'0.2.x' but will load
npm WARN unmet dependency /usr/lib/node_modules/modulus/node_modules/prompt/node_modules/pkginfo,
npm WARN unmet dependency which is version 0.3.0

And here is my component.json

{
    "dependencies": {
        "angular": "~1.0.5",
        "requirejs": "~2.1.4",
        "jquery": "~1.9.1",
        "angular-sanitize": "~1.0.5",
        "foundation": "http://foundation.zurb.com/files/foundation-3.2.5.zip",
        "less.js": "~1.3.3",
        "font-awesome": "~3.0.2"
    },
    "devDependencies": {
        "angular-mocks": "~1.0.5"
    }
}

Any idea? Any debug options?

Regards,

Xavier

@satazor
Copy link
Member

satazor commented Mar 14, 2013

What node version you got?

@xseignard
Copy link
Author

node 0.8.22 on my machine. also tried with 0.8.14, 0.9.12 and 0.10.0 on my jenkins at cloudbees. i can't get what's wrong. must be something in my conf but can't see it. i tried a sudo npm update -g. i'm running out of stuff i can do to fix it

@xseignard
Copy link
Author

Ok, so I spent some quality time re-installing dependencies one by one. And it seems bower is stuck with "foundation": "http://foundation.zurb.com/files/foundation-3.2.5.zip" don't know why... So i created a repo with the content of that zip, and I point to it, it's ok now... Weird...

@xseignard xseignard reopened this Mar 14, 2013
@xseignard
Copy link
Author

So I tried with only that dependency, and it is stuck. Then i tried the following:
"foundation": "http://twitter.github.com/bootstrap/assets/bootstrap.zip"

and

"someRandomTest": "http://twitter.github.com/bootstrap/assets/bootstrap.zip"

And it is stuck too on bower extracting .... So my guess is there is something wrong with the unzipping.

I'm running Ubuntu 12.04 and the jenkins slave is a linux one too.

Regards,

Xavier

@satazor
Copy link
Member

satazor commented Mar 14, 2013

This seems an issue with the unzip package.
Do you have node 0.10.0 right? The same issue happens with node 0.8.x?

@satazor
Copy link
Member

satazor commented Mar 14, 2013

In my MacOSX, works installing http://twitter.github.com/bootstrap/assets/bootstrap.zip

@xseignard
Copy link
Author

For now i only tested it on node 0.8.22

@xseignard
Copy link
Author

So i tested with node 0.10.0 on my jenkins, and I finally can see an error! Here is the stacktrace, it seems related to the unzip lib you're using.

/scratch/jenkins/node/node-0.10.0-x86_64/lib/node_modules/bower/node_modules/tmp/lib/tmp.js:219
    throw err;
          ^
TypeError: undefined is not a function
    at Until.PullStream._flush (/scratch/jenkins/node/node-0.10.0-x86_64/lib/node_modules/bower/node_modules/unzip/node_modules/pullstream/pullstream.js:112:5)
    at Until.<anonymous> (_stream_transform.js:131:12)
    at Until.g (events.js:175:14)
    at Until.EventEmitter.emit (events.js:117:20)
    at finishMaybe (_stream_writable.js:332:12)
    at endWritable (_stream_writable.js:339:3)
    at Until.Writable.end (_stream_writable.js:326:5)
    at /scratch/jenkins/node/node-0.10.0-x86_64/lib/node_modules/bower/node_modules/unzip/lib/parse.js:282:25
    at process._tickCallback (node.js:415:13)

@satazor
Copy link
Member

satazor commented Mar 14, 2013

Yep, node 0.9+ changed some things in the streams API.

@kr3l
Copy link

kr3l commented Mar 15, 2013

I have the same issue. Installing the packages one by one works fine, but installing them using a component.json doesn't work. It starts installing some packages to the cache fine, but gets stuck at copying at one point:

.......
bower copying /var/lib/jenkins/.bower/cache/custom-base-js/bd32429b54118066dfac4ecaf290cf80
bower downloading https://jquerycustomselectbox.googlecode.com/svn/trunk/WebRoot/password_strength/password_strength_plugin.js
bower downloading https://github.com/cjohansen/Sinon.JS#1.6.0
bower checking out jquery#1.4.4
bower copying /var/lib/jenkins/.bower/cache/jquery/cf68c4c4e7507c8d20fee7b5f26709d9
bower cloning git://github.com/components/jquery.git
bower cached git://github.com/components/jquery.git
bower fetching jquery
bower checking out jquery#1.9.1
bower copying /var/lib/jenkins/.bower/cache/jquery/cf68c4c4e7507c8d20fee7b5f26709d9
bower cloning git://github.com/components/jquery.git
bower cached git://github.com/components/jquery.git
bower fetching jquery
bower checking out jquery#1.9.1
bower copying /var/lib/jenkins/.bower/cache/jquery/cf68c4c4e7507c8d20fee7b5f26709d9
bower cloning git://github.com/components/jquery.git
bower cached git://github.com/components/jquery.git
bower fetching jquery
bower checking out jquery#1.8.3
bower copying /var/lib/jenkins/.bower/cache/jquery/cf68c4c4e7507c8d20fee7b5f26709d9

node v0.8.22
Ubuntu 12.04
I tried with bower 0.8.0 and bower 0.8.5, both give the same issue.

edit: one of my dependencies in component.json points to a zip file:

    "x-editable": "http://vitalets.github.com/x-editable/assets/zip/bootstrap-editable-1.4.3.zip"

It seems like that one is causing troubles as bower gets stuck on extracting it.

bower install http://vitalets.github.com/x-editable/assets/zip/bootstrap-editable-1.4.3.zip
bower downloading http://vitalets.github.com/x-editable/assets/zip/bootstrap-editable-1.4.3.zip
bower extracting /tmp/bower-bootstrap-editable-1.4.3-58342rou35c/index.zip

@satazor
Copy link
Member

satazor commented Mar 17, 2013

I actually get an exception when running in node 0.10.0. It seems that the unzip packages is causing the issue.

Related: EvanOxfeld/node-unzip#20 (comment)

@OzzyCzech
Copy link

Same for me

Bower 0.8.5 and nodejs v0.8.22 on Mac OS X Mountain lion run bower install with dependency "wordpress-social-login" : "http://downloads.wordpress.org/plugin/wordpress-social-login.zip"

bower downloading http://downloads.wordpress.org/plugin/wordpress-social-login.zip
...
bower extracting /var/folders/_k/g821b3gx09g18yr0sp_247sh0000gn/T/bower-wordpress-social-login 85573bv6dlsw/index.zip

bower stack here and not continue

@xycodex
Copy link

xycodex commented Mar 21, 2013

bump. is there a workaround or known good version stack?

@aaronjensen
Copy link

I get an exception w/ 0.9.12

/usr/local/share/npm/lib/node_modules/bower/node_modules/tmp/lib/tmp.js:219
    throw err;
          ^
TypeError: undefined is not a function
    at Until.PullStream._flush (/usr/local/share/npm/lib/node_modules/bower/node_modules/unzip/node_modules/pullstream/pullstream.js:112:5)
    at Until.<anonymous> (_stream_transform.js:131:12)
    at Until.g (events.js:174:14)
    at Until.EventEmitter.emit (events.js:116:20)
    at finishMaybe (_stream_writable.js:332:12)
    at endWritable (_stream_writable.js:339:3)
    at Until.Writable.end (_stream_writable.js:326:5)
    at /usr/local/share/npm/lib/node_modules/bower/node_modules/unzip/lib/parse.js:277:36
    at process._tickCallback (node.js:403:13)

And it hangs with 0.8.22

Using bower 0.8.5 and unzip 0.1.5 (i've tried 0.1.3 and 0.1.4) as well

@yahyaKacem
Copy link

I'm using Node v0.10.1 with bower 0.8.5 and i'm having the same error here:

bower copying /root/.bower/cache/jquery/cf68c4c4e7507c8d20fee7b5f26709d9
bower checking out bootstrap#v2.3.1
bower copying /root/.bower/cache/bootstrap/c1ee45ee19795a66de4a0c45758fe0b1
bower downloading http://twitter.github.com/bootstrap/assets/bootstrap.zip
bower extracting /tmp/bower-bootstrap-210506kaoe2o/index.zip

/usr/local/lib/node_modules/bower/node_modules/tmp/lib/tmp.js:219
    throw err;
          ^
TypeError: undefined is not a function
    at Until.PullStream._flush (/usr/local/lib/node_modules/bower/node_modules/unzip/node_modules/pullstream/pullstream.js:112:5)
    at Until.<anonymous> (_stream_transform.js:131:12)
    at Until.g (events.js:175:14)
    at Until.EventEmitter.emit (events.js:117:20)
    at finishMaybe (_stream_writable.js:332:12)
    at endWritable (_stream_writable.js:339:3)
    at Until.Writable.end (_stream_writable.js:326:5)
    at /usr/local/lib/node_modules/bower/node_modules/unzip/lib/parse.js:282:25
    at process._tickCallback (node.js:415:13)

@steida
Copy link

steida commented Mar 26, 2013

Temp fix: http://nodejs.org/dist/v0.8.21/
Node 0.8.22 fails silently. Node 10.0.x shows tmp undefined error.

@aaronjensen
Copy link

0.8.21 does not fix it in my situation, it still hangs for me on osx.

@steida
Copy link

steida commented Mar 26, 2013

Interesting. I tried reinstall 0.8.22 -> hang, then reinstall 0.8.11 ok. Try close terminal window after reinstall.

@aaronjensen
Copy link

Nope, just spins eating a cpu. I tried both 0.8.21 and 0.8.11 (wasn't sure which was a typo)

@jstcki
Copy link

jstcki commented Mar 26, 2013

I think it's an issue with unzip >0.1.4. If you install bower from master (where it's locked to 0.1.4) it should work.

@aaronjensen
Copy link

@herrstucki this worked, thanks!

@steida
Copy link

steida commented Mar 26, 2013

@aaronjensen After installing Node 0.8.21, remember to run bower cache-clean.

@adambiggs
Copy link

Broken for me as well on Node v0.8.21 even after bower cache-clean. Fails on bootstrap.

@aaronjensen
Copy link

@adambiggs the node change didn't help at all, but npm install -g git://github.com/twitter/bower.git worked.

@satazor
Copy link
Member

satazor commented Mar 30, 2013

Basically the master branch has node 0.8.x working but is broken for node 0.10.x until the unzip package fixes this.

Worth mentioning that this only happens in zip endpoints.

@jstcki
Copy link

jstcki commented Apr 3, 2013

@satazor can't you release a Bower patch version which locks unzip to 0.1.4 (as it is in master)? This is affecting a lot of people.

@satazor
Copy link
Member

satazor commented Apr 3, 2013

@herrstucki done.

@satazor
Copy link
Member

satazor commented Apr 3, 2013

Node 0.8.x usage should be fixed with the new bower 0.8.6 release.
Will unlock unzip version as soon as it is compatible with both node versions.

@jstcki
Copy link

jstcki commented Apr 4, 2013

@satazor Terrific, thanks a lot!

@adambiggs
Copy link

npm install -g git://github.com/twitter/bower.git fixed this for me last week, but I just tried it while setting up a new computer and it seems to be broken again:

/Users/adam/.nvm/v0.10.2/lib/node_modules/bower/node_modules/tmp/lib/tmp.js:219
    throw err;
          ^
TypeError: listener must be a function
    at TypeError (<anonymous>)
    at Parse.EventEmitter.once (events.js:171:11)
    at Extract._write (/Users/adam/.nvm/v0.10.2/lib/node_modules/bower/node_modules/unzip/lib/extract.js:59:23)
    at doWrite (_stream_writable.js:211:10)
    at writeOrBuffer (_stream_writable.js:201:5)
    at Extract.Writable.write (_stream_writable.js:172:11)
    at write (_stream_readable.js:547:24)
    at flow (_stream_readable.js:556:7)
    at ReadStream.pipeOnReadable (_stream_readable.js:588:5)
    at ReadStream.EventEmitter.emit (events.js:92:17)

Same thing with Bower 0.8.6. I'm using Node 0.10.2.

@josh
Copy link
Contributor

josh commented Apr 5, 2013

Support for node 0.10.x is still in the works.

@adambiggs
Copy link

Installed Bower 0.8.5 and it's now working again in Node 0.10.2

@satazor
Copy link
Member

satazor commented Apr 25, 2013

This will be fixed with #422

@satazor satazor closed this as completed Apr 25, 2013
@s3w47m88
Copy link

s3w47m88 commented Feb 4, 2015

I'm still experiencing this issue. v0.10.26 on Ubuntu 12.04 and am unable to locate a solution. Initially I ran is as a user sudo su as root, and added the --allow-root option, then tried again as non-root without that option and it still hangs. The repo it's accessing is git://github.com/twbs/boostrap.git

@buccfer
Copy link

buccfer commented Jun 4, 2015

Have you generated your ssh public/private key and registered the public key in the github server already??? Maybe git is using ssh and the authentication is failing...

Regards

@tmleeek
Copy link

tmleeek commented Dec 24, 2015

just tried from visual studio code and still stucks , its also stuck in the terminal , i think this project is dead

@bower bower locked and limited conversation to collaborators Dec 24, 2015
@sheerun
Copy link
Contributor

sheerun commented Dec 24, 2015

0.8.5 is not supported for a long time

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests