EC2 stops after Start Instance is initiated

0

Hello Team,

I'm trying to understand what's causing one of my ec2 instances to stop after start is selected. It was working for a long time and everything was fine. And then i decided to restart the instance (that actually did in the past and also was good), but after stop and trying to start the instance again, i get an error : "StateReason": { "Code": "Client.InstanceInitiatedShutdown", "Message": "Client.InstanceInitiatedShutdown: Instance initiated shutdown" },

The state reason doesn't give any real details as to what is causing this.

Please help what to do here.

This command is executed: aws ec2 describe-instances --instance-id i-096e424ce8df9bfcc --output json:

{
    "Reservations": [
        {
            "Groups": [],
            "Instances": [
                {
                    "AmiLaunchIndex": 0,
                    "ImageId": "ami-01e36b7901e884a10",
                    "InstanceId": "i-096e424ce8df9bfcc",
                    "InstanceType": "t2.small",
                    "KeyName": "adventiqa",
                    "LaunchTime": "2023-10-05T19:41:27+00:00",
                    "Monitoring": {
                        "State": "disabled"
                    },
                    "BlockDeviceMappings": [
                        {
                            "DeviceName": "/dev/sda1",
                            "Ebs": {
                                "AttachTime": "2023-10-04T22:42:20+00:00",
                                "DeleteOnTermination": false,
                                "Status": "attached",
                                "VolumeId": "vol-0cf96112dcb0c41a1"
                            }
                        }
                    ],
                    "RootDeviceName": "/dev/sda1",
                    "RootDeviceType": "ebs",
                    "SecurityGroups": [
                        {
                            "GroupName": "CentOS 7 -x86_64- - with Updates HVM-2002_01-AutogenByAWSMP-",
                            "GroupId": "sg-000b28d463e91f5f4"
                        }
                    ],
                    "SourceDestCheck": true,
                    "StateReason": {
                        "Code": "Client.InstanceInitiatedShutdown",
                        "Message": "Client.InstanceInitiatedShutdown: Instance initiated shutdown"
                    },
                    "VirtualizationType": "hvm",
                    "CpuOptions": {
                        "CoreCount": 1,
                        "ThreadsPerCore": 1
                    },
                    "CapacityReservationSpecification": {
                        "CapacityReservationPreference": "open"
                    },
                    "HibernationOptions": {
                        "Configured": false
                    },
                    "MetadataOptions": {
                        "State": "applied",
                        "HttpTokens": "optional",
                        "HttpPutResponseHopLimit": 1,
                        "HttpEndpoint": "enabled",
                        "HttpProtocolIpv6": "disabled",
                        "InstanceMetadataTags": "disabled"
                    },
                    "EnclaveOptions": {
                        "Enabled": false
                    },
                    "PlatformDetails": "Linux/UNIX",
                    "UsageOperation": "RunInstances",
                    "UsageOperationUpdateTime": "2021-03-10T21:42:52+00:00",
                    "PrivateDnsNameOptions": {},
                    "MaintenanceOptions": {
                        "AutoRecovery": "default"
                    }
                }
            ]
        }
    ]
}

The instance id is i-096e424ce8df9bfcc

John W
gefragt vor 7 Monaten285 Aufrufe
1 Antwort
0

Hello.

Are you running a script that performs a shutdown on the OS side?

profile picture
EXPERTE
beantwortet vor 7 Monaten
  • No, nothing. It worked for monts and everything was fine. Just decided to make a restart for instance and can't start again

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen