Article ID: 125998, created on Jun 20, 2015, last review on Jun 20, 2015

  • Applies to:
  • Plesk Automation 11.5

Symptoms

  1. Moving subscription to another node fails:

        2015-06-17 20:04:41,329] [DEBUG] parallels.move_subscriptions.migrator |copy-hosting/recreate-ftpusers| Exception:
        Traceback (most recent call last):
          File "/usr/lib/python2.7/site-packages/parallels/move_subscriptions/migrator.py", line 599, in try_subscription
            yield
          File "/usr/lib/python2.7/site-packages/parallels/move_subscriptions/migrator.py", line 695, in recreate_ftpusers
            self._run_plesk_move_subscription_command('recreate-ftpusers', {'subscription-name': subscription.name, 'target-subscription-ip': subscription.target_ip, 'service-node-ip': subscription.target_servi
        ce_node_ip})
          File "/usr/lib/python2.7/site-packages/parallels/move_subscriptions/migrator.py", line 1261, in _run_plesk_move_subscription_command
            [u"%s/admin/plib/scripts/move_subscription.php" % product_root_d] + args
          File "/usr/lib/python2.7/site-packages/parallels/common/run_command.py", line 569, in run
            exit_code, stdout, stderr = self.run_unchecked(cmd, args, stdin_content)
          File "/usr/lib/python2.7/site-packages/parallels/common/run_command.py", line 577, in run_unchecked
            self.ssh, unix_utils.format_command_list(cmd, args), stdin_content=stdin_content
          File "/usr/lib/python2.7/site-packages/parallels/common/utils/unix_utils.py", line 49, in format_command_list
            quote(arg) for arg in [cmd] + args
          File "/usr/lib/python2.7/pipes.py", line 271, in quote
            for c in file:
        TypeError: 'NoneType' object is not iterable
    

Cause

The subscription that is being moved is based on default service template (service template that was installed together with PA). The resources of such service templates are marked as system in database and being skipped by migration tool, causing the conflict - webspace resource type cannot be found.

The behavior is considered as the software issue PMT-1748. The fix will be included in one of the future product updates.

Resolution

  1. Create backup of original poa_api.py on PA Management Node:

    # cp -p /usr/lib/python2.7/site-packages/parallels/poa_api.py {,.bak}
    
  2. Replace the file with the attached one:

    # wget https://kb.odin.com/Attachments/kcs-53324/poa_api.py
    # cp -p poa_api.py /usr/lib/python2.7/site-packages/parallels/poa_api.py
    

Search Words

object is not iterable

ppa-move-subscriptions

TypeError: 'NoneType' object is not iterable

unable to move subscription

move subscription

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF