代码之家  ›  专栏  ›  技术社区  ›  Mike

无法在Elastic Beanstalk中设置配置

  •  0
  • Mike  · 技术社区  · 6 年前

    我有4个弹性Beanstalk部署:3个是Corretto 8,另一个是Corretto 11。

    在Corretto 8部署上,我可以毫无问题地设置新配置。然而,在Corretto 11实例上,任何设置新配置的尝试都会失败并导致回滚。

    科雷托版本可能不是问题,但这是我能看到的唯一区别。所有4个应用程序都是作为web服务器运行的Spring Boot应用程序(即带有公开web端口的嵌入式tomcat)。我试图设置完全相同的配置名称和值,但只在一个实例上失败。

    我试图设置的配置非常简单:

    VALIDATE_RENEWALS = true
    

    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.
    

    我还下载了该实例的全套日志,没有看到任何明显的内容。应用程序stdout没有任何错误或异常,它只是正常启动,然后被终止。其他日志文件都没有关于上述时间的消息,所以我真的不确定还能看到什么。

    编辑

    《纽约时报》的报道并不一致,但我确实看到了这一点 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
    
    0 回复  |  直到 6 年前