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

Failing to install PhantomJS 2.0.0 #12

Closed
opb opened this issue Feb 11, 2015 · 16 comments
Closed

Failing to install PhantomJS 2.0.0 #12

opb opened this issue Feb 11, 2015 · 16 comments

Comments

@opb
Copy link

opb commented Feb 11, 2015

Hi there

I'm using this package with laravel, deployed via rocketeer. It has worked flawlessly up until PhantomJS was updated to 2.0.0. Now I'm seeing the following errors when composer runs its post-install commands:

[www-data@178.79.130.253:7987] (production-server) Generating autoload files
[www-data@178.79.130.253:7987] (production-server) Generating optimized class loader
[www-data@178.79.130.253:7987] (production-server) Compiling common classes
[www-data@178.79.130.253:7987] (production-server) Compiling views
[www-data@178.79.130.253:7987] (production-server) - Installing phantomjs (2.0.0)
[www-data@178.79.130.253:7987] (production-server) Downloading: connection...
[www-data@178.79.130.253:7987] (production-server) Script PhantomInstaller\Installer::installPhantomJS handling the post-install-cmd event terminated with an exception
[www-data@178.79.130.253:7987] (production-server) 
[www-data@178.79.130.253:7987] (production-server) 
[www-data@178.79.130.253:7987] (production-server) 
[www-data@178.79.130.253:7987] (production-server) [Composer\Downloader\TransportException]
[www-data@178.79.130.253:7987] (production-server) The "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.0.0-linux-x86_64.tar.bz2" file could not be downloaded (HTTP/1.1 404 NOT FOUND)

Please let me know if you need any further information.

Thanks!

EDIT: I'm using dev-master, will drop version for now.

@jakoch
Copy link
Owner

jakoch commented Feb 11, 2015

Hey Olly!

Thanks for reporting the issue.
Uff, i thought the new version is out, because the website states "Download v2.0".
But it's only true for Windows and Mac releases.
For the linux version the website (http://phantomjs.org/download.html) states:

Linux
Binary packages for Linux are still being prepared. There are still issues to be solved until a static
build is available (see issue 12948 for more details).

Possible solutions:

  • I could introduce a fallback to v1.9.8 when v2.0.0 linux releases are required.

  • We could wait until the linux packages arrive and meanwhile specify an older version of the phantomjs-installer in composer.json:

    "require": {
        "jakoch/phantomjs-installer": "1.9.8"
    },
    
  • I could revert release tag v2.0.0 back to v1.9.8 - and reapply it, when they are ready.

I think the best solution would be to simply revert it. What do you think?

@jakoch
Copy link
Owner

jakoch commented Feb 11, 2015

EDIT: I'm using dev-master, will drop version for now.

Ok. I leave the issue open for others running into this.


Update:
It looks like the PhantomJS team was not able to build working Linux binaries of version 2.0, and has decided to abandon them and try to fix this in 2.1. Given that this package is supposed to be a platform-independent binary installer, this puts us in a messy situation, because we will have to wait until 2.1.

Referencing:

@sorbing
Copy link

sorbing commented Feb 13, 2015

Faced with the same problem .. Thanks for the clarification.

@ghost
Copy link

ghost commented Apr 15, 2015

Any update on this? I'm getting the same error when using dev-master

@ghost
Copy link

ghost commented Apr 15, 2015

For further info, this is what I'm getting when attempting to install my project using Laravel Forge:

Generating autoload files
Generating optimized class loader
Compiling common classes

@jakoch
Copy link
Owner

jakoch commented Apr 16, 2015

No update on this. They are still in this disastrous state of the PhantomJS project.

It's quite impressive how such a widely used project gets stuck, when the Continuous Integration stops compiling / working and the maintainer starts to work on other projects. It seems that Travis-CI is not able to build PhantomJS, because the boxes provide only ~4GB memory. PhantomJS is build on a patched Qt framework and this build really draws on memory and build time. I think there will be no progress in this area, unless they upgrade their CI package at Travis to professional (in order to get more mem) or switch their CI service AND more important: the two maintainers find more time to get the project back on track. They could also decide to split out the framework build and pull the dependencies in.

@zedtux
Copy link

zedtux commented May 16, 2015

+1 I'm encountering the same issue and indeed thank you @jakoch for the details about the issue !

@pablomoreno61
Copy link

Same problem here, this is my error

  - Installing phantomjs (2.0.0)
    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-2.0.0-linux-x86_64.tar.bz2" file could not be downloaded (HTTP/1.1 404 NOT FOUND)

@JarJak
Copy link

JarJak commented Sep 4, 2015

same problem

@jakoch
Copy link
Owner

jakoch commented Sep 4, 2015

Unfortunately the situation of the phantomjs project itself is unchanged.. :(

@JarJak
Copy link

JarJak commented Sep 4, 2015

it would propose marking 2.0 branch as dev since it is not really
stable/usable, so composer will get 1.9.* as default

2015-09-04 19:52 GMT+02:00 Jens A. Koch notifications@github.com:

Unfortunately the situation of the phantomjs project itself is unchanged..
:(


Reply to this email directly or view it on GitHub
#12 (comment)
.

@halfer
Copy link

halfer commented Sep 13, 2015

Same problem here, but I don't need 2.0.0 - I'll lock to 1.9.8 for the time being. Thanks for your work on this.

@jakoch
Copy link
Owner

jakoch commented Sep 13, 2015

Yes, locking to 1.9.8 is the right thing. I still hope that the Phantom team gets another release out this year, but Ariya spends his limited time working on Esprima. :/

(By the way: I've seen your nickname a couple of times over at SO and read your "I ♥ PHP" tutorial.
I have lots of respect for the work you do, because it takes quite a lot of time to put together a well written, structured tutorial (and to maintain it). The diff-style is helpful, because the reader can participate in the evolution of the project. Haven't seen that in a tutorial before. It's great!)

@halfer
Copy link

halfer commented Sep 13, 2015

@jakoch, thanks! It was more work than I expected, certainly. I don't do so much work on it now, as it is doesn't get as much attention/feedback as I thought it might - I think it needs some promotion. Might do some more work on it, or a follow-up tutorial, in the future 😄

@jakoch
Copy link
Owner

jakoch commented Dec 17, 2015

jakoch added a commit that referenced this issue Jan 25, 2016
removed the hardcoded latest version from getVersion()
and replaced it by a call to the newly added getLatestPhantomJsVersion()

issue #12
@jakoch
Copy link
Owner

jakoch commented Jan 25, 2016

Update: PhantomJS v2.1.1 was released - http://phantomjs.org/download.html

I've adjusted the installer to fetch the latest version and tagged a new release:
https://github.com/jakoch/phantomjs-installer/releases/tag/2.1.1

Best, Jens

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

No branches or pull requests

7 participants