When trying to migrate a subscription from Plesk which was created on the service plan DNS hosting to Plesk Automation on the service template with the same name (containing only DNS resource) it fails with the error:
Subscription #111 has not enough resources to create webspace 'example.com'. Following hostings are missing: subscription
If add the Subscription resource to the service template and re-run the migration, another error is shown:
Exception: To create a webspace, you need to select at least one of the hosting service types - web or mail
This is software issue PMT-2175.
The issue is planned to be fixed in future product updates. Currently, the following workaoround may be applied:
- Create a service template with Apache webspace, Postfix, DNS and Subscription resources
Migrate the subscription on this template
# panel-migrator transfer-accounts config.ini --skip-services-checks
The subscription will be created in PA with the following parameters:
- web hosting: not created (but possible to create)
- mail service: not active
in fact those resources present on source Plesk, but just in disable state. That is why they are recreated on target.
Create new service template DNS Hosting only that would contain resources DNS and Subscription
- Next, change the service template for the subscription to DNS Hosting only - Apache and Postfix resources will be unprovisioned.
Note: it is impossible to unprovision the resource Subscription according to current Plesk Automation logic. As a result the migrated domain still visible in websites list and has the Webspaces tab in Customer Control Panel.