• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Issue How to restore a external backup if the backup tool doesn't work?

alvmv

New Pleskian
Hello,
Accidentally I delete a log folder from /var/log/
After this I can't enter the plesk panel and the server is down.
I have backed up using onedrive tool just 1 hour before but I can't restore the backup either unzip it in my computer (it is in .tar format with multiple files...)

I only need to restore the log folder but I can't! any ideas?

If I try to use there repair & backup tool via terminal... :
Bash:
root@serv:~# systemctl restart plesk - repaird


Failed to restart plesk.service: Unit plesk.service not found.


Failed to restart -.service: Unit -.service not found.


Failed to restart repaird.service: Unit repaird.service not found.

Bash:
root@serv:~# plesk bin pleskrestore -i
Warning: Current locale is unusable. Using 'C' instead.
[2021-09-13 00:16:26.111] ERR [panel] DB query failed: SQLSTATE[HY000] [2002] No such file or directory:
0: /opt/psa/admin/plib/Db/Adapter/Pdo/Mysql.php:64
    Db_Adapter_Pdo_Mysql->query(string 'SET sql_mode = ''')
1: /opt/psa/admin/plib/CommonPanel/Application/Abstract.php:103
    CommonPanel_Application_Abstract::initDbAdapter()
2: /opt/psa/admin/plib/api-common/AbstractCu.php:1520
    AbstractCu::initDb()
3: /opt/psa/admin/plib/api-common/AbstractCu.php:1546
    AbstractCu::initCLI()
4: /opt/psa/admin/plib/backup/pleskrestore.php:6
ERROR: Plesk\Exception\Database: DB query failed: SQLSTATE[HY000] [2002] No such file or directory (Mysql.php:64)
exit status 1
 
DB query failed: SQLSTATE[HY000] [2002] No such file or directory
The directory /var/log/mariadb is missing on the server.
Create the directory /var/log/mariadb:

# mkdir /var/log/mariadb

Assing correct user and group:

# chown mysql:mysql /var/log/mariadb

Start MariaDB:

# systemctl start mariadb
 
The directory /var/log/mariadb is missing on the server.
Create the directory /var/log/mariadb:

# mkdir /var/log/mariadb

Assing correct user and group:

# chown mysql:mysql /var/log/mariadb

Start MariaDB:

# systemctl start mariadb
With this and doing other fixes the Plesk installation is working. Repair kit did the last details. Thanks
Anyway, I lost many time because I have had the hability of restore a backup from the cloud... this should be warned in the plesk documentation because people could think that they are safe but they arent...
 
Anyway, I lost many time because I have had the hability of restore a backup from the cloud... this should be warned in the plesk documentation because people could think that they are safe but they arent...
/var/log is OS related directory. Plesk doesn't backup the whole OS.
You can find information about what is backed up by Plesk Backup Manager here: Backing Up Data
 
Back
Top