Migration fails: The specified parent domain is not used for website hosting

Created:

2017-01-13 13:07:01 UTC

Modified:

2017-08-16 16:15:54 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Migration fails: The specified parent domain is not used for website hosting

Applicable to:

  • Plesk 12.5
  • Plesk Onyx

Note: This article has the reference to the issue with the fix available:

  • #PPPM-5525 "When migrating via the command line, subdomains could not be migrated if the parent domain’s hosting type was set to “Forwarding”."
    Fixed in:
Please consider updating your server:

Symptoms

  • Migration of subdomain sub.example.com fails with following errors:
    core.actions.deploy.subdomains|example.com||Create subdomain 'sub.example.com' for domain 'example.com' in subscription 'example.com'
    core.runners.base|example.com||Execute command on the local server: /usr/local/psa/bin/domain --create sub.example.com -webspace-name example.com -parent-domain-name example.com -do-not-apply-skeleton -skip-plan -notify false -guid 1c021275-7dfb-46a8-8db5-b0bc5b7ce45b -creation-date 2016-12-01 -ignore-nonexistent-options
    core.runners.base|example.com||Command execution results:

    core.runners.base|example.com||stdout:
    core.runners.base|example.com||stderr: The specified parent domain is not used for website hosting.
    core.runners.base|example.com||
    core.runners.base|example.com||exit code: 4
  • Parent domain hosting type is set to forward in Subscriptions > example.com > Hosting Settings > Hosting type > Change .
  • Cannot create sub.example.com through CLI:
    # plesk bin subdomain --create sub -domain example.com
    The specified parent domain is not used for website hosting.

    # plesk bin domain --create sub.example.com -parent-domain-name example.com
    The specified parent domain is not used for website hosting.

Cause

This is a bug with ID PPPM-5525 which is planned to be fixed in future Plesk updates.

Resolution

  1. Back up /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php :
    # cp /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php.backup
  2. Download and unpack a custom fix for the corresponding version of the Plesk - 12.5 or Onyx .
  3. Replace /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php with the downloaded file.

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.