Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression 2.4.x 2.5.x Unable to deploy to Elastic Beanstalk #5426

Closed
sdelamo opened this issue May 15, 2021 · 1 comment · Fixed by #5439
Closed

Regression 2.4.x 2.5.x Unable to deploy to Elastic Beanstalk #5426

sdelamo opened this issue May 15, 2021 · 1 comment · Fixed by #5439
Assignees
Labels
priority: high High priority type: bug Something isn't working
Milestone

Comments

@sdelamo
Copy link
Contributor

sdelamo commented May 15, 2021

Steps to reproduce

mn create-app example.micronaut.micronautguide --inplace

Health Endpoint

Add micronaut-management dependency:

dependencies {
...
..
.
    implementation("io.micronaut:micronaut-management")
}

Port 5000 EC2 Env

Create a file to run the application in port 5000 when deployed to Elastic Beanstalk

src/main/resources/application-ec2.yml

micronaut:
  server:
    port: 5000

Deployment

Generate a FAT JAR:

./gradlew build

Elastic Beanstalk application

Create a Java 11 application in Elastic Beanstalk.

Screenshot 2021-05-15 at 07 47 50

As application code upload FAT JAR build/libs/micronautguide-0.1-all.jar.

Current behaviour

GET request to the health endpoint:

curl http://micronautguide.us-east-1.elasticbeanstalk.com/health 
{"message":"WebSocket Not Found","_links":{"self":{"href":"/health","templated":false}}}%   

Expected output

If I change the Micronaut version in gradle.properties to 2.4.4, generate and deploy the FAT JAR to Elastic Beanstalk

GET request to the health endpoint:

curl http://micronautguide.us-east-1.elasticbeanstalk.com/health 
{"status":"UP"}   
@sdelamo sdelamo added the type: bug Something isn't working label May 15, 2021
@graemerocher graemerocher added the priority: high High priority label May 15, 2021
@graemerocher graemerocher added this to the 2.5.4 milestone May 15, 2021
@graemerocher
Copy link
Contributor

@dstepanov could you take a look?

@jameskleeh jameskleeh linked a pull request May 17, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high High priority type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants