本地环境下lean up能正常启动,但lean deploy失败,日志如下:
APPID:6AuSE04L6EyPfNzGNrRhRlYU-gzGzoHsz
麻烦看一下。。。。
部署到:生产环境(web)
压缩项目文件 ...
生成临时文件:/var/folders/1v/sy7dzdvn13b4tj2nyg9dc1480000gn/T/1470616344174.zip
开始上传项目文件 ...
8/8/2016, 8:32:25 AM [INFO] 开始构建 20160808-083225
8/8/2016, 8:32:25 AM [INFO] 正在下载应用代码 ...
8/8/2016, 8:32:26 AM [INFO] 正在解压缩应用代码 ...
8/8/2016, 8:32:26 AM [INFO] 运行环境: nodejs (leanengine/nodejs-base-4.x)
8/8/2016, 8:32:26 AM [INFO] 从之前的构建中恢复依赖项 ...
8/8/2016, 8:32:27 AM [INFO] 正在下载和安装依赖项 ...
8/8/2016, 8:32:40 AM [INFO] 依赖项体积:31.07MB!依赖项较多将导致构建耗时延长。
8/8/2016, 8:32:40 AM [INFO] 缓存最新的依赖项 ...
8/8/2016, 8:32:42 AM [INFO] 存储镜像到仓库 ...
8/8/2016, 8:33:36 AM [INFO] 镜像构建完成:20160808-083225
8/8/2016, 8:33:36 AM [INFO] 开始部署 20160808-083225 到 web1
8/8/2016, 8:33:36 AM [INFO] 正在创建新实例 ...
8/8/2016, 8:33:45 AM [INFO] 正在启动新实例 ...
8/8/2016, 8:34:16 AM [ERROR] 实例日志:[ERROR] npm ERR! There is likely additional logging output above.
[ERROR] npm ERR! Please include the following file with any support request:
[ERROR] npm ERR! /home/leanengine/app/npm-debug.log
[INFO] > MagicNumber@1.0.0 start /home/leanengine/app
[INFO] > node server.js
[ERROR] /home/leanengine/app/node_modules/leanengine/node_modules/leancloud-storage/dist/node/promise.js:314
[ERROR] throw "A promise was resolved even though it had already been " + (this._resolved ? "resolved" : "rejected") + ".";
[ERROR] ^
[ERROR] A promise was resolved even though it had already been resolved.
[ERROR] npm ERR! Linux 3.13.0-92-generic
[ERROR] npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
[ERROR] npm ERR! node v4.4.3
[ERROR] npm ERR! npm v2.15.1
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! MagicNumber@1.0.0 start: node server.js
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the MagicNumber@1.0.0 start script 'node server.js'.
[ERROR] npm ERR! This is most likely a problem with the MagicNumber package,
[ERROR] npm ERR! not with npm itself.
[ERROR] npm ERR! Tell the author that this fails on your system:
[ERROR] npm ERR! node server.js
[ERROR] npm ERR! You can get information on how to open an issue for this project with:
[ERROR] npm ERR! npm bugs MagicNumber
[ERROR] npm ERR! Or if that isn't available, you can get their info via:
[ERROR] npm ERR!
[ERROR] npm ERR! npm owner ls MagicNumber
[ERROR] npm ERR! There is likely additional logging output above.
[ERROR] npm ERR! Please include the following file with any support request:
[ERROR] npm ERR! /home/leanengine/app/npm-debug.log
[INFO] > MagicNumber@1.0.0 start /home/leanengine/app
[INFO] > node server.js
[ERROR] /home/leanengine/app/node_modules/leanengine/node_modules/leancloud-storage/dist/node/promise.js:314
[ERROR] throw "A promise was resolved even though it had already been " + (this._resolved ? "resolved" : "rejected") + ".";
[ERROR] ^
[ERROR] A promise was resolved even though it had already been resolved.
[ERROR] npm ERR! Linux 3.13.0-92-generic
[ERROR] npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
[ERROR] npm ERR! node v4.4.3
[ERROR] npm ERR! npm v2.15.1
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! MagicNumber@1.0.0 start: node server.js
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the MagicNumber@1.0.0 start script 'node server.js'.
[ERROR] npm ERR! This is most likely a problem with the MagicNumber package,
[ERROR] npm ERR! not with npm itself.
[ERROR] npm ERR! Tell the author that this fails on your system:
[ERROR] npm ERR! node server.js
[ERROR] npm ERR! You can get information on how to open an issue for this project with:
[ERROR] npm ERR! npm bugs MagicNumber
[ERROR] npm ERR! Or if that isn't available, you can get their info via:
[ERROR] npm ERR!
[ERROR] npm ERR! npm owner ls MagicNumber
[ERROR] npm ERR! There is likely additional logging output above.
[ERROR] npm ERR! Please include the following file with any support request:
[ERROR] npm ERR! /home/leanengine/app/npm-debug.log
[INFO] > MagicNumber@1.0.0 start /home/leanengine/app
[INFO] > node server.js
[ERROR] /home/leanengine/app/node_modules/leanengine/node_modules/leancloud-storage/dist/node/promise.js:314
[ERROR] throw "A promise was resolved even though it had already been " + (this._resolved ? "resolved" : "rejected") + ".";
[ERROR] ^
[ERROR] A promise was resolved even though it had already been resolved.
[ERROR] npm ERR! Linux 3.13.0-92-generic
[ERROR] npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
[ERROR] npm ERR! node v4.4.3
[ERROR] npm ERR! npm v2.15.1
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! MagicNumber@1.0.0 start: node server.js
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the MagicNumber@1.0.0 start script 'node server.js'.
[ERROR] npm ERR! This is most likely a problem with the MagicNumber package,
[ERROR] npm ERR! not with npm itself.
[ERROR] npm ERR! Tell the author that this fails on your system:
[ERROR] npm ERR! node server.js
[ERROR] npm ERR! You can get information on how to open an issue for this project with:
[ERROR] npm ERR! npm bugs MagicNumber
[ERROR] npm ERR! Or if that isn't available, you can get their info via:
[ERROR] npm ERR!
[ERROR] npm ERR! npm owner ls MagicNumber
[ERROR] npm ERR! There is likely additional logging output above.
[ERROR] npm ERR! Please include the following file with any support request:
[ERROR] npm ERR! /home/leanengine/app/npm-debug.log
8/8/2016, 8:34:16 AM [ERROR] 应用启动失败: 无法访问应用的 Web 端口(connect ECONNREFUSED 10.10.135.193:45116),请确保程序正确启动了 HTTP 服务
8/8/2016, 8:34:16 AM [ERROR] 新建实例已被移除
8/8/2016, 8:34:16 AM [ERROR] 应用启动失败: 无法访问应用的 Web 端口(connect ECONNREFUSED 10.10.135.193:45116),请确保程序正确启动了 HTTP 服务
8/8/2016, 8:34:16 AM [INFO] 部署完成:发生了 1 个错误
抱歉,部署应用失败:应用启动失败: 无法访问应用的 Web 端口(connect ECONNREFUSED 10.10.135.193:45116),请确保程序正确启动了 HTTP 服务