4 Answers
- Newest
- Most votes
- Most comments
0
Hello.
Are there any other errors output to "eb-engine.log"?
I think a more detailed log is output to "eb-engine.log".
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.logging.html
0
Hy,
thank you for your answer! Can i add a logfile here as attachment? I see one error in Log, but why? All is build correctly.
2023/12/18 21:42:54.515857 [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
buildspec.yml look like this:
version: 0.2
phases:
install:
runtime-versions:
java: corretto17
build:
commands:
- chmod +x gradlew # Ensure that gradlew is executable
- ./gradlew buildFatJar
post_build:
commands:
- mv build/libs/Einkaufsliste-all.jar Einkaufsliste-all.jar
artifacts:
files: 'Einkaufsliste-all.jar'
Codedeploy are ok. Here are the latest log-lines.
[Container] 2023/12/18 21:35:10.971800 Phase complete: POST_BUILD State: SUCCEEDED
[Container] 2023/12/18 21:35:10.971814 Phase context status code: Message:
[Container] 2023/12/18 21:35:11.048049 Expanding base directory path: .
[Container] 2023/12/18 21:35:11.049751 Assembling file list
[Container] 2023/12/18 21:35:11.049764 Expanding .
[Container] 2023/12/18 21:35:11.051345 Expanding file paths for base directory .
[Container] 2023/12/18 21:35:11.051356 Assembling file list
[Container] 2023/12/18 21:35:11.051360 Expanding Einkaufsliste-all.jar
[Container] 2023/12/18 21:35:11.052925 Found 1 file(s)
[Container] 2023/12/18 21:35:11.408487 Phase complete: UPLOAD_ARTIFACTS State: SUCCEEDED
[Container] 2023/12/18 21:35:11.408506 Phase context status code: Message:
If you need more informations, please let me know. Thank you!
Br Mike
answered 4 months ago
0
Hy,
thanks. But this dont work. I also get the error:
2023/12/19 09:41:34.219706 [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
Any ideas?
Br Mike
answered 4 months ago
0
Hy,
im so sorry, i found my mistake. The solution was i have the input artifact defined to "BuildArtifact". My problem was that stands on "SourceArtifact".
Thank you for your patience and very fast help.
Br Mike
answered 4 months ago
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
Try adding "discard-paths: yes" to buildspec.yml. https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html