我通过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 Antworten
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
EXPERTE
beantwortet vor einem Jahr
  • 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"}]}]}

beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen