• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Plesk restore error;

elcopdoo

Basic Pleskian
Trying to restore Plesk settings from backup gives:
Error:
Execution of dd if=/dev/zero of=/usr/local/psa/PMM/rsessions/20161010213516347/.fs_sKgOGw/.reserved bs=10485760 count=1 failed with return code 1. Stderr is dd: failed to open '/usr/local/psa/PMM/rsessions/20161010213516347/.fs_sKgOGw/.reserved': Permission denied

Anyone knows how to fix this?

Br,
Denis
 
Looking at the
/usr/local/psa/PMM/rsessions/20161010213516347 folder
I don't see any .fs_sKgOGw/.reserved files.

Any other idea how to solve this restore error?
 
Hello Sergey,

f: /usr/local/psa/PMM/rsessions/20161010213516347
dr-xr-xr-x root root /
drwxr-xr-x root root usr
drwxr-xr-x root root local
drwxr-xr-x root root psa
drwxr-xr-x root root PMM
drwxr-xr-x psaadm psaadm rsessions
drwxr-x--- root psaadm 20161010213516347

Br,
Denis
 
Looks like incorrect permissions. On my test Plesk 12.5 server I see:

# namei -om /usr/local/psa/PMM/rsessions
f: /usr/local/psa/PMM/rsessions
dr-xr-xr-x root root /
drwxr-xr-x root root usr
drwxr-xr-x root root local
drwxr-xr-x root root psa
drwxr-xr-x root root PMM
drwxr-xr-x root root rsessions
 
I have done chown root:root /usr/local/psa/PMM/rsessions,
now is
f: /usr/local/psa/PMM/rsessions/20161010213516347
dr-xr-xr-x root root /
drwxr-xr-x root root usr
drwxr-xr-x root root local
drwxr-xr-x root root psa
drwxr-xr-x root root PMM
drwxr-xr-x root root rsessions
drwxr-x--- root psaadm 20161010213516347

I tried to chown root:root 20161010213516347

but still:
Restoration Task Oct 21, 2016 12:25 PM Details
Warning:
The PHP handler 5.6 FastCGI application (id=2) is not available. Instead, Plesk will use 5.6.27 FastCGI application (id=fastcgi) for the following websites: elcop.hr
Error:
Execution of dd if=/dev/zero of=/usr/local/psa/PMM/rsessions/20161021122515195/.fs_vU5K56/.reserved bs=10485760 count=1 failed with return code 1. Stderr is dd: failed to open '/usr/local/psa/PMM/rsessions/20161021122515195/.fs_vU5K56/.reserved': Permission denied
 
Last edited:
After that I tried to chown root:root 20161021122515195
and then

Error:
Execution of dd if=/dev/zero of=/usr/local/psa/PMM/rsessions/20161021133003584/.fs_4zm3Ar/.reserved bs=10485760 count=1 failed with return code 1. Stderr is dd: failed to open '/usr/local/psa/PMM/rsessions/20161021133003584/.fs_4zm3Ar/.reserved': Permission denied

Seems like I have to use -R with chown on rsessions ?
Can You confirm this?
 
chown -R root:root /usr/local/psa/PMM/rsessions/* is not helping,
I need to chown every subdir one by one,

Any other idea how to solve this?

BTW,
Plesk 12.5.30 suddenly become corrupted after MU #48 auto update,
since then I didn't manage to repair it,
I tried all suggested procedures from the forum.
 
Last edited:
I think I will need to reinstall the whole server,
the only problem is how to get the backups for later restore?

When I try to download backups from PLESK panel
new page opens in web explorer with error 'File not found'
 
[root@server2 /]# tail -fn0 /var/log/sw-cp-server/error_log
2016/10/21 20:45:26 [error] 22255#0: *87 open() "/tmp/dumpIeDTcJ.tar" failed (13: Permission denied), client: xxx.xxx.xxx.xxx, server: , request: "POST /admin/backup/download-dump/id/backup_info_1609292031.xml?_randomId=164419 HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock", host: "xxx.xxx.xxx.xxx:8443", referrer: "https://xxx.xxx.xxx.xxx:8443/admin/backup/list?_randomId=820591"
 
Hi Igor,

in the meantime I reinstalled complete server (Centos 7.2) and fresh installed Plesk Onyx,
then tried to restore server settings backup made with Plesk 12.5.30.

Domains settings were successfully restored but now fail2ban is blocking Plesk panel GUI and domains when turned on.
It seems that imported settings somehow messed up fail2ban on Plesk Onyx.

Can You tell me how to reset all current fail2ban settings to fresh state?

Br,
Denis
 
Can You tell me how to reset all current fail2ban settings to fresh state?
Just go to Tools&Settings -> IP Address Banning (Fail2Ban) remove all Banned IPs and deactivate all jails there.
 
But how to use jai2ban then?
I want to restore default jail2ban jail settings, is it possible?
This is not solving my problem, I want to enable fail2ban to use it...
We have attacks to break into the server all the time.
Also, I have 16GB full server settings+content backup *.tar file,
how to upload this backup back to the server? Through http is impossible...
I need to restore domain content+WP applications.
Please help me with this, Our website+emails are down for several days now...


Br,
Denis
 
I tried to uninstall fail2ban and
After running command
plesk installer --select-product-id plesk --select-release-current --install-component fail2ban

===> Checking for previous installation ... found.
Trying to upgrade Fail2Ban configuration (bootstrapper-prep stage)... Removing old '/etc/fail2ban.previous'

WARNING!
Some problems are found during attempt to status service fail2ban - control script doesn't exist or isn't executable(see log file: /var/log/plesk/install/plesk_17.0.17_installation.log)
 
Back
Top