Symptoms
Plesk migration fails with the following error where the subscription name specified in mixed case:
Failed to fix vhost structure for subscription ‘Example.Com’
Migration tools tried to perform operation in 3 attempts: Can’t create links (logs, statistics or configuration) for subscription ‘Example.Com’:
[Errno 2] No such file or directory: ‘/var/www/vhosts/system/Example.Com/logs’
Cause
Plesk Migrator bug PMT-4638 that is planned to be fixed in future product updates.
Resolution
There are two workarounds available:
Workaround I
- Rename domain to lower case on the source server.
- Restart migration:
2.1 Log into Plesk on the target server.
2.2 Go to Tools & Settings > Migration & Transfer Manager > %session name% > Subscriptions list and select the required subscription.
2.3 Click “Migrate” in order to re-migrate failed subscription.
Workaround II
-
Connect to the target server via SSH.
-
Create a symlink to the mixed case subscription directory:
# ln -s /var/www/vhosts/system/example.com /var/www/vhosts/system/Example.Com
-
Restart migration:
3.1 Log into Plesk on the target server.
3.2 Go to Tools & Settings > Migration & Transfer Manager > %session name% > Subscriptions list and select the required subscription.
3.3 Click “Migrate” in order to re-migrate failed subscription.