2014-10-06 56 views
2

我找不到與我的問題相關的現有帖子。在數字海洋液滴上,mup設置沒有問題,但是當我嘗試部署時,出現以下錯誤。有任何想法嗎?謝謝!數字海洋上的流星(mup)內存問題

[email protected]:~/ts-deploy# mup deploy 

Meteor Up: Production Quality Meteor Deployments 

Building Started: /root/TS/ 
Bundling Error: code=137, error: 
-------------------STDOUT------------------- 

Figuring out the best package versions to use. This may take a moment. 

-------------------STDERR------------------- 
bash: line 1: 31217 Killed meteor build --directory /tmp/dc37af3e-eca0-4a19-bf1a-d6d38bb8f517 

以下是日誌。節點-v指示我正在使用0.10.31。如何檢查哪個腳本正在退出並顯示錯誤?任何其他想法?謝謝!

error: Forever detected script exited with code: 1 
error: Script restart attempt #106 
Meteor requires Node v0.10.29 or later. 
error: Forever detected script exited with code: 1 
error: Script restart attempt #107 
Meteor requires Node v0.10.29 or later. 
error: Forever detected script exited with code: 1 
error: Script restart attempt #108 

stepping down to gid: meteoruser 
stepping down to uid: meteoruser 

後,我又回到了DO液滴的舊的備份,並重新運行MUP設置和MUP部署,我現在在命令行輸出

Building Started: /root/TS 
Bundling Error: code=134, error: 
-------------------STDOUT------------------- 

Figuring out the best package versions to use. This may take a moment. 

-------------------STDERR------------------- 
FATAL ERROR: JS Allocation failed - process out of memory 
bash: line 1: 1724 Aborted     (core dumped) meteor build --directory /tmp/bfdbcb45-9c61-435f-9875-3fb304358996 

得到這個,這在日誌:

>> stepping down to gid: meteoruser 
>> stepping down to uid: meteoruser 
Exception while invoking method 'login' TypeError: Cannot read property '0' of undefined 
    at ServiceConfiguration.configurations.remove.service (app/server/accounts.js:7:26) 
    at Object.Accounts.insertUserDoc (packages/accounts-base/accounts_server.js:1024) 
    at Object.Accounts.updateOrCreateUserFromExternalService (packages/accounts-base/accounts_server.js:1189) 
    at Package (packages/accounts-oauth/oauth_server.js:45) 
    at packages/accounts-base/accounts_server.js:383 
    at tryLoginMethod (packages/accounts-base/accounts_server.js:186) 
    at runLoginHandlers (packages/accounts-base/accounts_server.js:380) 
    at Meteor.methods.login (packages/accounts-base/accounts_server.js:434) 
    at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1594) 
    at packages/ddp/livedata_server.js:648 
Exception while invoking method 'login' TypeError: Cannot read property '0' of undefined 
    at ServiceConfiguration.configurations.remove.service (app/server/accounts.js:7:26) 
    at Object.Accounts.insertUserDoc (packages/accounts-base/accounts_server.js:1024) 
    at Object.Accounts.updateOrCreateUserFromExternalService (packages/accounts-base/accounts_server.js:1189) 
    at Package (packages/accounts-oauth/oauth_server.js:45) 
    at packages/accounts-base/accounts_server.js:383 
    at tryLoginMethod (packages/accounts-base/accounts_server.js:186) 
    at runLoginHandlers (packages/accounts-base/accounts_server.js:380) 
    at Meteor.methods.login (packages/accounts-base/accounts_server.js:434) 
    at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1594) 
    at packages/ddp/livedata_server.js:648 

回答

0

這僅通過交換空間增加至1GB的工作對我來說:

Make all swap off 
sudo swapoff -a 

Resize the swapfile 
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 

Make swapfile usable 
sudo mkswap /swapfile 

Make swapon again 
sudo swapon /swapfile