live_syncd zmhsm connection refused

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
fbzimblet
Advanced member
Advanced member
Posts: 119
Joined: Sun Apr 17, 2016 4:15 pm

live_syncd zmhsm connection refused

Postby fbzimblet » Tue Feb 27, 2018 3:51 am

ZCS 8.8.6

Code: Select all

Tue Feb 27 11:33:52 +08 2018 :Syncing ldap using ldif
Connection refused (Connection refused)
usage: zmhsm <options>
 -a,--abort          Abort the current HSM session.
 -h,--help           Displays this help message.
 -s,--server <arg>   Mail server hostname. Default is localhost.
 -t,--start          Start the HSM process.
 -u,--status         Get status on the last HSM session.
Tue Feb 27 11:34:23 +08 2018 :Syncing LDAP done
Tue Feb 27 11:34:23 +08 2018 :Start new LDAP monitor period
Setting up watches.  Beware: since -r was given, this may take a while!
Watches established.


Anyone know why it gives that error? I can see ldap.bak inside live_sync folder

Code: Select all

[zimbra@email live_sync]$ ls -l       
total 884
drwxr-x--- 2 zimbra zimbra   4096 Feb 21 13:25 ldap
-rw-r----- 1 zimbra zimbra 620744 Feb 27 11:33 ldif.bak
-rw-r----- 1 zimbra zimbra     40 Feb 21 12:36 live_sync.conf
-rwxr-x--- 1 zimbra zimbra 244770 Feb 21 12:33 live_syncd
drwxr-x--- 2 zimbra zimbra   4096 Feb 27 11:42 lock
drwxr-x--- 2 zimbra zimbra   4096 Feb 23 03:18 log
drwxr-x--- 2 zimbra zimbra   4096 Feb 27 11:33 pid
drwxr-xr-x 2 zimbra zimbra   4096 Feb 27 11:42 status
-rwxr-x--- 1 zimbra zimbra  11585 Feb 21 12:34 sync_commands


User avatar
tonster
Zimbra Employee
Zimbra Employee
Posts: 313
Joined: Fri Feb 21, 2014 10:14 am
Location: Ypsilanti, MI
ZCS/ZD Version: Release 8.7.0_GA_1659.RHEL6_64_2016

Re: live_syncd zmhsm connection refused

Postby tonster » Tue Feb 27, 2018 4:45 am

Ldap is backed up via rsync and ssh. Is ssh running on port 22? What's in mailbox.log?

Sent from my SM-G950U using Tapatalk
fbzimblet
Advanced member
Advanced member
Posts: 119
Joined: Sun Apr 17, 2016 4:15 pm

Re: live_syncd zmhsm connection refused

Postby fbzimblet » Thu Mar 08, 2018 4:08 am

I think it failed with ssh. I can ssh as root to source server, but when I tried like below it failed as zimbra

Code: Select all

$ ssh -i /opt/zimbra/.ssh/live_sync -o StrictHostKeyChecking=no -o CheckHostIP=no -o PreferredAuthentications=host 10.0.0.10
Warning: Permanently added '10.0.0.10' (RSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).


I tried resync /opt/zimbra/.ssh/ to destination server but still with same result.
Klug
Elite member
Elite member
Posts: 2374
Joined: Mon Dec 16, 2013 11:35 am
Contact:

Re: live_syncd zmhsm connection refused

Postby Klug » Thu Mar 08, 2018 9:33 am

There's a zimbra tool to deploy the ssh keys, you have to execute it on each server.

Code: Select all

zmupdateauthkeys

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 17 guests