我通过Elastic Beanstalk创建环境之后,用code pipeline关联github中的springcloud项目deploy失败了,下面是具体报错原因

0

在此处输入图片描述 在此处输入图片描述 Deployment completed, but with errors: 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. Failed to deploy application. Unsuccessful command execution on instance id(s) 'i-076897bfca156e1b7'. Aborting the operation. [Instance: i-076897bfca156e1b7] Command failed on instance. Return code: 1 Output: Engine execution has encountered an error.. Instance deployment failed. For details, see 'eb-engine.log'. 能帮我看看吗? 这是我的配置 在此处输入图片描述 在此处输入图片描述 在此处输入图片描述 在此处输入图片描述 在此处输入图片描述

2개 답변
1

You need to check the contents of "eb-engine.log" as described in the log.
Please refer to the following document to check the logs.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.logging.html

profile picture
전문가
답변함 일 년 전
  • eb-engine.log2023/04/06 15:02:26.715112 [ERROR] An error occurred during execution of command [app-deploy] - [CheckProcfileForJavaApplication]. Stop running the command. Error: there is no Procfile and no .jar file at root level of your source bundle

    2023/04/06 15:02:26.715115 [INFO] Executing cleanup logic 2023/04/06 15:02:26.715182 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1680793346715,"severity":"ERROR"}]}]}

  • can you tell mehow to fix it?

  • can you tell me how to fix it?

  • It is possible that the folder is not zipped properly.
    Zip the files and subfolders, not the parent folder, as described in the following documentation.

    https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-sourcebundle.html#using-features.deployment.source.gui

0

eb-engine.log: 2023/04/06 15:02:26.715112 [ERROR] An error occurred during execution of command [app-deploy] - [CheckProcfileForJavaApplication]. Stop running the command. Error: there is no Procfile and no .jar file at root level of your source bundle

2023/04/06 15:02:26.715115 [INFO] Executing cleanup logic 2023/04/06 15:02:26.715182 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1680793346715,"severity":"ERROR"}]}]}

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠