Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor Spiderable Errors

My phantomjs/spiderable package keeps failing on production.

spiderable: phantomjs failed: Error: Command failed:
    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
spiderable: phantomjs failed: Error: Command failed:
    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
spiderable: phantomjs failed: Error: Command failed:
    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
spiderable: phantomjs failed: Error: Command failed:
    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
spiderable: phantomjs failed: Error: Command failed:
    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

/mnt/data/2/programs/server/packages/meteorhacks:kadira.js:2569
    throw err;
          ^
TypeError: Cannot read property 'stack' of null
    at Object.Meteor._debug (packages/meteorhacks:kadira/lib/hijack/error.js:53)
    at packages/spiderable/spiderable_server.js:101
    at ChildProcess.exithandler (child_process.js:646:7)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
[2014-09-10T07:44:15.144Z] Application CRASH detected. Exit code 7.

If I go to a usual url on the site I don't see the error but if I tail the logs this happens pretty frequently. Any idea on how to debug and figure this out?

like image 424
Daniel Fischer Avatar asked Sep 10 '14 07:09

Daniel Fischer


1 Answers

Spiderable is known for being pretty unreliable. I suggest using Prerender instead if you can: http://prerender.io

like image 135
Sacha Avatar answered Sep 22 '22 08:09

Sacha