• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved DirectAdmin to Plesk Migration Problem

Ebrahim A. Senejani

New Pleskian
Issues with subscription xyz.com
subscription-status-warning.png
[9 Apr 17 13:49:32] [Migration] Plesk restore report problem:
Deployer has been terminated by exception:
Line 29 error: Element 'dnsrec', attribute 'type': [facet 'enumeration'] The value '' is not an element of the set {'A', 'AAAA', 'NS', 'MX', 'CNAME', 'PTR', 'TXT', 'master', 'SRV', 'AXFR', 'DS'}.

Line 29 error: Element 'dnsrec', attribute 'type': '' is not a valid value of the local atomic type.
subscription-status-error.png
[9 Apr 17 13:49:32] [Migration] Failed to copy '/home/xyz' from the source server 'directadmin' (DirectAdmin_IP) to target Plesk server
Migration tools tried to perform operation in 3 attempts.
----------------------------------------------------------------------------
Attempt #1 failed with the following error:
Command execution failed on the local server with non-zero exit code.
command: su xyz --shell /bin/sh -c '/usr/bin/rsync -e '"'"'ssh -i /var/www/vhosts/xyz.com/plesk-migrator-key -p 22 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no'"'"' --recursive --links --times --devices --specials --chmod=Fu=rw,Fgo=r,Du=rwx,Dgo=rx --exclude='"'"'/.*'"'"' --exclude=/Maildir --exclude=/imap plesk-migrator-aqkqwymb4j88ss5q@[DirectAdmin_IP]:/home/xyz/ /var/www/vhosts/xyz.com/'
exit code: 255
stdout:
stderr: Warning: Permanently added '[DirectAdmin_IP]' (RSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.1]

----------------------------------------------------------------------------
Attempt #2 failed with the following error:
Command execution failed on the local server with non-zero exit code.
command: su xyz --shell /bin/sh -c '/usr/bin/rsync -e '"'"'ssh -i /var/www/vhosts/xyz.com/plesk-migrator-key -p 22 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no'"'"' --recursive --links --times --devices --specials --chmod=Fu=rw,Fgo=r,Du=rwx,Dgo=rx --exclude='"'"'/.*'"'"' --exclude=/Maildir --exclude=/imap plesk-migrator-aqkqwymb4j88ss5q@[DirectAdmin_IP]:/home/xyz/ /var/www/vhosts/xyz.com/'
exit code: 255
stdout:
stderr: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.1]

----------------------------------------------------------------------------
Attempt #3 failed with the following error:
Command execution failed on the local server with non-zero exit code.
command: su xyz --shell /bin/sh -c '/usr/bin/rsync -e '"'"'ssh -i /var/www/vhosts/xyz.com/plesk-migrator-key -p 22 -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no'"'"' --recursive --links --times --devices --specials --chmod=Fu=rw,Fgo=r,Du=rwx,Dgo=rx --exclude='"'"'/.*'"'"' --exclude=/Maildir --exclude=/imap plesk-migrator-aqkqwymb4j88ss5q@[DirectAdmin_IP]:/home/xyz/ /var/www/vhosts/xyz.com/'
exit code: 255
stdout:
stderr: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.1]
 
Hello Ebrahim,

1. Could you please provide content of DNS zone of domain xyz.com.
Please execute on Directadmin server:
Code:
cat /var/named/xyz.com.db

2. Ensure that the /etc/ssh/sshd_config on Directadmin server contains the following lines, and that they are uncommented;
Code:
PubkeyAuthentication yes
RSAAuthentication yes
 
Hi Peon,
Thanks for your reply.

1.
root@LinPlesk:~# cat /var/named/run-root/var/xyz.com
; *** This file is automatically generated by Plesk ***
$TTL 86400

@ IN SOA ns2.xyz.com. info.xyz.com. (
2017040706 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
10800 ) ; Minimum

xyz.com. IN NS ns2.xyz.com.
xyz.com. IN NS ns1.xyz.com.
ipv4.xyz.com. IN A [Plesk_Server_IP]
mail.xyz.com. IN A [Plesk_Server_IP]
webmail.xyz.com. IN A [Plesk_Server_IP]
xyz.com. IN A [Plesk_Server_IP]
ns2.xyz.com. IN A [Plesk_Server_IP]
ns1.xyz.com. IN A [Plesk_Server_IP]
ftp.xyz.com. IN CNAME xyz.com.
www.xyz.com. IN CNAME xyz.com.
xyz.com. IN MX 10 mail.xyz.com.
_dmarc.xyz.com. IN TXT "v=DMARC1; p=none"
xyz.com. IN TXT "v=spf1 +a +mx +a:LinPlesk.[Plesk_Server_HostName] -all"


2. Only "RSAAuthentication yes" was commented and I uncommented it and restarated the SSH Service.

But the problem still exists.
 
Hello!
1. Problem with ssh connection could be solved by adding string
AllowUsers plesk-migrator-*
to sshd_config

2. Warning about wrong records in DNS zone will be fixed in nearest update, internal bugs ids are PMT-3600
 
Back
Top