Plesk

MySQL/MariaDB fails to start when a Plesk server lacks disk space: SQLSTATE[HY000] No space left on device 500 PleskExceptionDatabase

Applicable to:

  • Plesk for Linux

Symptoms

Cause

Resolution

First, to bring services back it is required to free-up some space:

  1. Connect to a Plesk server via SSH as root.

  2. Delete temporary files that are older than 14 days:

    # find /tmp -type f -mtime +14 -exec rm {} ;
    # find /var/tmp -type f -mtime +14 -exec rm {} ;

    as well as Plesk temporary files:

    # rm -rf /usr/local/psa/PMM/tmp/* /usr/local/psa/tmp/*

  3. Check the size and clean package cache (cache of previously downloaded packages) with the following command for Ubuntu:

    # du -sh /var/cache/apt/
    # sudo apt-get clean

    and for Centos:

    # yum clean all

  4. Next, if disk space is still shows 100% you may want to remove the oldest Plesk backup file. First get the list of backup files by copy/pasting below command:

    # /usr/local/psa/admin/bin/pmm-ras --get-dump-list --type=server | grep 'message' | grep -v [0-9]_[0-9]
    <message>backup_info_2010230005.xml: </message>
    <message>backup_info_2010300005.xml: </message>

    If you have just one backup, it is better not to remove it. If you have several then the first one in the output is the oldest one. Remove it using its name:

    # /usr/local/psa/admin/bin/pmm-ras --verbose --debug --delete-dump --dump-specification=backup_info_2010230005.xml --session-path=/var/log/plesk/PMM

  5. If steps 2 and 3 did not help try to find all files bigger than 200 MB size.

    # find / -type f -size +200M -exec du -h {} + 2>/dev/null…

Exit mobile version