Applicable to:
- Plesk Obsidian for Linux
Symptoms
- Subscription with PHP Composer migrating with error:
CONFIG_TEXT: Unable to copy content of Plesk extension 'composer' for subscription 'example.com' from the source server 'source' (192.168.113.2) to target Plesk server; some subscription data of this extension could not be deployed
You need to check configuration of Plesk extension 'composer' for subscription 'example.com' on target Plesk server after migration and configure it manually if needed - The following error can be found in migrator debug log:
CONFIG_TEXT: =|NonZeroExitCodeException: Command execution failed on the local server with non-zero exit code.
=|command: umask 022; /usr/bin/rsync -e 'ssh -i /usr/local/psa/var/modules/panel-migrator/sessions/20240726095254/target-server/ssh-keys/id_rsa.192.168.113.2 -p 22 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no' --timeout=30 --recursive --links --times --devices --specials --owner --group --perms root@203.0.113.2:/usr/local/psa/var/modules/composer/backup/example.com.json/ /usr/local/psa/var/modules/composer/plesk-migrator-temp-subscription-example.com/backup/example.com.json/
=|exit code: 23
=|stdout:
=|stderr: rsync: change_dir "/usr/local/psa/var/modules/composer/backup/example.com.json" failed: Not a directory (20)
=|rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1670) [Receiver=3.1.3]
=|rsync: [Receiver] write error: Broken pipe (32)
=| - The path to composer.json in Domains > example.com > PHP Composer set to a different one on target server compared to the source server
- The affected subscription files are successfully copied to target server by Plesk migrator
Cause
Plesk Bug: PMT-3140-composer extension’s per-domain settings are not copied to a new server
Resolution
The bug will be fixed in one of the upcoming Plesk updates and can be further tracked in changelogs.
As a workaround, fix the path for composer.json manually on target server using the steps from this article How to change in the PHP Composer extension the path of the composer.json file?
Comments
0 comments
Please sign in to leave a comment.