Issue Permission issues after file restoration

Dmytro

Basic Pleskian
Server operating system version
CloudLinux 8.10 (Vladimir Aksyonov)
Plesk version and microupdate number
Plesk Obsidian 18.0.73 #3 Web Host Edition
Hi.
So here is simple task - restore website folder. Every time after restoration I have to fix owner, sometimes permissions, because website returns 403 error
As you can see on screenshot, folder with symbol ! in the end - it's a renamed website folder
And hte same without the symbol - it's restored version of that folder
c1.pngc2.png

Root folder of the website called "public" for me, because my panel.ini hase this setting:

Code:
[domainManagement]
docroot = "<domain>/public"

And the same problem with owner/permissions .

Also if I try to run "plesk repair fs c********ka.com" I'm getting:

Code:
Checking virtual hosts' file system ................................. [OK]


Error messages: 0; Warnings: 0; Errors resolved: 0

So to make website work I'm changing owner like this:
Code:
[root@panel]# chown someuser:psaserv /var/www/vhosts/xx.com/xxxka.com/public/
[root@panel]# chown someuser:psaserv /var/www/vhosts/xx.com/xxxka.com/
 
Hi, @Dmytro . Are you using system backups or a different backup solution please? I attempted to replicate the issue by performing a full system restore, subscription, sites, and files of domains restores but in each case the example.com folder and the public subfolder remain with intact user:group ownership.
 
I’m using system backup and as “root” I try to restore only “domain files” of some clients website and then I choose in popup with subscription files tree the folder with website’s name located in the root directory of subscription
 
This might be the cause. The question is whether it is expected that file ownership is restored when only single files are extracted. Bug or not?
 
I expect that tool “restore from backup” is the all-in-one tool that should restore exact state of restored “object/item” for some date/time
But any way, I can ignore (but I won’t) this issue if “plesk repair fs host.com” could fix owner/permission, but this tool shows no errors :(
 
It does not show errors, because there are none. The bug seems to be that a restore of files or directories restores them with pcacln group, not psaserv group where required. That should be investigated by Plesk.
 
I am still unable to replicate the behavior on a test server with CloudLinux 8.10. Just to summarize what I tried:

1. Edited panel.ini with:

Code:
[domainManagement]
docroot = "<domain>/public"

2. Created a customer with a subscription and couple of addon domains. (Added some files under one of the domains)
3. Created a full server backup from Tools & Settings > Backup Manager.
4. Restored the backup with the admin user > Selected objects > Files of domains > Subscription example.com > folder of testdomain.com

Please do let me know if I am missing something. If not, it might be better for the case to be reviewed by our support team with direct server access.
 
Back
Top