运行 mupx 部署时抛出新的 NodeJS 错误
New NodeJS Error Thrown While Running mupx deploy
我不知道为什么会这样。我认真地做了一个小改动(我的一个模板中有一个字符拼写错误)然后我的整个部署就崩溃了并停止工作。
$ mupx deploy
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Configuration file : mup.json
Settings file : settings.json
“ Checkout Kadira!
It's the best way to monitor performance of your app.
Visit: https://kadira.io/mup ”
Meteor app path : /Users/jeremy/Documents/clients/MyAppNameDir/MyAppName
Using buildOptions : {}
Started TaskList: Deploy app 'MyAppName' (linux)
[000.000.000.000] - Uploading bundle
[000.000.000.000] - Uploading bundle: SUCCESS
[000.000.000.000] - Sending environment variables
[000.000.000.000] - Sending environment variables: SUCCESS
[000.000.000.000] - Initializing start script
[000.000.000.000] - Initializing start script: SUCCESS
[000.000.000.000] - Invoking deployment process
[000.000.000.000] - Invoking deployment process: SUCCESS
[000.000.000.000] - Verifying deployment
[000.000.000.000] x Verifying deployment: FAILED
-----------------------------------STDERR-----------------------------------
npm -g install npm@latest
npm WARN deprecated
npm WARN deprecated (Depending on how Node.js was installed on your system, you
npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if
npm WARN deprecated on Windows, run them from an Administrator prompt.)
npm WARN deprecated
npm WARN deprecated If you're running the version of npm bundled with
npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS
npm WARN deprecated will be bundled with a version of npm@2, which has some small
npm WARN deprecated backwards-incompatible changes made to `npm run-script` and
npm WARN deprecated semver behavior.
npm WARN package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
> fibers@1.0.8 install /bundle/bundle/programs/server/node_modules/fibers
> node build.js || nodejs build.js
=> Redeploying previous version of the app
-----------------------------------STDOUT-----------------------------------
To see more logs type 'mup logs --tail=50'
----------------------------------------------------------------------------
22:18:34 ✘ ...clients/MyAppNameDir/MyAppName ClientSideAddIdea ✔
$ mup logs --tail=50
zsh: command not found: mup
22:18:43 ✘ ...clients/MyAppNameDir/MyAppName ClientSideAddIdea ✔
$ mupx logs --tail=50
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Configuration file : mup.json
Settings file : settings.json
[000.000.000.000] at Object.<anonymous> (/bundle/bundle/programs/server/node_modules/fibers/fibers.js:16:8)
[000.000.000.000] at Module._compile (module.js:456:26)
[000.000.000.000] at Object.Module._extensions..js (module.js:474:10)
[000.000.000.000] at Module.load (module.js:356:32)
[000.000.000.000] at Function.Module._load (module.js:312:12)
[000.000.000.000] at Module.require (module.js:364:17)
[000.000.000.000] at require (module.js:380:17)
[000.000.000.000] at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:1:75)
[000.000.000.000] at Module._compile (module.js:456:26)
[000.000.000.000] at Object.Module._extensions..js (module.js:474:10)
[000.000.000.000] npm WARN deprecated This version of npm lacks support for important features,
[000.000.000.000] npm WARN deprecated such as scoped packages, offered by the primary npm
[000.000.000.000] npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the
[000.000.000.000] npm WARN deprecated latest stable version. To upgrade to npm@2, run:
[000.000.000.000] npm WARN deprecated
[000.000.000.000] npm WARN deprecated npm -g install npm@latest-2
[000.000.000.000] npm WARN deprecated
[000.000.000.000] npm WARN deprecated To upgrade to the latest stable version, run:
[000.000.000.000] npm WARN deprecated
[000.000.000.000] npm WARN deprecated npm -g install npm@latest
[000.000.000.000] npm WARN deprecated
[000.000.000.000] npm WARN deprecated (Depending on how Node.js was installed on your system, you
[000.000.000.000] npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if
[000.000.000.000] npm WARN deprecated on Windows, run them from an Administrator prompt.)
[000.000.000.000] npm WARN deprecated
[000.000.000.000] npm WARN deprecated If you're running the version of npm bundled with
[000.000.000.000] npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS
[000.000.000.000] npm WARN deprecated will be bundled with a version of npm@2, which has some small
[000.000.000.000] npm WARN deprecated backwards-incompatible changes made to `npm run-script` and
[000.000.000.000] npm WARN deprecated semver behavior.
[000.000.000.000] npm WARN package.json meteor-dev-bundle@0.0.0 No description
[000.000.000.000] npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
[000.000.000.000] npm WARN package.json meteor-dev-bundle@0.0.0 No README data
[000.000.000.000] npm WARN cannot run in wd meteor-dev-bundle@0.0.0 node npm-rebuild.js (wd=/bundle/bundle/programs/server)
[000.000.000.000] => Starting meteor app on port:80
[000.000.000.000]
[000.000.000.000] /bundle/bundle/programs/server/node_modules/fibers/fibers.js:16
[000.000.000.000] throw new Error('`'+ modPath+ '.node` is missing. Try reinstalling `node-fibe
[000.000.000.000] ^
[000.000.000.000] Error: `/bundle/bundle/programs/server/node_modules/fibers/bin/linux-x64-v8-3.14/fibers.node` is missing. Try reinstalling `node-fibers`?
[000.000.000.000] at Object.<anonymous> (/bundle/bundle/programs/server/node_modules/fibers/fibers.js:16:8)
[000.000.000.000] at Module._compile (module.js:456:26)
[000.000.000.000] at Object.Module._extensions..js (module.js:474:10)
[000.000.000.000] at Module.load (module.js:356:32)
[000.000.000.000] at Function.Module._load (module.js:312:12)
[000.000.000.000] at Module.require (module.js:364:17)
[000.000.000.000] at require (module.js:380:17)
[000.000.000.000] at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:1:75)
[000.000.000.000] at Module._compile (module.js:456:26)
以上错误也贴在this gist
(注意:出于隐私原因,我删除了客户的应用程序名称并替换为 "MyAppName" 和 "MyAppNameDir",并且服务器 IP 已被屏蔽为 000.000.000.000)
有人知道新的警告节点正在抛出吗?也许这就是问题所在?
任何人以前都见过这个,或者有解决方法可以让事情重新开始。
这 崩溃了 我的生产服务器。网站完全崩溃!
好吧...在发布这个之后我就回去 运行
$ mupx deploy
再次......它运行良好 - 部署没有问题。
我发现将来要避免这种情况的另一件事是在我的 AWS 实例上安装 NodeJS。关注 this link 即可。我不确定他们为什么不直接将其添加到 mupx 设置中...
我还找到了一些有用的文档(如果事情不起作用,我将转向下一步)
https://www.npmjs.com/package/mupx 有一些很棒的文档,他们说
"One of the most common problems is your Node version getting out of date. In that case, see “Updating” section above."
所以,如果您 运行 遇到这个问题 - 也许最好的办法是 运行
$ npm update mupx -g
根据:https://www.npmjs.com/package/mupx#updating-mup
然而,对我来说这很简单 运行在等待几分钟后再 $ mupx deploy
一次(实际上有点令人不安)
我不知道为什么会这样。我认真地做了一个小改动(我的一个模板中有一个字符拼写错误)然后我的整个部署就崩溃了并停止工作。
$ mupx deploy
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Configuration file : mup.json
Settings file : settings.json
“ Checkout Kadira!
It's the best way to monitor performance of your app.
Visit: https://kadira.io/mup ”
Meteor app path : /Users/jeremy/Documents/clients/MyAppNameDir/MyAppName
Using buildOptions : {}
Started TaskList: Deploy app 'MyAppName' (linux)
[000.000.000.000] - Uploading bundle
[000.000.000.000] - Uploading bundle: SUCCESS
[000.000.000.000] - Sending environment variables
[000.000.000.000] - Sending environment variables: SUCCESS
[000.000.000.000] - Initializing start script
[000.000.000.000] - Initializing start script: SUCCESS
[000.000.000.000] - Invoking deployment process
[000.000.000.000] - Invoking deployment process: SUCCESS
[000.000.000.000] - Verifying deployment
[000.000.000.000] x Verifying deployment: FAILED
-----------------------------------STDERR-----------------------------------
npm -g install npm@latest
npm WARN deprecated
npm WARN deprecated (Depending on how Node.js was installed on your system, you
npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if
npm WARN deprecated on Windows, run them from an Administrator prompt.)
npm WARN deprecated
npm WARN deprecated If you're running the version of npm bundled with
npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS
npm WARN deprecated will be bundled with a version of npm@2, which has some small
npm WARN deprecated backwards-incompatible changes made to `npm run-script` and
npm WARN deprecated semver behavior.
npm WARN package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
> fibers@1.0.8 install /bundle/bundle/programs/server/node_modules/fibers
> node build.js || nodejs build.js
=> Redeploying previous version of the app
-----------------------------------STDOUT-----------------------------------
To see more logs type 'mup logs --tail=50'
----------------------------------------------------------------------------
22:18:34 ✘ ...clients/MyAppNameDir/MyAppName ClientSideAddIdea ✔
$ mup logs --tail=50
zsh: command not found: mup
22:18:43 ✘ ...clients/MyAppNameDir/MyAppName ClientSideAddIdea ✔
$ mupx logs --tail=50
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Configuration file : mup.json
Settings file : settings.json
[000.000.000.000] at Object.<anonymous> (/bundle/bundle/programs/server/node_modules/fibers/fibers.js:16:8)
[000.000.000.000] at Module._compile (module.js:456:26)
[000.000.000.000] at Object.Module._extensions..js (module.js:474:10)
[000.000.000.000] at Module.load (module.js:356:32)
[000.000.000.000] at Function.Module._load (module.js:312:12)
[000.000.000.000] at Module.require (module.js:364:17)
[000.000.000.000] at require (module.js:380:17)
[000.000.000.000] at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:1:75)
[000.000.000.000] at Module._compile (module.js:456:26)
[000.000.000.000] at Object.Module._extensions..js (module.js:474:10)
[000.000.000.000] npm WARN deprecated This version of npm lacks support for important features,
[000.000.000.000] npm WARN deprecated such as scoped packages, offered by the primary npm
[000.000.000.000] npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the
[000.000.000.000] npm WARN deprecated latest stable version. To upgrade to npm@2, run:
[000.000.000.000] npm WARN deprecated
[000.000.000.000] npm WARN deprecated npm -g install npm@latest-2
[000.000.000.000] npm WARN deprecated
[000.000.000.000] npm WARN deprecated To upgrade to the latest stable version, run:
[000.000.000.000] npm WARN deprecated
[000.000.000.000] npm WARN deprecated npm -g install npm@latest
[000.000.000.000] npm WARN deprecated
[000.000.000.000] npm WARN deprecated (Depending on how Node.js was installed on your system, you
[000.000.000.000] npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if
[000.000.000.000] npm WARN deprecated on Windows, run them from an Administrator prompt.)
[000.000.000.000] npm WARN deprecated
[000.000.000.000] npm WARN deprecated If you're running the version of npm bundled with
[000.000.000.000] npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS
[000.000.000.000] npm WARN deprecated will be bundled with a version of npm@2, which has some small
[000.000.000.000] npm WARN deprecated backwards-incompatible changes made to `npm run-script` and
[000.000.000.000] npm WARN deprecated semver behavior.
[000.000.000.000] npm WARN package.json meteor-dev-bundle@0.0.0 No description
[000.000.000.000] npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
[000.000.000.000] npm WARN package.json meteor-dev-bundle@0.0.0 No README data
[000.000.000.000] npm WARN cannot run in wd meteor-dev-bundle@0.0.0 node npm-rebuild.js (wd=/bundle/bundle/programs/server)
[000.000.000.000] => Starting meteor app on port:80
[000.000.000.000]
[000.000.000.000] /bundle/bundle/programs/server/node_modules/fibers/fibers.js:16
[000.000.000.000] throw new Error('`'+ modPath+ '.node` is missing. Try reinstalling `node-fibe
[000.000.000.000] ^
[000.000.000.000] Error: `/bundle/bundle/programs/server/node_modules/fibers/bin/linux-x64-v8-3.14/fibers.node` is missing. Try reinstalling `node-fibers`?
[000.000.000.000] at Object.<anonymous> (/bundle/bundle/programs/server/node_modules/fibers/fibers.js:16:8)
[000.000.000.000] at Module._compile (module.js:456:26)
[000.000.000.000] at Object.Module._extensions..js (module.js:474:10)
[000.000.000.000] at Module.load (module.js:356:32)
[000.000.000.000] at Function.Module._load (module.js:312:12)
[000.000.000.000] at Module.require (module.js:364:17)
[000.000.000.000] at require (module.js:380:17)
[000.000.000.000] at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:1:75)
[000.000.000.000] at Module._compile (module.js:456:26)
以上错误也贴在this gist
(注意:出于隐私原因,我删除了客户的应用程序名称并替换为 "MyAppName" 和 "MyAppNameDir",并且服务器 IP 已被屏蔽为 000.000.000.000)
有人知道新的警告节点正在抛出吗?也许这就是问题所在?
任何人以前都见过这个,或者有解决方法可以让事情重新开始。
这 崩溃了 我的生产服务器。网站完全崩溃!
好吧...在发布这个之后我就回去 运行
$ mupx deploy
再次......它运行良好 - 部署没有问题。
我发现将来要避免这种情况的另一件事是在我的 AWS 实例上安装 NodeJS。关注 this link 即可。我不确定他们为什么不直接将其添加到 mupx 设置中...
我还找到了一些有用的文档(如果事情不起作用,我将转向下一步)
https://www.npmjs.com/package/mupx 有一些很棒的文档,他们说
"One of the most common problems is your Node version getting out of date. In that case, see “Updating” section above."
所以,如果您 运行 遇到这个问题 - 也许最好的办法是 运行
$ npm update mupx -g
根据:https://www.npmjs.com/package/mupx#updating-mup
然而,对我来说这很简单 运行在等待几分钟后再 $ mupx deploy
一次(实际上有点令人不安)