• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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