简体   繁体   中英

How to force application version on AWS Elastic Beanstalk

I'm trying to deploy a new version of my Python/Django application using eb deploy .

It unfortunately fails due to unexpected version of the application. The problem is that somehow eb deploy screwed up the version and I don't know how to override it. The application I upload is working fine, only the version number is not correct, hence, Elastic Beanstalk marks it as Degraded .

When executing eb deploy, I get this error:

"Incorrect application version "app-cca6-160820_155843" (deployment 161). Expected version "app-598b-160820_152351" (deployment 159). "

The same says in the health status at AWS Console.

So, my question is the following: How can I force Elastic Beanstalk to make the uploaded application version the current one so it doesn't complain?

I've realised that the problem was that Elastic Beanstalk, for some reasons, kept the unsuccessfully deployed versions under .elasticbeanstalk. The solution, at least in my case, was to remove those temporal (or whatever you call them) versions of the application.

Maybe the problem is this:

AWS Elastic Beanstalk Docker Does not support Multi-Stage Build

If yes, I solved using an unamed stage for the multi-stage Dockerfile. Chek that link for the solution. However next time I suggest you to post the last-100-rows of logs. The problem can be not clear watching Events log.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM