Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7919841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:00:02+00:00 2026-06-03T16:00:02+00:00

I am trying to deploy a Ruby-on-Rails application to AWS Beanstalk. The war is

  • 0

I am trying to deploy a Ruby-on-Rails application to AWS Beanstalk. The war is generated using warble in Jenkins and the war file is then copied to our AWS S3 bucket.

I am using AWS Beanstalk command-line tools to create the beanstalk application, application version and the environment. The first version is deployed correctly.

Then I create a new application version, and try updating environment with the new version. The new version is not getting deployed. In the events, following error is thrown:

Encountered errors while attempting to deploy version to 1 running EC2 instances

I have tried creating everything from the scratch as well, but still the 2nd version onward above error is thrown.

Note: We are using custom AMI, this is the BS AMI which we tweaked and created image from for our use.

Can someone help me with this, please?

Thanks

Noman A.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:00:07+00:00Added an answer on June 3, 2026 at 4:00 pm

    I am answering this on the basis of my testings, so anyone looking for solutions might find it useful.

    As mentioned in the question, I was using a custom beanstalk ami [Tomcat 7 stack]. The customization was done following below steps:

    1. Create Beanstalk Application, create a version for this app, and launch beanstalk environment (Not customized one, default as provided by AWS) by passing options like KeyPair so you can use the same to ssh into the instance.

    2. Note the AMI-id of the above instance and launch a regular EC2 (Not Beanstalk) instance of this AMI.

    3. Customzie the EC2 instance to your needs, and create an EBS Image of this instance once done. Stop this instance, you can terminate it later once you are happy with the image.

    4. Terminate the Beanstalk instance as well.

    5. Launch new Beanstalk environment, but this time pass this ami-id of the image created in step 3.

    I have created customized beanstalk images for both tomcat 6 and 7. For my problem, I found out that the issue was happening when I was using a customized ami for tomcat 7. The update just didn’t work. But when I use beanstalk default instance (not the customized image of mine), the update works fine.

    However, with the tomcat 6 customized image, update works just fine. So it appears the issue is with the AWS Beanstalk Default AMI for Tomcat 7 customization.

    I am marking this one as answered for now.

    -Noman A.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I successfully created my war file using warble. I am trying to deploy my
I am trying to deploy my Ruby on Rails application on Media Temple. The
I'm trying to deploy my rails application by using Passenger and Capistrano on Dreamhost.
I am trying to deploy my rails application to a server using capistrano and
I'm trying to deploy my Rails 3.0.1 application which works with Ruby 1.9.2. However,
I'm trying to deploy the first rails application using Capistrano. I'm getting an error
I am trying to deploy a WAR on the mentioned tomcat application server. However
I'm trying to deploy a simple Ruby on Rails app to dreamhost but I'm
Trying to deploy application using ClickOnce to a webserver running sharepoint. I can publish
I'm currently trying to deploy an Ruby on Rails 3.0.9 app on a production

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.