Lightsail is down

0

Hi, i create a new instance of Lightsail and i run my project on it. After 10 minutes is not reachable by IP and also by ssh. I receive a timeout error. What can be? CPU usage is under 20%

asked 8 months ago174 views
2 Answers
0
Accepted Answer

Hello.
Since it is a timeout error, a possible cause is that SSH is not allowed in Lightsail's firewall or is prevented by the OS firewall.
Is SSH allowed on the Lightsail firewall?
https://lightsail.aws.amazon.com/ls/docs/en_us/articles/understanding-firewall-and-port-mappings-in-amazon-lightsail

Another possible cause is that the SSH process on Lightsail has stopped for some reason.
In that case, running the following script in the startup script when restoring from a Lightsail snapshot may fix the problem.
https://repost.aws/knowledge-center/lightsail-resolve-ssh-console-errors

sudo ufw disable
sudo iptables -F
sudo mv /etc/hosts.deny /etc/hosts.deny_backup
sudo touch /etc/hosts.deny
sudo systemctl enable sshd
sudo systemctl restart sshd
profile picture
EXPERT
answered 8 months ago
profile pictureAWS
EXPERT
reviewed 8 months ago
0

Ensure that your Lightsail instance has the appropriate firewall rules configured to allow incoming SSH (port 22) and any other necessary traffic. Access the Lightsail console and check the system logs for any error messages or issues that might be causing the instance to become unresponsive. Look for any messages related to resource exhaustion or other system problems. Even though the CPU usage is under 20%, check the memory (RAM) usage and disk I/O as well. High memory or disk I/O usage could lead to unresponsiveness. Monitor the server's resources using tools like htop or top if you have access.

Waseem
answered 8 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