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%

已提问 9 个月前184 查看次数
2 回答
0
已接受的回答

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
专家
已回答 9 个月前
profile pictureAWS
专家
已审核 9 个月前
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
已回答 9 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则