2015-11-02 98 views
1

使用Meteor Up在Digital Ocean上將Meteor項目部署到Ubuntu 14.04(內核:Ubuntu 14.04 x64 vmlinuz-3.13.0-57-generic)實例時遇到問題。在部署到Digital Ocean時出現Meteor Up錯誤,Ubuntu 14.04

mup setup運行良好,所以在mup.json中沒有問題。

然後,當我跑mup deploy我得到:

Started TaskList: Deploy app 'stocksearch' (linux) 
[x.x.x.x] - Uploading bundle 
[x.x.x.x] - Uploading bundle: SUCCESS 
[x.x.x.x] - Setting up Environment Variables 
[x.x.x.x] - Setting up Environment Variables: SUCCESS 
[x.x.x.x] - Invoking deployment process 
[x.x.x.x] x Invoking deployment process: FAILED 

-----------------------------------STDERR----------------------------------- 
de_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release" 
gyp ERR! cwd /opt/stocksearch/tmp/bundle/programs/server/node_modules/fibers 
gyp ERR! node -v v4.2.1 
gyp ERR! node-gyp -v v3.0.3 
gyp ERR! not ok 
Build failed 
npm ERR! Linux 3.13.0-57-generic 
npm ERR! argv "/opt/nodejs/bin/node" "/usr/bin/npm" "install" 
npm ERR! node v4.2.1 
npm ERR! npm v2.14.7 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] install: `node ./build.js` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node ./build.js'. 
npm ERR! This is most likely a problem with the fibers package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node ./build.js 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls fibers 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /opt/stocksearch/tmp/bundle/programs/server/npm-debug.log 
-----------------------------------STDOUT----------------------------------- 
s 
[email protected] node_modules/bindings 

[email protected] node_modules/nodeunit 
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 
make: Entering directory `/opt/stocksearch/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build' 
    CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o 
    CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o 
    CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o 
make: Leaving directory `/opt/stocksearch/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build' 

> [email protected] install /opt/stocksearch/tmp/bundle/programs/server/node_modules/fibers 
> node ./build.js 

make: Entering directory `/opt/stocksearch/tmp/bundle/programs/server/node_modules/fibers/build' 
    CXX(target) Release/obj.target/fibers/src/fibers.o 
make: Leaving directory `/opt/stocksearch/tmp/bundle/programs/server/node_modules/fibers/build' 
---------------------------------------------------------------------------- 

我可以看到的問題是纖維,但不知道它爲什麼失敗。

任何想法?謝謝。

回答

4

嘗試使用nodeVersion: 0.10.40

+0

這實際上工作和應用程序現在部署!但爲什麼呢?它是mup還是meteor或者與最新穩定節點不兼容的服務器? –

+1

@Arturs Demiters它是流星本身。見這個頁面https://forums.meteor.com/t/meteor-nodejs-0-12/2769 – mwarren

+0

@mwarren謝謝! –