2015-10-01 9 views
6

こんにちは私は流星のアプリケーションをホストするのに現在Modulus.ioを使用していますが、クラッシュしています。Meteor Appにサーバーエラーがありますか?

私は初めてホスティングをしているので、ログをよく読んでいないので、誰かが間違っていると教えてもらえますか?

at /mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1191:22 
    at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1903:9) 
    at [object Object].g (events.js:180:16) 
    at [object Object].emit (events.js:98:17) 
    at [object Object].Base.__executeAllServerSpecificErrorCallbacks (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/base.js:373:29) 
    at Server.<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/repl_set/ha.js:469:10) 
    at Server.g (events.js:180:16) 
    at Server.emit (events.js:98:17) 
    at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/server.js:567:84) 
    at [object Object].emit (events.js:106:17) 
    at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15) 
    at [object Object].emit (events.js:98:17) 
    at Socket.<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10) 
    at Socket.emit (events.js:95:17) 
    at net.js:441:14 

npm ERR! [email protected] start: `node ../../main` 
npm ERR! Exit status 8 
npm ERR! 
npm ERR! Failed at the [email protected] start script. 
npm ERR! This is most likely a problem with the meteor-dev-bundle package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node ../../main 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls meteor-dev-bundle 
npm ERR! There is likely additional logging output above. 
npm ERR! System Linux 3.13.0-46-generic 
npm ERR! command "/mnt/home/.nvm/v0.10.36/bin/node" "/mnt/home/.nvm/v0.10.36/bin/npm" "start" 
npm ERR! cwd /mnt/app/programs/server 
npm ERR! node -v v0.10.36 
npm ERR! npm -v 1.4.28 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /mnt/app/programs/server/npm-debug.log 
npm ERR! not ok code 0 
Found package.json: ./programs/server/package.json 
Start script specified in package.json: node ../../main 
Initializing Node.js 0.10.36 
Now using node v0.10.36 
Running command: npm start 

> [email protected] start /mnt/app/programs/server 
> node ../../main 

Meteor._wrapAsync has been renamed to Meteor.wrapAsync 
FS.HTTP.unmount: 
{} 
Registered HTTP method URLs: 
/cfs/files/:collectionName/:id/:filename 
/cfs/files/:collectionName/:id 
/cfs/files/:collectionName 

/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/auth/mongodb_scram.js:165 
      if(r.done == false) { 
       ^
TypeError: Cannot read property 'done' of null 
    at /mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/auth/mongodb_scram.js:165:17 
    at /mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1191:22 
    at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1903:9) 
    at [object Object].g (events.js:180:16) 
    at [object Object].emit (events.js:98:17) 
    at [object Object].Base.__executeAllServerSpecificErrorCallbacks (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/base.js:373:29) 
    at Server.<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/repl_set/ha.js:469:10) 
    at Server.g (events.js:180:16) 
    at Server.emit (events.js:98:17) 
    at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/server.js:567:84) 
    at [object Object].emit (events.js:106:17) 
    at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15) 
    at [object Object].emit (events.js:98:17) 
    at Socket.<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10) 
    at Socket.emit (events.js:95:17) 
    at net.js:441:14 

npm ERR! [email protected] start: `node ../../main` 
npm ERR! Exit status 8 
npm ERR! 
npm ERR! Failed at the [email protected] start script. 
npm ERR! This is most likely a problem with the meteor-dev-bundle package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node ../../main 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls meteor-dev-bundle 
npm ERR! There is likely additional logging output above. 
npm ERR! System Linux 3.13.0-46-generic 
npm ERR! command "/mnt/home/.nvm/v0.10.36/bin/node" "/mnt/home/.nvm/v0.10.36/bin/npm" "start" 
npm ERR! cwd /mnt/app/programs/server 
npm ERR! node -v v0.10.36 
npm ERR! npm -v 1.4.28 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /mnt/app/programs/server/npm-debug.log 
npm ERR! not ok code 0 
Found package.json: ./programs/server/package.json 
Start script specified in package.json: node ../../main 
Initializing Node.js 0.10.36 
Now using node v0.10.36 
Running command: npm start 

> [email protected] start /mnt/app/programs/server 
> node ../../main 

Meteor._wrapAsync has been renamed to Meteor.wrapAsync 
FS.HTTP.unmount: 
{} 
Registered HTTP method URLs: 
/cfs/files/:collectionName/:id/:filename 
/cfs/files/:collectionName/:id 
/cfs/files/:collectionName 

/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/auth/mongodb_scram.js:165 
      if(r.done == false) { 
       ^
TypeError: Cannot read property 'done' of null 
    at /mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/auth/mongodb_scram.js:165:17 
    at /mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1191:22 
    at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1903:9) 
    at [object Object].g (events.js:180:16) 
    at [object Object].emit (events.js:98:17) 
    at [object Object].Base.__executeAllServerSpecificErrorCallbacks (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/base.js:373:29) 
    at Server.<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/repl_set/ha.js:469:10) 
    at Server.g (events.js:180:16) 
    at Server.emit (events.js:98:17) 
    at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/server.js:567:84) 
    at [object Object].emit (events.js:106:17) 
    at [object Object].<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15) 
    at [object Object].emit (events.js:98:17) 
    at Socket.<anonymous> (/mnt/app/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10) 
    at Socket.emit (events.js:95:17) 
    at net.js:441:14 

npm ERR! [email protected] start: `node ../../main` 
npm ERR! Exit status 8 
npm ERR! 
npm ERR! Failed at the [email protected] start script. 
npm ERR! This is most likely a problem with the meteor-dev-bundle package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node ../../main 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls meteor-dev-bundle 
npm ERR! There is likely additional logging output above. 
npm ERR! System Linux 3.13.0-46-generic 
npm ERR! command "/mnt/home/.nvm/v0.10.36/bin/node" "/mnt/home/.nvm/v0.10.36/bin/npm" "start" 
npm ERR! cwd /mnt/app/programs/server 
npm ERR! node -v v0.10.36 
npm ERR! npm -v 1.4.28 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /mnt/app/programs/server/npm-debug.log 
npm ERR! not ok code 0 
Found package.json: ./programs/server/package.json 
Start script specified in package.json: node ../../main 
Initializing Node.js 0.10.36 
Now using node v0.10.36 
Running command: npm start 

> [email protected] start /mnt/app/programs/server 
> node ../../main 

私はそれを展開

Welcome to Modulus 
You are logged in as karlson 
[?] Are you sure you want to use project Peer2Pass? (yes) yes 
Meteor project detected... 

WARNING: The output directory is under your source tree. 

21.2 MB written 
Uploading project... 
Upload progress [===================] 100% 
Deploying project into Node.js runtime... 
Starting build. 
Creating directories for build environment. 
Downloading source. 
Executing build. 
Package found: /app/.demeteorized/bundle/programs/server/package.json 
Installing node 0.10.36 
Installing npm 3.3.5 
Installing packages from /app/.demeteorized/bundle/programs/server/package.json 
WARN: npm-shrinkwrap.json will override dependencies declared in package.json. 

> [email protected] install /mnt/input/app/.demeteorized/bundle/programs/server/node_modules/fibers 
> node ./build.js 

`linux-x64-v8-3.14` exists; testing 
Binary is fine; exiting 
[email protected] /mnt/input/app/.demeteorized/bundle/programs/server 
├── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ └─┬ [email protected] 
│ └── [email protected] 
└── [email protected] 

npm WARN EPACKAGEJSON [email protected] No description 
npm WARN EPACKAGEJSON [email protected] No repository field. 
npm WARN EPACKAGEJSON [email protected] No license field. 
v0.10.36 
deploy -> v0.10.36 
Uploading completed build. 
Provisioning and deploying bundle to servos... 
+0

ノードのバージョンとバージョンの流星との間に相違があります。ここでモジュラスをタグ付けしました。これは、このエラーのモジュラスに展開したためですか?ローカルではどうですか?あなたはこれらのエラーをローカルに受け取りますか? – thatgibbyguy

+0

私は完全な流星を再インストールすることをお勧めします:) –

+0

私はこれらのエラーをローカルに受け取りません!サイトは時々動作します! –

答えて

1

メッセージは、あなたがmeteor updateを実行しているように聞こえるコメントをフォームので、私はあなたのアプリケーションが流星1.4.xのリリースにアップグレードされていると仮定します。 Meteor 1.4にはノード4.4.7が必要ですが、ログからModulus CLIがNode 0.10.36を使用していることがわかります。コマンドラインから

{ 
    ... 
    "engines": { 
    "node": "4.4.7", 
    "npm": "3.10.5" 
    } 
} 

modulus deploy --node-version 4.4.3 --npm-version 3.10.5 

または

あなたpackage.jsonでは、次のように新しい流星は、ノードおよびNPMのバージョンをサポートし使用するモジュラスCLIを強制的に試してみてください

関連する問題