Rename of domain went wrong

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
User avatar
Pepe
Posts: 33
Joined: Mon Jun 26, 2017 2:28 am

Rename of domain went wrong

Postby Pepe » Fri Jul 13, 2018 5:27 am

Good night pals!
A couple of days ago this question come to my mind, "what if i want to change my domain?" I go to Wiki and start to reading, did a snapshot with my lab zimbra and go ahead. The thing is i changed domain name successfully, but after doing that the message say i must change the rest with "zmlocalconfig". Changing that and restarting via "zmcontrol restart" ldap service is not starting... this is the message i get when i try to start zimbra.

Code: Select all

[root@zimbra1 ~]# /etc/init.d/zimbra start
Host zimbralocal.com
        Starting ldap...Done.
Failed.
/opt/zimbra/bin/ldap: line 91:  2811 Segmentation fault      sudo /opt/zimbra/libexec/zmslapd -l LOCAL0 -u zimbra -h "${bind_url} ldapi:///" -F /opt/zimbra/data/ldap/config
/opt/zimbra/bin/ldap: line 91:  2855 Segmentation fault      sudo /opt/zimbra/libexec/zmslapd -l LOCAL0 -u zimbra -h "${bind_url} ldapi:///" -F /opt/zimbra/data/ldap/config
/opt/zimbra/bin/ldap: line 91:  2910 Segmentation fault      sudo /opt/zimbra/libexec/zmslapd -l LOCAL0 -u zimbra -h "${bind_url} ldapi:///" -F /opt/zimbra/data/ldap/config
/opt/zimbra/bin/ldap: line 91:  2913 Segmentation fault      sudo /opt/zimbra/libexec/zmslapd -l LOCAL0 -u zimbra -h "${bind_url} ldapi:///" -F /opt/zimbra/data/ldap/config
/opt/zimbra/bin/ldap: line 91:  2916 Segmentation fault      sudo /opt/zimbra/libexec/zmslapd -l LOCAL0 -u zimbra -h "${bind_url} ldapi:///" -F /opt/zimbra/data/ldap/config
/opt/zimbra/bin/ldap: line 91:  2960 Segmentation fault      sudo /opt/zimbra/libexec/zmslapd -l LOCAL0 -u zimbra -h "${bind_url} ldapi:///" -F /opt/zimbra/data/ldap/config
/opt/zimbra/bin/ldap: line 91:  2963 Segmentation fault      sudo /opt/zimbra/libexec/zmslapd -l LOCAL0 -u zimbra -h "${bind_url} ldapi:///" -F /opt/zimbra/data/ldap/config
Failed to start slapd.  Attempting debug start to determine error.
5b483770 daemon: getaddrinfo() failed: Name or service not known


I used the command for get all old domain stuff for make the change.

Code: Select all

zmlocalconfig |grep olddomain.com


Im not sure what am i missing...
Thank you in advance.


User avatar
gabrieles
Advanced member
Advanced member
Posts: 51
Joined: Tue Feb 14, 2017 9:40 am

Re: Rename of domain went wrong

Postby gabrieles » Fri Jul 13, 2018 7:34 am

Get a dump of the entire ldap

Code: Select all

/opt/zimbra/libexec/zmslapcat /tmp

then search the old domain in it

Code: Select all

cat /tmp/ldap.bak |grep olddomain.com
User avatar
Pepe
Posts: 33
Joined: Mon Jun 26, 2017 2:28 am

Re: Rename of domain went wrong

Postby Pepe » Sat Jul 14, 2018 8:10 pm

Hello gabriels,
i did that and the output was a lot of entries of old domain. How can i fix this?
I realize another thing, is about TLS certificate, did the same on another VM and that message came out.

Code: Select all

Unable to start TLS: SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:vertificate veriry failed when connecting to ldap master.
Cannot determine services - exiting

I did a "zmcrtmgr createca -new" after domain change plus i did a deploy of that certificate.
One thing is I must do all steps on Wiki? Or is just enough with 8.7 stuff?
I ask this because after doing that change with

Code: Select all

zmprov -l rd [olddomain.com] [newdomain.com].

the service work, didnt test all mailboxes but at least was started.
Thank you.
User avatar
gabrieles
Advanced member
Advanced member
Posts: 51
Joined: Tue Feb 14, 2017 9:40 am

Re: Rename of domain went wrong

Postby gabrieles » Mon Jul 16, 2018 12:51 pm

Pepe wrote:

Code: Select all

zmprov -l rd [olddomain.com] [newdomain.com].



Yes, basically the deletion was not really performed on the ldap. Using zmprov -l was my next step suggestion.

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 28 guests