Lightsail instance - Plesk do not work

0

Hi,

I have a problem with my Plesk instance created on Lightsail. The instance no longer works. I tried restarting it but nothing changed. If I access from the IP it gives me the error ERR_CONNECTION_TIMED_OUT.

If I try to connect via SSH and from the terminal type sudo plesk login it gives me the following error: "DB query failed: SQLSTATE[HY000] [2002] No such file or directory. exit status 1"

I am waiting for kind feedback. Thanks

bepd
已提問 5 個月前檢視次數 206 次
1 個回答
0
已接受的答案

Hello.

Does your Lightsail instance have a database installed?
In that case, I think it would be a good idea to check the database status as shown below.
For example, the following command is a command to check the status of MySQL.
If the status of this command is not running, it means that the database is not started.

sudo systemctl status mysql

Can I check the database logs?
For MySQL, I think the error log is output to "/var/log/mysql/error.log" etc.

profile picture
專家
已回答 5 個月前
  • Hi Riku, thanks for the answer. I tried and I have this answer: Active: failed (Result: resources) since... Could be a storage problem? Usage of /: 100.0% of 38.58GB

  • Thank you for confirmation. Looking at the results, it certainly seems like there is a problem with disk space. I think you should recheck the storage capacity with the command below and if there is a problem with the capacity, you should take measures such as creating a snapshot and starting it with a larger Lightsail. Alternatively, you may consider migrating from Lightsail to RDS or Lightsail database.

    df -h
    

    https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-creating-a-database

  • Thanks for the information. I have created another instance from a snapshot but when I go to Connect using SSH via browser I see a blank popup so I can't login into the Plesk...

  • I updated the post, writing how I solved it. Maybe it can be helpful to someone:

    I cleared up some space by deleting old System Journals: (On systems using systemd, old journal entries can accumulate)

    sudo journalctl --vacuum-time=7d

    Still, Plesk was not working. So I ran: sudo plesk repair all.

    After finishing the process, Plesk returned to work.

    Using the terminal via the browser however calling sudo plesk login incorrectly gave me the old IP link (I had rebooted the machine).

    So I manually entered the Plesk panel https://XX.XXX.XXX.XX:8443/ (X stands for the IP)

    Thanks to those who gave me help.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南