YYYY-MM-DDTHH:MM:SS.747+02:00 info vcha[206416] [Originator@6876 sub=vpxUtil] System command failed; '/usr/bin/rsync', args: [--recursive,--checksum,--perms,--times,--group,--owner,--links,--protect-args,--temp-dir=/storage/vcha/.tmpfiles,--info=progress,--timeout=60,--rsh=ssh -i /home/vcha/.ssh/id_rsa -o UserKnownHostsFile=/home/vcha/.ssh/known_hosts,/storage/db/vmware-vmdir/snapshot/data.mdb,vcha@<passive node IP>:/storage/db/vmware-vmdir/snapshot/], exit code: 255 --> stdout: --> stderr: --> VMware vCenter Server 8.0.2.00300 --> --> Type: vCenter Server with an embedded Platform Services Controller --> --> Connection closed by "<passive node IP>" port 22 --> rsync: connection unexpectedly closed (0 bytes received so far) [sender] --> rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.4] --> YYYY-MM-DDT10:34:20.747+02:00 error vcha[206416] [Originator@6876 sub=RsyncRepl-largeFrp] Rsync failed, retcode: 255, error: --> VMware vCenter Server 8.0.2.00300 --> --> Type: vCenter Server with an embedded Platform Services Controller --> --> Connection closed by "<passive node IP>" port 22 --> rsync: connection unexpectedly closed (0 bytes received so far) [sender] --> rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.4]
YYYY-MM-DDTHH:MM:SS.750+02:00 verbose vcha[206705] [Originator@6876 sub=Cluster opID=WorkQueue-4f7cfba8] Received ack=true from "<passive node IP>" for kvstore (version 4294967332) YYYY-MM-DDTHH:MM:SS.750+02:00 error vcha[206416] [Originator@6876 sub=SnmpAgent] Failed to create trp tmp file /var/spool/snmp/1718181260_6_350_6876 --> N7Vmacore23FileIONotFoundExceptionE(Could not find file : /var/spool/snmp/1718181260_6_350_6876)
/var/log/vmware/vcha/sshConnect.log
YYYY-MM-DDTHH:MM:SS.225Z WARNING sshConnect retry attempt 34 failed [Errno None] Unable to connect to port 22 on <passive node IP> YYYY-MM-DDTHH:MM:SS.230Z INFO sshConnect Retry attempt 34 YYYY-MM-DDTHH:MM:SS.288Z WARNING sshConnect retry attempt 35 failed [Errno None] Unable to connect to port 22 on <passive node IP> YYYY-MM-DDTHH:MM:SS.293Z INFO sshConnect Retry attempt 35
Environment
vCenter Server 8.0
Cause
SSH auth fails.
Resolution
To fix this issue,
Create private/public SSH-keypair for root-user
To generate key with default algorithm run following cmd.
ssh-keygen
OR,
You may choose from following algorithms
ssh-keygen -t dsa | ecdsa | ed25519 | rsa
The public key must be placed in authorized_keys of root-user
Note: Requires reboot of vCenter and reconfiguration of VCHA.
# cd ~/.ssh/
# cat authorized_keys # ssh-keygen
Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa Your public key has been saved in /root/.ssh/id_rsa.pub