ec2 인스턴스가 중지된 이유를 알고 싶어요

0

ec2 statuscheckfailed_instance sum 숫자가 1 인 일자에 사용중인 서버가 중지된 이유를 알고 싶어요

아래는 해당일자의 로그일부입니다.

Jul 23 08:17:17 ip-172-31-47-231 snapd[49544]: autorefresh.go:643: Cannot prepare auto-refresh change due to a permanent network error: persistent network error: Post "https://api.snapcraft.io/v2/snaps/refresh": dial tcp: lookup api.snapcraft.io: Temporary failure in name resolution Jul 23 08:17:17 ip-172-31-47-231 snapd[49544]: stateengine.go:149: state ensure error: persistent network error: Post "https://api.snapcraft.io/v2/snaps/refresh": dial tcp: lookup api.snapcraft.io: Temporary failure in name resolution Jul 23 08:34:06 ip-172-31-47-231 amazon-ssm-agent.amazon-ssm-agent[503]: 2024-07-23 08:34:06 WARN EC2RoleProvider Failed to connect to Systems Manager with instance profile role credentials. Err: retrieved credentials failed to report to ssm. Error: EC2RoleRequestError: no EC2 instance role found Jul 23 08:34:06 ip-172-31-47-231 amazon-ssm-agent.amazon-ssm-agent[503]: caused by: RequestError: send request failed Jul 23 08:34:06 ip-172-31-47-231 amazon-ssm-agent.amazon-ssm-agent[503]: caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": dial tcp 169.254.169.254:80: connect: network is unreachable Jul 23 08:34:06 ip-172-31-47-231 amazon-ssm-agent.amazon-ssm-agent[503]: 2024-07-23 08:34:06 ERROR [TokenRequestService] failed to retrieve instance identity role. Error: EC2MetadataError: failed to get IMDSv2 token and fallback to IMDSv1 is disabled Jul 23 08:34:06 ip-172-31-47-231 amazon-ssm-agent.amazon-ssm-agent[503]: caused by: : Jul 23 08:34:06 ip-172-31-47-231 amazon-ssm-agent.amazon-ssm-agent[503]: status code: 0, request id: Jul 23 08:34:06 ip-172-31-47-231 amazon-ssm-agent.amazon-ssm-agent[503]: caused by: RequestError: send request failed Jul 23 08:34:06 ip-172-31-47-231 amazon-ssm-agent.amazon-ssm-agent[503]: caused by: Put "http://169.254.169.254/latest/api/token": dial tcp 169.254.169.254:80: connect: network is unreachable Jul 23 08:34:06 ip-172-31-47-231 amazon-ssm-agent.amazon-ssm-agent[503]: 2024-07-23 08:34:06 ERROR EC2RoleProvider Failed to connect to Systems Manager with SSM role credentials. error calling RequestManagedInstanceRoleToken: unable to build RSA signature. No Authorization header in request Jul 23 08:37:40 ip-172-31-47-231 systemd[1]: Starting Cleanup of Temporary Directories... Jul 23 08:37:40 ip-172-31-47-231 systemd[1]: systemd-tmpfiles-clean.service: Succeeded. Jul 23 08:37:40 ip-172-31-47-231 systemd[1]: Finished Cleanup of Temporary Directories. Jul 23 08:42:17 ip-172-31-47-231 snapd[49544]: autorefresh.go:643: Cannot prepare auto-refresh change due to a permanent network error: persistent network error: Post "https://api.snapcraft.io/v2/snaps/refresh": dial tcp: lookup api.snapcraft.io: Temporary failure in name resolution Jul 23 08:42:17 ip-172-31-47-231 snapd[49544]: stateengine.go:149: state ensure error: persistent network error: Post "https://api.snapcraft.io/v2/snaps/refresh": dial tcp: lookup api.snapcraft.io: Temporary failure in name resolution

JGS
asked 2 months ago126 views
1 Answer
0

Hello JGS nim,

Here are some common problems that can cause instance status check failures [1]:

System status check failure
Incorrect networking or startup configuration
Exhausted memory
File system damage
Incompatible kernel

After reviewing the logs you provided, it appears the issue is related to a network configuration problem, as indicated by the following error:

dial tcp 169.254.169.254:80: connect: network is unreachable

This could be due to resource exhaustion in the operating system or other factors, but a full review of the operating system logs would be required to pinpoint the exact cause.

If you need further analysis, I recommend opening a support case with AWS Support, as they can conduct a more detailed investigation. The re:Post community has limited capabilities in this regard.

For common issues related to instance status checks, the documentation [2] provides helpful information.

If this response was helpful, I would appreciate if you could acknowledge it in the community to help improve the service.

Thank you.

Reference Documents:
[1] Monitoring System Instance Status Checks - Instance Status Checks
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html#instance-status-checks

[2] Troubleshooting Instances with Failed Status Checks
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html


AWS Support – 한국어 고객 및 기술 지원 서비스 시작
https://aws.amazon.com/ko/blogs/korea/choose-korean-in-aws-support-as-your-preferred-language/

re:Post 에서 한국어 지원을 원하시면 언어 선택을 "Korean" 으로 하시면 지원 가능합니다.

profile pictureAWS
SUPPORT ENGINEER
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions