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

PhantomJS installation fails 403 Issue. #223

Closed
janaksingh opened this issue Jul 15, 2016 · 10 comments
Closed

PhantomJS installation fails 403 Issue. #223

janaksingh opened this issue Jul 15, 2016 · 10 comments

Comments

@janaksingh
Copy link

> PhantomInstaller\Installer::installPhantomJS
  - Installing phantomjs (1.9.8)
    Downloading: Connecting...Script PhantomInstaller\Installer::installPhantomJS handling the post-update-cmd event terminated with an exception

  [Composer\Downloader\TransportException]                                     
  The 'https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-  
  x86_64.tar.bz2' URL could not be accessed: HTTP/1.1 403 Forbidden          

https://travis-ci.org/acquia/blt/builds/144947471#L1050

@janaksingh
Copy link
Author

the download link generated by the installer seems to be correct:
https://github.com/jakoch/phantomjs-installer/blob/master/src/PhantomInstaller/Installer.php#L407

When accessing the link directly, it seems to work fine:
https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2

However, in the log, it appears there is a space in the URL like so:

https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux- [weird space] x86_64.tar.bz2

Not sure if this is simply the log display or the actual URL that is getting passed in!

@japerry
Copy link
Contributor

japerry commented Jul 19, 2016

I also am running into this issue, I'm getting redirected to the oauth handler for bitbucket. It prompted to add a consumer, which I did, and now it just 403s.

Odd since this isn't a private repo.

Generating autoload files

post-install-cmd: PhantomInstaller\Installer::installPhantomJS

@grasmash
Copy link
Contributor

I believe this has to do with bitbucket's cdn being intermittently unavailable. Rerunning typically fixes this issue. Not sure what we can do about it.

@mdeltito
Copy link

I've also seen this issue sporadically. It may be the case that the oauth redirect only occurs when you get rate limited against the public cdn.

@grasmash
Copy link
Contributor

grasmash commented Jul 21, 2016

@japerry determined that this was a local config issue. Please post any details if you have them--for posterity.

@grasmash grasmash reopened this Jul 21, 2016
@sarahjean
Copy link

@grasmash @japerry What is the local config issue? They definitely have/had a CDN issue ariya/phantomjs#13953

@japerry
Copy link
Contributor

japerry commented Jul 21, 2016

The issues I ran into appears to be the stock php version with OSX. The PHP version that ships with OSX El Capitan has something wrong with its curl functionality. When I use DD or MAMP Pro's included php binary to run composer install, it works without a problem.

It doesn't appear to be a problem with curl on the system. Both environments had the exactly the same versions an extensions installed.

@sarahjean
Copy link

Here's the alternate CDN fix from another project https://github.com/less/less.js/pull/2905/files#diff-354f30a63fb0907d4ad57269548329e3R12

@sarahjean
Copy link

Tested this out, phantomjs-installer doesn't seem to use the variable, so I think we need to wait on their solution on jakoch/phantomjs-installer#34

@mickaelperrin
Copy link
Contributor

mickaelperrin commented Aug 10, 2016

Struggling with this problem since yesterday,

EDIT: get it working by hosting myself phantomjs and changing the CDN to point to my server...

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

No branches or pull requests

6 participants