Unable to connect to EC2 Ubuntu instance as the instance check fails

0

Greetings! We are using AWS Ec2 Ubuntu instance for some time. However for the past 2 weeks, the instance loses connection. Logging into AWS and trying to connect to the instance using EC2 instance connect fails too. Rebooting the instance seems to solve the problem, only for a short period of time. It fails again within a day or so. Looking at System log after reboot, seems to suggest no untoward issues. I am suspecting Disk full issue. However I am not able to check for the same. Please help.

Thanks, Srinivasa Pradeep

asked 13 days ago74 views
1 Answer
0

You can refer to Why is my EC2 Linux instance unreachable and failing its status checks?.

Troubleshoot instances with failed status checks provides list of problems that can cause status checks to fail.

In your Ubuntu, you can execute df -h to view disk usage.

To monitor disk usage, you can install CloudWatch agent as per How do I install and configure the unified CloudWatch agent to push metrics and logs from my EC2 instance to CloudWatch?

AWS
EXPERT
Mike_L
answered 13 days ago
profile picture
EXPERT
reviewed 13 days ago
  • Hi, Thanks for your inputs. I saw the system logs after rebooting the instance. It seems to be ok. I could not find any error or fatal messages.

    Also the 'df -h' command response also shows the storage to be ok. /dev/root 29G 9.8G 20G 34% / tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 781M 888K 780M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock /dev/xvda15 105M 6.1M 99M 6% /boot/efi tmpfs 391M 4.0K 391M 1% /run/user/1000

    What else can I check?

    Thanks in advance, Srinivasa Pradeep

  • You can install CloudWatch agent to monitor parameters such as disk usage, cpu and log files. Are you using a burstable (t2/t3) instance type? If yes, your EC2 may have exhausted CPU credits. Check your CloudWatch for CPU credits level

  • I checked the Cloudwatch Agent to monitor CPU Credit balance and cpu credit usage. The CPU credit balance is constant at 576. The cpu credit usage is having a value between 0.0 and 0.8 and some burst value of 5.74. I dont think this is an alarming situation. Can you suggest please?

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