Mik*_*ike 6 amazon-elastic-beanstalk
我有 4 个 Elastic Beanstalk 部署:3 个是 Corretto 8,另一个是 Corretto 11。
在 Corretto 8 部署中,我可以毫无问题地设置新配置。但是,在 Corretto 11 实例上,任何设置新配置的尝试都会失败并导致回滚。
Corretto 版本可能不是问题,但这是我能看到的唯一区别。所有 4 个应用程序都是作为 Web 服务器运行的 Spring Boot 应用程序(即带有公开 Web 端口的嵌入式 tomcat)。我试图设置完全相同的配置名称和值,但它仅在一个实例上失败。
我尝试设置的配置非常简单:
VALIDATE_RENEWALS = true
Run Code Online (Sandbox Code Playgroud)
即使只是尝试设置DEBUG = true也会导致失败和回滚。
我没有从控制台看到很多有关失败的信息。这是事件日志:
2020-03-16 13:55:17 UTC-0600 INFO The environment was reverted to the previous configuration setting.
2020-03-16 13:54:45 UTC-0600 ERROR During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.
2020-03-16 13:54:45 UTC-0600 ERROR Failed to deploy configuration.
2020-03-16 13:54:45 UTC-0600 ERROR Unsuccessful command execution on instance id(s) 'i-00553f4ac36afd327'. Aborting the operation.
2020-03-16 13:54:45 UTC-0600 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2020-03-16 13:54:45 UTC-0600 ERROR [Instance: i-00553f4ac36afd327] Command failed on instance. An unexpected error has occurred [ErrorCode: 0000000001].
2020-03-16 13:54:20 UTC-0600 INFO Updating environment XXX's configuration settings.
2020-03-16 13:54:15 UTC-0600 INFO Environment update is starting.
Run Code Online (Sandbox Code Playgroud)
我还下载了该实例的完整日志集,但没有看到任何明显的内容。应用程序标准输出没有任何错误或异常,它只是正常启动然后终止。其他日志文件都没有上述时间的消息,所以我真的不确定我还能看什么。
编辑
时间不一致,但我确实在eb-engine.log文件中看到了这一点:
2020/03/16 17:54:38.508634 [INFO] checking whether command is applicable to this instance...
2020/03/16 17:54:38.508658 [INFO] this command is applicable to the instance, thus instance should execute command
2020/03/16 17:54:38.508665 [INFO] check whether this is an enhanced env...
2020/03/16 17:54:38.508794 [INFO] Executing instruction: StageJavaApplication
2020/03/16 17:54:38.508858 [ERROR] GetArchivedFileType with file /opt/elasticbeanstalk/deployment/app_source_bundle failed with error open /opt/elasticbeanstalk/deployment/app_source_bundle: no such file or directory
2020/03/16 17:54:38.508868 [ERROR] An error occurred during execution of command [config-deploy] - [StageJavaApplication]. Stop running the command. Error: staging java app failed with error GetArchivedFileType with file /opt/elasticbeanstalk/deployment/app_source_bundle failed with error open /opt/elasticbeanstalk/deployment/app_source_bundle: no such file or directory
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
829 次 |
| 最近记录: |