ok, here it is
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Migration from Plesk 9.5.3 on Ubuntu 6.06 (32bit)
to Plesk 10.0.1 on Ubuntu 10.04 (64bit)
PROBLEM DESCRIPTION AND STEPS TO REPRODUCE
I'm migrating domains from plesk 9.5 to plesk 10. Most of the domains are migrated with no problems (about 60), but there are some of them that keep failing with errors like the rext under "additional information" (success with errors is reported, but no files are transfered).
There are basically 2 errors
Unable to create system user
and
User USERNAME already exists.
Both errors are reported in /opt/psa/admin/plib/api-cli/domain.php
After the failed migration The directory of the domain is usually created, but it is totally empty (no httpdocs directory, no nothing). The user is usually created in /etc/passwd
I checked and cleaned the sys_users table, the /etc/passwd file before starting the migration. I have done over 10 migration attempts with various settings, but with no luck
When creating the domain and changing parameters with /opt/psa/admin/plib/api-cli/domain.php manually, I don't get any errors
I've also tried to rename both the domain and the ftp user, with the same result
ACTUAL RESULT
I get an empty directory under /var/www/vhosts, an entry in /etc/passwd and a subscription for the domain. But no actual data is transfered
EXPECTED RESULT
The domain should be operational with all files transfered
ANY ADDITIONAL INFORMATION
sample error log
<?xml version="1.0"?>
<execution-result status="success">
<object name="DOMAIN" type="domain">
<object name="DOMAIN" type="hosting">
<message code="ExecCmd::ExFailed" severity="error">
<context>void plesk::ExecCmd::reportError() const</context>
<file>ExecCmd.cpp</file>
<line>49</line>
<text>Execution of /opt/psa/admin/plib/api-cli/domain.php --update DOMAIN -hosting true -hst_type phys -ip IP_ADDRESS -www-root httpdocs -webstat webalizer -err_docs true -login USERNAME -passwd failed with return code 1.
Stderr is
An error occurred during domain update: error in hosting updating: Unable to update hosting settings: system user update is failed: Unable to create system user: usermng: /usr/sbin/chpasswd execution error. result code=512
</text>
</message>
</object><
message code="ExecCmd::ExFailed" severity="error">
<context>void plesk::ExecCmd::reportError() const</context>
<file>ExecCmd.cpp</file><line>49</line>
<text>Execution of /opt/psa/admin/plib/api-cli/domain.php --update DOMAIN -hosting true -hst_type phys -ip IP_ADDRESS -www-root httpdocs -login USERNAME -passwd failed with return code 1.
Stderr is
An error occurred during domain update: error in hosting updating: Unable to update hosting settings: system user update is failed: User USERNAME already exists.
</text></message></object>
</execution-result>