Plesk transfer fails with username longer than 16 characters

jlopez

Registered
Jan 11, 2013
3
0
51
cPanel Access Level
Root Administrator
Writing here because LicensePal support couldn't give me an answer.

There's a lot of accounts in several Plesk servers we are moving to WHM. Moving some of them has worked just dandy (even though it says there are some unsupported options like compressed/mysql databases get moved correctly), however some others fail as soon as Transfer Tool starts executing.
All the accounts that failed to transfer have an original Plesk username of over 16 characters. For example, when trying to move logisticaflorette.es Transfer Tool executes the command "/scripts/pkgacct.cpanel01.masbytes.es logisticaflorett", but the username is logisticaflorette (with an additional e) so pkgacct fails to package the account and WHM cannot locate the backup file "/home/cpmove-logisticaflorett.tar.gz". Transfer log shows an error saying "ERROR: No UID for unprivilged user was specificed at /tmp/79elzR4YT0/lib/Cpanel/Pkgacct/Archive.pm line 99." (not shown when username is less or equal to 16 chars)

However, if I execute "/scripts/pkgacct.cpanel01.masbytes.es logisticaflorette" manually the script succeeds. Next, when running Transfer Tool again the error appears again BUT because the backup archive "/home/cpmove-logisticaflorett.tar.gz" was generated correctly WHM can retrieve it and restore the account.
We could do this if the number of accounts were just a few, but there are hundreds.

Even if WHM has this 16 characters limit for usernames, shouldn't it use the correct username when running pkgacct in the remote server? Even if the WHM account name will be different.
 

andrew.n

Well-Known Member
Jun 9, 2020
617
179
43
EU
cPanel Access Level
Root Administrator
cPanel does offer migration assistance coming from a 3rd party panel so I suggest you to Submit a Ticket and they will be happy to have a closer look for you :)
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,974
921
313
cPanel Access Level
Root Administrator
Hey there! We do offer migration assistance from Plesk, but in this case it would be best to change the username of the account on the Plesk side first before attempting the transfer.

If you check the Plesk system, you'll see a file named /etc/userdomains, which is a list of the usernames and domain names that cPanel has created from the Plesk machine. If any of those are longer than 16 characters, that will cause an issue.

There are some other posts that mention this as well, such as this: Hello i have always used plesk in the past but i face a problem with cpanel