Unable to create backup: A failure occurred while creating the backup on the primary./opt/vmware/var/log/vcd/backup-remote.log reports below error:ERROR | Error running command: CompletedProcess(args='ssh postgres@<eth1 ip of primary cell> sudo /opt/vmware/appliance/bin/create-backup.sh', returncode=255, stdout='', stderr='Welcome to VMware Cloud Director VA\nPermission denied, please try again.\nPermission denied, please try again.\nReceived disconnect from <eth1 ip of primary cell> port 22:2: Too many authentication failures\nDisconnected from <eth1 ip of primary cell> port 22\n')postgres user: root@<vcd name> [ ~ ]# sudo -n -u postgres ssh postgres@<eth1 ip of primary cell>Welcome to VMware Cloud Director VApostgres@<eth1 ip of primary cell>'s password:VMware Cloud Director 10.x
An incorrect "AllowUsers" setting was added to /etc/ssh/sshd_config which would deny ssh access to all other users not specified in the config file.
As a result postgres user fails to ssh into primary cell database to execute backup script which leads to manual backup failure.
Remove the incorrect setting from ssh configuration:
cp /etc/ssh/sshd_config /etc/ssh/sshd_config_bakvi /etc/ssh/sshd_configservice sshd restartFor instance, there's an "AllowUsers root nagios" setting added to /etc/ssh/sshd_config file which prevents postgres user from login with ssh and needs to be removed.