当meteor使用mupx部署到AWS ubuntu时出现错误跟踪

时间:2016-08-04 08:14:24

标签: ubuntu amazon-web-services meteor deployment

我尝试将meteor部署到us ubuntu为npm mupx。当我尝试部署到aws ubuntu时,我收到了一个错误。这是我的错误代码,对此有何想法?请帮帮我。

[**.**.**.*] 2016-08-04T08:04:44.262760219Z npm WARN deprecated This version of npm lacks support for important features,
[**.**.**.*] 2016-08-04T08:04:44.263078622Z npm WARN deprecated such as scoped packages, offered by the primary npm
[**.**.**.*] 2016-08-04T08:04:44.263608859Z npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the
[**.**.**.*] 2016-08-04T08:04:44.263841265Z npm WARN deprecated latest stable version. To upgrade to npm@2, run:
[**.**.**.*] 2016-08-04T08:04:44.264022091Z npm WARN deprecated 
[**.**.**.*] 2016-08-04T08:04:44.264214145Z npm WARN deprecated   npm -g install npm@latest-2
[**.**.**.*] 2016-08-04T08:04:44.264388418Z npm WARN deprecated 
[**.**.**.*] 2016-08-04T08:04:44.264582942Z npm WARN deprecated To upgrade to the latest stable version, run:
[**.**.**.*] 2016-08-04T08:04:44.264753708Z npm WARN deprecated 
[**.**.**.*] 2016-08-04T08:04:44.264955187Z npm WARN deprecated   npm -g install npm@latest
[**.**.**.*] 2016-08-04T08:04:44.265132059Z npm WARN deprecated 
[**.**.**.*] 2016-08-04T08:04:44.265319246Z npm WARN deprecated (Depending on how Node.js was installed on your system, you
[**.**.**.*] 2016-08-04T08:04:44.265507812Z npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if
[**.**.**.*] 2016-08-04T08:04:44.265698699Z npm WARN deprecated on Windows, run them from an Administrator prompt.)
[**.**.**.*] 2016-08-04T08:04:44.265870846Z npm WARN deprecated 
[**.**.**.*] 2016-08-04T08:04:44.266053678Z npm WARN deprecated If you're running the version of npm bundled with
[**.**.**.*] 2016-08-04T08:04:44.266249940Z npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS
[**.**.**.*] 2016-08-04T08:04:44.266454393Z npm WARN deprecated will be bundled with a version of npm@2, which has some small
[**.**.**.*] 2016-08-04T08:04:44.266764265Z npm WARN deprecated backwards-incompatible changes made to `npm run-script` and
[**.**.**.*] 2016-08-04T08:04:44.266962265Z npm WARN deprecated semver behavior.
[**.**.**.*] 2016-08-04T08:04:44.500691274Z npm WARN package.json meteor-dev-bundle@0.0.0 No description
[**.**.**.*] 2016-08-04T08:04:44.504356284Z npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
[**.**.**.*] 2016-08-04T08:04:44.507612660Z npm WARN package.json meteor-dev-bundle@0.0.0 No README data
[**.**.**.*] 2016-08-04T08:04:44.597973214Z npm WARN cannot run in wd meteor-dev-bundle@0.0.0 node npm-rebuild.js (wd=/bundle/bundle/programs/server)
[**.**.**.*] 2016-08-04T08:04:44.615599841Z => Starting meteor app on port:80
[**.**.**.*] 2016-08-04T08:04:44.675588035Z 
[**.**.**.*] 2016-08-04T08:04:44.675961880Z assert.js:93
[**.**.**.*] 2016-08-04T08:04:44.676233801Z   throw new assert.AssertionError({
[**.**.**.*] 2016-08-04T08:04:44.676351801Z         ^
[**.**.**.*] 2016-08-04T08:04:44.677859197Z AssertionError: "undefined" === "function"
[**.**.**.*] 2016-08-04T08:04:44.677870250Z     at wrapPathFunction (/bundle/bundle/programs/server/mini-files.js:77:10)
[**.**.**.*] 2016-08-04T08:04:44.677874284Z     at Object.<anonymous> (/bundle/bundle/programs/server/mini-files.js:108:24)
[**.**.**.*] 2016-08-04T08:04:44.677892655Z     at Module._compile (module.js:456:26)
[**.**.**.*] 2016-08-04T08:04:44.677896149Z     at Object.Module._extensions..js (module.js:474:10)
[**.**.**.*] 2016-08-04T08:04:44.677898899Z     at Module.load (module.js:356:32)
[**.**.**.*] 2016-08-04T08:04:44.677901570Z     at Function.Module._load (module.js:312:12)
[**.**.**.*] 2016-08-04T08:04:44.677904229Z     at Module.require (module.js:364:17)
[**.**.**.*] 2016-08-04T08:04:44.677906984Z     at require (module.js:380:17)
[**.**.**.*] 2016-08-04T08:04:44.677909741Z     at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
[**.**.**.*] 2016-08-04T08:04:44.677912674Z     at Module._compile (module.js:456:26)

如果你对这笔交易有任何了解,请告诉我任何解决方案!

1 个答案:

答案 0 :(得分:0)

我今天只是在同样的事情上挣扎了几个小时。

您当前的部署具有节点版本v0.x.x(在MupX中硬编码),而Meteor 1.4需要v4.4.7。这就是我所知道的主要原因。

我是如何解决这个问题的:我使用mongodump进行了备份,将其下载到我的计算机上,从服务器上删除了所有内容,由KadiraHQ安装了Mup(昨天更新),进行了设置并将此docker映像包含在内选项:

dockerImage: 'abernix/meteord:base'

我做了mup deploy然后mongorestore来导入数据库。

您还可以查看this issue,尤其是abernix的评论。

请注意,对于pem和path,Mup不允许你在路径中使用〜并且不会给你一个可搜索的错误。您需要编写完整的URL,如下所示:

pem: '/Users/luna/.ssh/id_rsa'

希望这会有所帮助,如果你卡在某个地方,请告诉我。