veliovgroup / jazeee-meteor-spiderable

Fork of Meteor Spiderable with longer timeout, caching, better server handling
https://atmospherejs.com/jazeee/spiderable-longer-timeout
33 stars 9 forks source link

PhantomJS failed #37

Closed catin-black closed 7 years ago

catin-black commented 8 years ago

Hi. I have a problem

spiderable: phantomjs failed: { [Error: Command failed: /bin/sh -c phantomjs  --load-images=no --ssl-protocol=TLSv1 --ignore-ssl-errors=true --web-security=false /bundle/bundle/programs/server/assets/packages/jazeee_spiderable-longer-timeout/lib/phantom_script.js "https://taptospeak.com/route/path#!:"
]
  killed: true,
  code: null,
  signal: 'SIGTERM',
  cmd: '/bin/sh -c phantomjs  --load-images=no --ssl-protocol=TLSv1 --ignore-ssl-errors=true --web-security=false /bundle/bundle/programs/server/assets/packages/jazeee_spiderable-longer-timeout/lib/phantom_script.js "https://mywebsite.com/route/path#!:"' }

I have no idea how to find solution.

dr-dimitru commented 8 years ago

@catin-black Have you installed phantomjs?

jazeee commented 8 years ago

It very much looks like you need to install PhantomJS. You can test manually by running the cmd parameter on the shell.

Also, look at the readme for setup and usage instructions.

/bin/sh -c phantomjs --load-images=no --ssl-protocol=TLSv1 --ignore-ssl-errors=true --web-security=false /bundle/bundle/programs/server/assets/packages/jazeee_spiderable-longer-timeout/lib/phantom_script.js "https://mywebsite.com/route/path#!:"

On Sep 19, 2016 8:12 AM, "Agent John" notifications@github.com wrote:

Hi. I have a problem

spiderable: phantomjs failed: { [Error: Command failed: /bin/sh -c phantomjs --load-images=no --ssl-protocol=TLSv1 --ignore-ssl-errors=true --web-security=false /bundle/bundle/programs/server/assets/packages/jazeee_spiderable-longer-timeout/lib/phantom_script.js "https://taptospeak.com/route/path#!:" ] killed: true, code: null, signal: 'SIGTERM', cmd: '/bin/sh -c phantomjs --load-images=no --ssl-protocol=TLSv1 --ignore-ssl-errors=true --web-security=false /bundle/bundle/programs/server/assets/packages/jazeee_spiderable-longer-timeout/lib/phantom_script.js "https://mywebsite.com/route/path#!:"' }

I have no idea how to find solution.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jazeee/jazeee-meteor-spiderable/issues/37, or mute the thread https://github.com/notifications/unsubscribe-auth/AFXnaPQmpnN1bPPRFH_aUYrnV0RKRAUzks5qrooxgaJpZM4KAeE6 .

catin-black commented 8 years ago

Yeap, I have phantomjs. I tried to reinstall it but it did not help

jazeee commented 8 years ago

Did you try to run the same command that is in the error? /bin/sh -c phantomjs --load-images=no --ssl-protocol=TLSv1 --ignore-ssl-errors=true --web-security=false /bundle/bundle/programs/server/assets/packages/jazeee_spiderable-longer-timeout/lib/phantom_script.js "https://mywebsite.com/route/path#!:"

What does it generate?

Out of curiosity, are you on a Mac? I've only tested on Linux.

catin-black commented 8 years ago

What does it generate?

Nothing, but on docker image and on server I have installed phantom

jazeee commented 8 years ago

Does it hang forever, or does it terminate with no output? If it is hanging, then you are probably not setting the flag for isReadyForSpiderable . See readme.

On Sep 20, 2016 2:09 AM, "Agent John" notifications@github.com wrote:

What does it generate? Nothing, but on docker image and on server I have installed phantom

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jazeee/jazeee-meteor-spiderable/issues/37#issuecomment-248221298, or mute the thread https://github.com/notifications/unsubscribe-auth/AFXnaJ2d_8tCGL0xsU44pyTmEG1ZW9aJks5qr4aqgaJpZM4KAeE6 .

catin-black commented 8 years ago

Does it hang forever, or does it terminate with no output?

terminate with no output I am using Meteor.isReadyForSpiderable when this.ready(). It does not work even when I have no publications.

jazeee commented 8 years ago

I recommend that you look at testing phantomjs using modified versions of /bundle/bundle/programs/server/assets/packages/jazeee_spiderable-longer-timeout/lib/phantom_script.js Start with a really stripped down version of that script, and verify that you get some output. then add more features until it fails. Without more information, there is no real way to diagnose your issue.

xauxatz commented 7 years ago

I have the same problem. catin-black, did you ever find a solution?

dr-dimitru commented 7 years ago

Please update to latest release. Feel free to reopen it in case if the issue still persists on your end.