Migration fails: Some fields are empty or contain an improper value or does not match the pattern

Created:

2016-11-16 12:39:09 UTC

Modified:

2017-08-08 13:22:16 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Migration fails: Some fields are empty or contain an improper value or does not match the pattern

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

  1. During migration from Plesk version 9 to Plesk version 12 Migration & Transfer Manager tool gives following error:

    Warning: domain "example.com"

    Execution of "C:\\Program Files (x86)\\Parallels\\Plesk\\bin\\domain.exe" --update example.com -guid 6FCD5F17-B2BD-4682-AFAD-CCBF953AED4F -creation-date 2010-04-01 -hosting true -hst_type phys -do-not-apply-skeleton -ip 10.20.30.40 -www-root httpdocs -login <LOGIN_NAME> -passwd "" -passwd_type sym -hard_quota 157286400B -shell "Login Disabled" -ignore-nonexistent-options failed with return code 1.
    Stderr is
    An error occurred during domain update: An error occurred during changing of hosting settings: Some fields are empty or contain an improper value.
    ('login' = '<LOGIN_NAME>')
  2. Migration to Plesk 12.5 using Plesk Migrator tool fail with error:

    |
    `- error: Failed to create subscription 'example.com' in target panel
    Migration for that subscription is considered completely failed. No further actions are performed for it.
    Migration tools tried to perform operation in 3 attempts: u'Command LANG=en_US.UTF-8 ALLOW_WEAK_PASSWORDS=1 PLESK_RESTORE_MODE=1 subscription --create
    stdout:
    stderr: Wrong syntax for command's '-login' parameter. 'longlengthusername' does not match the pattern '/^\\w[\\-\\w\\.]{0,15}$/'.

Cause

System user name length is more than 15 characters. Since Plesk version 10 and higher maximum length of system user name should be 15 characters or less.

Resolution

  1. To find system users with over 15 character names use following query on a source server:

    mysql> select login,home from psa.sys_users where length(login) > 15;
  2. Change found system user names on a source server with names with 15 characters or less via Plesk Control Panel.

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