Meteor Up(mup)部署失败

5

编辑: 在Github存储库中打开问题。 https://github.com/arunoda/meteor-up/issues/87

我尝试设置Meteor up以运行meteor app。

当我运行mup deploy时,这是我得到的错误:

调用部署过程:失败

    -----------------------------------STDERR-----------------------------------
    e-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /opt/give/tmp/bundle/programs/server/node_modules/bcrypt
    gyp ERR! node -v v0.10.28
    gyp ERR! node-gyp -v v0.13.0
    gyp ERR! not ok
    npm ERR! bcrypt@0.7.8 install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the bcrypt@0.7.8 install script.
    npm ERR! This is most likely a problem with the bcrypt package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     node-gyp rebuild
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls bcrypt
    npm ERR! There is likely additional logging output above.

    npm ERR! System Linux 3.13.0-24-generic
    npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "bcrypt"
    npm ERR! cwd /opt/give/tmp/bundle/programs/server
    npm ERR! node -v v0.10.28
    npm ERR! npm -v 1.4.9
    npm ERR! code ELIFECYCLE
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR!     /opt/give/tmp/bundle/programs/server/npm-debug.log
    npm ERR! not ok code 0
    -----------------------------------STDOUT-----------------------------------

    > fibers@1.0.1 install /opt/give/tmp/bundle/programs/server/node_modules/fibers
    > node ./build.js

    `linux-x64-v8-3.14` exists; testing
    Binary is fine; exiting
    fibers@1.0.1 node_modules/fibers

    > bcrypt@0.7.8 install /opt/give/tmp/bundle/programs/server/node_modules/bcrypt
    > node-gyp rebuild

    ----------------------------------------------------------------------------

我还运行了mup logs -n 300命令,得到以下响应。

error:   Cannot start forever
error:   script /opt/give/app/main.js does not exist.

请问我在这里做错了什么?


你在执行 mup setup 命令之前运行了吗? - Hubert OG
是的,我之前运行了mup setup - JoshJoe
1
也获取到了这个。 - user592419
昨天我在第十次部署到服务器后遇到了这个问题。在此之前,一切都很顺利,但现在我遇到了bcrypt问题。我正在一个小型免费的AWS 30千字节Ubuntu机器上运行。它可能已经用完了磁盘空间吗?因为每次mup部署都会创建临时数据并且不会清理?否则,在过去的两天中进行了许多成功的部署,如何会出现部署失败的情况。真的很奇怪。 - Mattijs
@Mattijs 运行 df -h,还有剩余空间吗? - JoshJoe
是的,我昨天执行了那个命令。当时有30GB中的28GB可用空间。所以我不知道发生了什么事情。昨天我将实例关闭一天后(并从AWS获得了新的IP地址),又能够重新部署。非常奇怪的问题。希望不会再次发生。 - Mattijs
1个回答

4

我将服务器恢复到了早前的状态,并重新安装了mup,并将安装nodejs设置为false。我还使用sudo npm install n -g安装了node v0.10.29,然后运行mup initmup setupmup deploy,这一次成功了。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接