I uploaded my jar to elastic beanstack it started I pressed its given url ,then it gives me 502 nginx error
I tried to add SERVER_PORT in configuration ,didn't help ,then attached policy to its created role : aws-elasticbeanstalk-ec2-role this policy AmazonSSMReadOnlyAccess ,but again didn't help
CodePudding user response:
I assume the problem is that your jar expects connections on port 8081
, in the other hand Elastic Beanstalk expects that your app has port 8080
opened.