Usando AWS re:Post, accetti AWS re:Post Termini di utilizzo

我通过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 Risposte
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
ESPERTO
con risposta 2 anni fa
  • 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"}]}]}

con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande