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 install is stalling/hanging completely #2247
Comments
Might not be the solution, but this occurs if one of your bower packages is installed from a private github repository. It's not actually hung, it's just waiting for you to enter the username and password. |
Is it possible to log that? The point is: everything is public, no private repositories are required. |
@knalli I don't work on the project, I was actually checking issues because of a weird problem I was having with bower cache (something like 10-12 packages today ended up cached under the wrong versions on my build box), and I happened to see this issue. The symptoms you described sounded EXACTLY like the symptoms we encountered with the private github.com repos and a username/password prompt. One of the packages would prompt for a username/password, but bower would keep on installing other packages, essentially "hiding" the prompt from the log. If you scroll through the log, you might find a |
@knalli we have similar issue and it hangs randomly, it can be a repo of angular, jquery, etc. We have noticed that it is mostly a connection problem with git. Speed goes as low as 30-50 Kbit/sec. Currently we are moving packages to |
@knalli We have VERY long time for get angular, jquery, from bower Issue repeatable for now on:
|
|
@knalli yep. read it already. on Ubuntu machine we got following: "gnutls_handshake() failed: Error in the pull function." |
Same bug with : Need help :) |
@sheerun any ideas? |
So, I think I have additional information. The freeze is internally a timeout while polling a file descriptor (process/socket maybe?). I've traced the
Fortunately, I'm co-maintaining this particular repository (bower-angular-translate) and I know it is not "large". So the repository size is definitely not a cause.
And the log of the install itself:
|
I can confirm that this issue (what knalli described ) is affecting all of our local vagrant dev environments regardless of the host is Windows or Ubuntu. The guest os is Ubuntu 14.04.4. Bower version: 1.7.9
|
We have determined the situation a little bit. Perhaps this is not an issue with the bower lib itself but the decision switching to https endpoints. There are some evidences people have issues with https+git+cloning. A fast overview in a tcpdump shows hard resets of the tcp stream (when fetching a clone/tar.gz). I have already patched the library locally removing I'd also noticed such hangs of git processes when configuring private-bower (which uses a similar approach). Is there a possibility to change the setting locally like git:// instead of https:// ? |
I have upgraded the local Git 1.7 with a much fresher Git 2.8.1 (in my case for RHEL6, so look for Meanwhile, I have installed a local bower cache proxy. Finally, because this was already the plan for months; I've chosen Nexus3 (because we already use Nexus2 for Maven and NPM). It is running for some hours and until now it looks fine. At the end this is much better than fetching the stuff always and it also reduces the dependency on a full working github.com connection. However, the issue itself is not resolved. |
Moved from bower to nmp. Solved. |
I'll be addressing this issue soon. Probably by downloading .tar.gz files for https:// instead only for git:// |
This fixes #2247 as git checkout often fails on older git versions. Additionally .tar.gz archives are downloaded for commits and branches.
All it took is 30 minutes to prepare a patch people, please contribute |
Just wondered if this has been fixed? I've recently started experiencing the 'hanging' problem in my VM when it tries to download jQuery. It doesn't actually get to the stage of creating the
Here are my specs:
So far I've tried:
FYI node packages install without any issues. I'm at a bit of a loss now, do you have any other suggestions? |
I'm also having this issue with bower v1.7.9 when it tries to install lodash. Any solutions yet? |
@preston Try |
Any update with this? having the same with bower 1.7.9 |
No luck with cache cleaning. Still not sure what the problem is. 😦 |
Facing this issue with bower 1.7.9 node 4.4.5 git 1.7.1. |
We had the same problem on a Windows-environment. The solution for us was to remove the environment variable "GIT_SSH" which was set to "C:\Program Files (x86)\Putty\plink.exe". Apparently it didn't work to fetch Bower dependencies from Git through Putty-SSH. |
i had the same setup as @knalli in his first post. For compiling instructions follow this link |
This fixes #2247 as git checkout often fails on older git versions. Additionally .tar.gz archives are downloaded for commits and branches.
This fixes #2247 as git checkout often fails on older git versions. Additionally .tar.gz archives are downloaded for commits and branches.
This fixes #2247 as git checkout often fails on older git versions. Additionally .tar.gz archives are downloaded for commits and branches.
I'm issued with the situation that
bower install
hangs sometimes without any further message. The issue is new since Monday (on Friday is was still fine).Because there are several dependencies, I am still investigating whether it is only a connection issue (internet uplink). I have got also read about #2235, but at the moment I don't see this could be the issue. I'm looking for more logging.
Details about the environment:
But I have seen the issue also on my local machine: OS X 10.11.4, npm 4.3.1, bower ^1.7.9
So far, the symptoms are:
All these processes will stay. I cannot see any actions anymore. Another job, or another time: Other repositories, but same type of commands.
bower install
will finish without any notice and error. But the result are partially incomplete checkouts (actually, no surprise because I've killed something).I've already moved the default storage paths to ensure concurrent builds of different projects will not conflict each other:
The local workspaces will be destroyed before each build, so there is nothing left of any prior build. Due the specified storage path settings, there is no "global" cache active. I have verified this:
~/.cache/bower
is not being present.Obviously, you will not get up with a solution right now.. (but still hoping :)). And it is not clear it is an actual issue for bower. But it would help me a lot, if there is any possibility to increase the logging level specifically for this dependency clone/install issue.
bower install --verbose
does not change anything. :(The text was updated successfully, but these errors were encountered: