【问题标题】:Meteor Spiderable ErrorsMeteor Spiderable 错误
【发布时间】:2014-09-10 07:51:15
【问题描述】:

我的 phantomjs/spiderable 包在生产中不断失败。

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.

如果我转到网站上的常用网址,我看不到错误,但如果我跟踪日志,这种情况经常发生。关于如何调试和解决这个问题的任何想法?

【问题讨论】:

  • 和我一样。这方面有什么进展吗?
  • 这里也是如此......显然这没有任何吸引力
  • 生产服务器上肯定安装了 PhantomJS 吗?
  • 你可以尝试安装different forks的spiderable包。我们使用jazeee:spiderable-longer-timeout,它就像一个魅力

标签: meteor phantomjs


【解决方案1】:

Spiderable 以非常不可靠而闻名。如果可以的话,我建议使用 Prerender:http://prerender.io

【讨论】:

    【解决方案2】:

    Spirerable 包仅用作 phantomjs 的包装器。阅读笔记:

    如果您使用流星包部署应用程序,则必须在 $PATH 中的某处安装 phantomjs (http://phantomjs.org)。如果你使用meteor deploy,这已经被处理好了。

    所以,你必须自己在服务器上安装 phantomjs:

    sudo npm install phantomjs
    

    这些软件包可能会有所帮助:

    dfischer:phantomjs

    meteor add dfischer:phantomjs
    

    gadicohen:phantomjs

    meteor add gadicohen:phantomjs
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-23
      • 1970-01-01
      • 2016-12-20
      • 2014-10-03
      相关资源
      最近更新 更多