Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,729
Community Members
 
Community Events
184
Community Groups

AWS Bean Stalk deployment failure

Edited

Hi All,

I am trying to do setup a CD pipeline using bitbucket pipelines and I am running into this issue of conflicting version error while trying to deploy.

The error message to be specific is this:

✖ Deployment failed. Environment "<current-env>" is running a different version "<current-running-version>".

 

I am using the built-in pipe to enable this: 

https://confluence.atlassian.com/bitbucket/deploy-to-aws-with-elastic-beanstalk-976772710.html

this has me stumped shouldn't the new deployment be a different version so why beanstalk complaining about this?

Any help is appreciated.

2 answers

I had a similar issue. In my case I had i error in the Nginx config file. I override the default config file but the path was wrong.

The configuration file should have the path ".platform/nginx/nginx.conf"

Beanstalk performs some king of staging within the instance before deploying the code. If there is any error. It won't deploy and you will see the error

 ✖ Deployment failed. Environment "<current-env>" is running a different version "<current-running-version>".

I was able to figure this up by analyzing the log  eb-engine.log. It may be hard to see the log directly in beanstalk so I suggest enabling pushing the log to cloud watch.

 

Hope this can help you

0 votes
Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Nov 13, 2020 • edited

@Varenya firstly the pipe is deploying to new version that is different from current version in environment.

https://bitbucket.org/atlassian/aws-elasticbeanstalk-deploy/src/0545b1d8703a8ebe471cc3bf772cd56796f0e91f/pipe/pipe.sh#lines-120

Then after this environment is green the pipe is checking that it is exactly deployed with the version VERSION_LABEL mentioned above https://bitbucket.org/atlassian/aws-elasticbeanstalk-deploy/src/0545b1d8703a8ebe471cc3bf772cd56796f0e91f/pipe/pipe.sh#lines-141

And if they are not equal, this would mean that the current deployment is wrong because versions are not equal. So check the version deployed when you see your environment application was created and environment updated to that version https://bitbucket.org/atlassian/aws-elasticbeanstalk-deploy/src/0545b1d8703a8ebe471cc3bf772cd56796f0e91f/pipe/pipe.sh#lines-107

 

It may give you and us some more details about the failing, because it would be strange that environment is green but is running on different version from that the pipe just deployed

Looking forward to seeing your feedback

Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Nov 13, 2020 • edited

@Varenya to have quicker answer related to bitbucket pipelines pipes, add to your question tags `pipes` (necessary) and `bitbucket-pipelines`. Otherwise your question will appear in common queue and we might lose it

Cheers, Galyna

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events