Open jonahwh opened 8 years ago
I ran into the same issue today. In my case, it looks like BitBucket is not down, but rather they are returning 'Rate limit for this resource has been exceeded'.
Same here, on a ci server, very annoying...
Just as an update, as a workaround in CI, I ended up hosting my own version of the binary in S3, and am downloading that ahead of time so this gem sees that it already exists in my PATH.
Thanks for sharing your workaround!
Looks like the phantomjs team is working to setup alternative download locations: https://github.com/ariya/phantomjs/issues/13953
I am getting this error VERY often on Circle CI
Same here. I am using Semaphore.
We're having this same issue on phantomjs 2.1.1.0 at the moment:
One workaround is to use your CI environment's caching ability:
This appears to improve our case.
Also, Ubuntu 14.04 on CircleCI happens to include PhantomJS 2.1.1, avoiding any download until the next version is released.
One suggestion would be to add the -f
flag to the curl
command which is used to download the asset. This would cause curl to fail instead of successfully downloading the bitbucket error page. Hopefully this would make it clear in the error message that the asset failed to download.
On the downside, the failed curl
would be immediately by a wget
which may bury the cause of the error.
Let me know if you want a PR.
Phantomjs does not appear to be installed in /root/.phantomjs/2.1.1/x86_64-linux/bin/phantomjs, installing!
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 31300 100 31300 0 0 78021 0 --:--:-- --:--:-- --:--:-- 78250
bunzip2: phantomjs-2.1.1-linux-x86_64.tar.bz2 is not a bzip2 file.
tar: phantomjs-2.1.1-linux-x86_64.tar: Cannot open: No such file or directory
https://status.bitbucket.org/incidents/z029156p1svh
We are presently investigating service issues with Bitbucket resulting in degraded performance on the website and via SSH & Git via HTTPS. -- Jan 09, 2018 - 13:47 UTC
I don't mind the bad errors, I guess I wish my CI service cache proxied bitbucket for our builds. Not like phantomjs-2.1.1 has changed recently...
Bitbucket is currently down, which causes the following.
One solution is to rescue and not re-raise this error if there is already a matching version of phantomjs in the PATH.