[SOLVED] pve-zsync failure syncing VM

fireon

Distinguished Member
Oct 25, 2010
4,478
466
153
Austria/Graz
deepdoc.at
Hello,

pve-manager/4.4-13/7ea56165 (running kernel: 4.4.67-1-pve)


i would like to sync one VM to another host, all houres. I've created the job.
Code:
pve-zsync create --source [2001:420:1e0e:544:ec3:7eff:ffab:c212]:101 --dest v-machines/HDD-vmdata-KVM --maxsnap 12 --name foreman  --verbose
But after finish the first sync i got an error.
Code:
22:15:57   3.46G   v-machines/HDD-vmdata-KVM/vm-101-disk-1@rep_foreman_2017-07-03_22:15:20
22:15:58   3.56G   v-machines/HDD-vmdata-KVM/vm-101-disk-1@rep_foreman_2017-07-03_22:15:20
22:15:59   3.66G   v-machines/HDD-vmdata-KVM/vm-101-disk-1@rep_foreman_2017-07-03_22:15:20
22:16:00   3.76G   v-machines/HDD-vmdata-KVM/vm-101-disk-1@rep_foreman_2017-07-03_22:15:20
22:16:01   3.87G   v-machines/HDD-vmdata-KVM/vm-101-disk-1@rep_foreman_2017-07-03_22:15:20
22:16:02   3.96G   v-machines/HDD-vmdata-KVM/vm-101-disk-1@rep_foreman_2017-07-03_22:15:20
send from @ to v-machines/HDD-vmdata-KVM/vm-101-disk-2@rep_foreman_2017-07-03_22:15:20 estimated size is 290M
total estimated size is 290M
TIME        SENT   SNAPSHOT
22:16:04    103M   v-machines/HDD-vmdata-KVM/vm-101-disk-2@rep_foreman_2017-07-03_22:15:20
22:16:05    204M   v-machines/HDD-vmdata-KVM/vm-101-disk-2@rep_foreman_2017-07-03_22:15:20
Job --source [2001:420:1e0e:544:ec3:7eff:ffab:c212]:101 --name foreman got an ERROR!!!
ERROR Message:
COMMAND:
        scp -- root@2001:420:1e0e:544:ec3:7eff:ffab:c212:/etc/pve/local/qemu-server/101.conf /var/lib/pve-zsync/HDD-vmdata-KVM/101.c
GET ERROR:
        ssh: connect to host 2001 port 22: Invalid argument
A long time ago i syncing normal datesets successfully. It is also strange that the Errormessagecommand is without the square brackets.
 
Hi,

can you please send the version of pve-zsync and scp?
 
pve-zsync 1.6-14
For scp i can't find the version, maybe it is part of ssh (1:6.7p1-5+deb8u3)

The other strange thing: Every one when i disable the job, there will be created a new on, i see the line at cronjob. At destroying the same.

I've tested it with IPV4 this works fine with VMs. But all other sync running with IPV6 fine. But yes these are alle normal datasets no VMs.
 
Last edited:
Ok, I've upgraded to PVE5 and create the replicationjob over the GUI, something similar.
Code:
2017-07-05 23:54:00 101-0: start replication job
2017-07-05 23:54:00 101-0: guest => VM 101, running => 2377
2017-07-05 23:54:00 101-0: volumes => HDD-vmdata-KVM:vm-101-disk-1,HDD-vmdata-KVM:vm-101-disk-2
2017-07-05 23:54:00 101-0: (remote_prepare_local_job) Host key verification failed.
2017-07-05 23:54:00 101-0: (remote_prepare_local_job)
2017-07-05 23:54:00 101-0: end replication job with error: command '/usr/bin/ssh -o 'BatchMode=yes' -o 'HostKeyAlias=virtu01' root@
2001:420:1e0e:544:ec3:7eff:ffab:c212
-- pvesr prepare-local-job 101-0 HDD-vmdata-KVM:vm-101-disk-1 HDD-vmdata-KVM:vm-101-disk-2 --last_sync 0' failed: exit code 255
But the keys are ok, no error at the cmd when i logged in with ssh with same command.

With pve-zsync are the same errors in PVE5.

Edit: Same problem: https://forum.proxmox.com/threads/p...ion-issue-host-key-verification-failed.35473/
 
Last edited:
I will check the IP parser in pve-zsync.

But the storage Replication unknown host is a other problem.
 
I have fixed it it was a bug.
 
  • Like
Reactions: fireon

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!