Amazon AWS Issue - Any Experts?

Discussion in 'IT & Internet' started by consultant, Aug 5, 2019.

  1. consultant

    consultant Your Business Community Staff Member

    5,426 751
    Do we have anyone with Amazin AWS/EC2 experience.

    I have a problem and need some advice/support.
     
    Posted: Aug 5, 2019 By: consultant Member since: Jan 21, 2008
    #1
  2. jacobc

    jacobc UKBF Regular Full Member

    220 41
    Hi,

    What is the issue you are facing please?

    Regards,

    Jacob
     
    Posted: Aug 5, 2019 By: jacobc Member since: Jan 28, 2012
    #2
  3. consultant

    consultant Your Business Community Staff Member

    5,426 751
    Hi Jacob,

    I have run a kernel upgrade, as recomended by cpanel, and the server will not come up!

    The EC2 alarm is
    EC2-xxx-Status-Check-Failed-Any-Reboot
     
    Posted: Aug 5, 2019 By: consultant Member since: Jan 21, 2008
    #3
  4. Mike Hayes

    Mike Hayes UKBF Enthusiast Free Member

    1,004 257
    I don't have much experience with AWS but a VM not booting isn't specific to AWS.

    To diagnose the issue you need to gain console access.

    Here's a guide to show how this is done at AWS:

    https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html

    This output will help you to understand why the instance isn't booting.

    In terms of actually fixing the problem, after a quick search it seems there's no way to boot an EC2 instance into single user mode or a rescue operating system. I take it you're using EBS for storage? If so you can mount the EBS volume on another instance (with a working operating system) to then fix the issue, before switching it back to its own EC2 instance.
     
    Posted: Aug 5, 2019 By: Mike Hayes Member since: Jan 7, 2016
    #4
  5. consultant

    consultant Your Business Community Staff Member

    5,426 751
    Mike,

    appreciate the input.

    SSH doesn't seem to want to connect, via the AWS browser option or using putty!

    I am trying to create a new instance and see if that helps!
     
    Posted: Aug 5, 2019 By: consultant Member since: Jan 21, 2008
    #5
  6. consultant

    consultant Your Business Community Staff Member

    5,426 751
    Ok, I have created another instance (after creating an AMI from faulty one) and it boots up.

    Am I right in assuming that it is a mirror of the original instance or a blank canvas?

    If a blank canvas, do I install the os and other software again (I thought the AMI would duplicate this?).
     
    Posted: Aug 5, 2019 By: consultant Member since: Jan 21, 2008
    #6
  7. Mike Hayes

    Mike Hayes UKBF Enthusiast Free Member

    1,004 257
    SSH won't be reachable if the system isn't booting but the documentation linked should enable you to see what's happening at the console level during boot (the equivalent of plugging a monitor into a physical machine to see what's showing rather than connecting remotely).

    I am not very familiar with AWS specific terminology or products but my understanding is that an AMI is an image / template for a reusable VM. It makes sense that you could create a template from your existing VM with all data intact. However I would guess your new instance is not a mirror copy of your original instance because it's able to boot up (whereas you'd expect to see the same boot problem with a mirror copy). That said, the easiest way to find out would be to check if your data exists on the new instance (e.g. can you log in using the same credentials)?
     
    Posted: Aug 5, 2019 By: Mike Hayes Member since: Jan 7, 2016
    #7
  8. consultant

    consultant Your Business Community Staff Member

    5,426 751
    Thanks all for the pointers.

    Amazon worked it out and have part solved the issue - now onto CPanel!
     
    Posted: Aug 5, 2019 By: consultant Member since: Jan 21, 2008
    #8