• 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 Migration blocks file and folder permissions

Pedro1

Basic Pleskian
Hello:
After a Migration process it shows the following warnings and error:

Code:
[22 Dec 16 11:58:32] [Migración] Plesk restore report problem:
Execution of /opt/psa/admin/plib/api-cli/domain.php --update server1.domain.com -hosting true -hst_type phys -do-not-apply-skeleton -www-root httpdocs -cgi true -cgi-mode www-root -ssl true -same_ssl true -err_docs true -certificate-ref f9ba9690f99339a19ed5434686aa3e8b -ignore-nonexistent-options failed with return code 4.
Stderr is
Unable to find certificate

[22 Dec 16 11:58:32] [Migración] Failed to fix permissions for web files of subscription 'domain.com'
Migration tools tried to perform operation in 3 attempts: Command execution failed on the local server with non-zero exit code.
command: /bin/chown sub_3408629276 /var/www/vhosts/domain.com/logs/server.domain.com
exit code: 1
stdout:
stderr: /bin/chown: cannot access ‘/var/www/vhosts/domain.com/logs/server.domain.com’: No such file or directory

[22 Dec 16 11:58:32] [Migración] Unable to restore the original username for the system user of the subscription domain.com: a system user named LOL is already present on target panel. For this reason, the subscription owner will not be able to log in to FTP under the original username.
Notify the subscription owner of the new FTP username: sub_3408629276. The subscription owner can change this username on target panel.

I tried with
plesk repair fs -verbose But not works for all. Only for httpdocs folder.

Captura de pantalla 2016-12-22 a las 15.11.37.png

I see the files was assigned to user 10000 and no possilitiy to change file/folder premissions
Unknown.png

How can I fix that?
Regards
 
Hello Pedro1,

Firstly i would like to suggest change sysuser login name for affected subscription on source server because such login already exist on the target server for another subscription.
Then remove migrated subscription from target server and try migrate it again. Please use option --reload-source-data of Plesk migrator in case if you performing the migration using CLI.
If the issue would appeared again then please provide additional information about your source and target servers like OS, Plesk version, MU and subscription description (present addon domains, subdomains, aliases or not).
 
Hello Pedro1,

Firstly i would like to suggest change sysuser login name for affected subscription on source server because such login already exist on the target server for another subscription.
Then remove migrated subscription from target server and try migrate it again. Please use option --reload-source-data of Plesk migrator in case if you performing the migration using CLI.
If the issue would appeared again then please provide additional information about your source and target servers like OS, Plesk version, MU and subscription description (present addon domains, subdomains, aliases or not).
Yes I did it, but did not works for me.
So this is that I did:
Code:
root@server:/var/www/vhosts/domain.com# ls -la

drwx--x---  5 sub_3408629276 psaserv 4096 Dec 22 14:16 .
drwxr-xr-x 31 root          root    4096 Dec 22 13:32 ..
drwxr-xr-x  2 sub_3408629276 psaserv 4096 Nov 10 19:13 error_docs
drwxr-x--- 14 sub_3408629276 psaserv 4096 Dec 22 14:57 httpdocs
drwx------  3 sub_3408629276 root    4096 Dec 22 12:29 logs

 /usr/local/psa/bin/repair --restore-vhosts-permissions

root@server:/var/www/vhosts/domain.com/httpdocs# ls -la
root@server:/var/www/vhosts/domain.com# chown sub_3408629276:psacln httpdocs -R
root@server:/var/www/vhosts/domain.com# chown sub_3408629276:psaserv httpdocs
root@server:/var/www/vhosts/domain.com/httpdocs# ls -la
 
Back
Top