【问题标题】:got error trace when meteor deploy to AWS ubuntu with mupx使用 mupx 将流星部署到 AWS ubuntu 时出现错误跟踪
【发布时间】:2016-08-04 08:14:24
【问题描述】:

我尝试为 npm mupx 将流星部署到 aws ubuntu。当我尝试部署到 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)

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

【问题讨论】:

    标签: ubuntu amazon-web-services meteor deployment


    【解决方案1】:

    我今天只是在同一件事上挣扎了几个小时。

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

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

    dockerImage: 'abernix/meteord:base'
    

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

    您也可以查看this issue,尤其是 abernix 的 cmets。

    请注意,对于 pem 和路径,Mup 不允许您在路径中使用 ~ 并且不会给您一个可搜索的错误。您需要像这样编写完整的 URL:

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

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

    【讨论】:

    • 哦...非常感谢 x100,我对这个问题有很大的压力。最后,我想通了!我只是按照你的解决方案!刚刚将 dockerImage: 'abernix/meteord:base' 添加到 mup.json 中。之后它起作用了。你太棒了!你救了我的命。谢谢兄弟!
    • 我还能再问一件事吗?当使用成功的 80 端口时。但我想使用 8100 端口,所以我从流星编辑了 mup.js 属性:{ env:{ PORT : 8100 // .之后我得到了错误。不正确吗?部署流星或部署到aws服务器后如何更改端口,希望您知道如何处理!谢谢
    • @kai 没问题。我真的不知道如何使用 mup/mupx 更改现有部署的端口。我认为您应该删除当前版本并再次部署。应该会更快。如果您的问题得到解答,请将其标记为已解决。干杯
    猜你喜欢
    • 2016-04-02
    • 2016-08-30
    • 2015-04-16
    • 1970-01-01
    • 2018-04-27
    • 2015-01-21
    • 2017-06-06
    • 1970-01-01
    • 2017-05-18
    相关资源
    最近更新 更多