为什么 eb deploy 在第一次部署时失败? [英] why eb deploy failed on first deploy?

查看:27
本文介绍了为什么 eb deploy 在第一次部署时失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了 2 个 NodeJs 环境.它工作正常.

I have created 2 NodeJs environments. It works fine.

后来创建了一个新环境,eb deploy env_name 给我以下错误:

Later created a new environment and eb deploy env_name give me the following error:

Creating application version archive "app-ceb7-200713_223016".
Uploading appname/app-ceb7-xxxxx.zip to S3. This may take a while.
Upload Complete.
2020-07-13 17:00:23    INFO    Environment update is starting.      
2020-07-13 17:00:44    INFO    Deploying new version to instance(s).
2020-07-13 17:00:50    ERROR   [Instance: i-066f599db7ee34] Command failed on instance. 
An unexpected error has occurred [ErrorCode: 0000000001].
2020-07-13 17:00:50    INFO    Command execution completed on all instances. Summary: 
[Successful: 0, Failed: 1].
2020-07-13 17:00:50    ERROR   Unsuccessful command execution on instance id(s) 'i- 
06682f599db76ee34'. Aborting the operation.
2020-07-13 17:00:50    ERROR   Failed to deploy application.        
                                                                  
ERROR: ServiceError - Failed to deploy application.

为什么会这样?提前致谢

Why this happen? Thanks in advance

推荐答案

基于评论.

为了解决该问题,检查了EB 日志以识别错误消息:

To solve the issue, EB logs were inspected to identify the error message:

[app-deploy] - [Install customer specified node.js version]. Stop running the command. Error: unsupported node version >=6, please specify any of node versions in [v12.0.0 v12.1.0 v12.10.0 v12.11.0 v12.11.1 v12.12.0 v12.13.0 v12.13.1 v12.14.0 v12.14.1 v12.15.0 v12.16.0 v12.16.1 v12.16.2 v12.16.3 v12.17.0 v12.18.0 v12.18.1 v12.2.0 v12.3.0 v12.3.1 v12.4.0 v12.5.0 v12.6.0 v12.7.0 v12.8.0 v12.8.1 v12.9.0 v12.9.1]

然后,在package.json中指定正确版本的nodejs:

Then, the correct version of the nodejs was specified in package.json:

"engines": { "node": "12.13.0"},

这篇关于为什么 eb deploy 在第一次部署时失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆