Unable to use ZmSetServerName [cat output included]

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
yohoho
Posts: 35
Joined: Sat Mar 09, 2019 10:22 pm

Unable to use ZmSetServerName [cat output included]

Post by yohoho »

Hi, my name is Jason. I've been troubleshooting Zimbra for a while "suddenly it broke, it was working before after the certificate expired and I was forced to use different domain because I forget to renew it"

Here's output

zmcontrol -v

Code: Select all

Release 8.8.11.GA.3737.UBUNTU16.64 UBUNTU16_64 FOSS edition, Patch 8.8.11_P3.
cat /etc/hosts

Code: Select all

127.0.0.1       localhost.localdomain   localhost
101.255.4.186   mail.mysarana.com       mail

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
dig mysarana.com mx

Code: Select all

; <<>> DiG 9.10.3-P4-Ubuntu <<>> mysarana.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46079
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;mysarana.com.                  IN      MX

;; ANSWER SECTION:
mysarana.com.           0       IN      MX      5 mail.mysarana.com.

;; ADDITIONAL SECTION:
mail.mysarana.com.      0       IN      A       101.255.4.186

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Mar 03 18:00:33 WIB 2020
;; MSG SIZE  rcvd: 90
dig mysarana.com any

Code: Select all

; <<>> DiG 9.10.3-P4-Ubuntu <<>> mysarana.com any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60385
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;mysarana.com.                  IN      ANY

;; ANSWER SECTION:
mysarana.com.           0       IN      MX      5 mail.mysarana.com.

;; ADDITIONAL SECTION:
mail.mysarana.com.      0       IN      A       101.255.4.186

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Mar 03 18:00:58 WIB 2020
;; MSG SIZE  rcvd: 90
cat /etc/dnsmasq.conf [partially]

Code: Select all

server=8.8.8.8
server=208.67.222.222
domain=mysarana.com
mx-host=mysarana.com,mail.mysarana.com,5
listen-address=127.0.0.1
I receive error everytime I do zmcontrol status/start/restart
zmcontrol start

Code: Select all

Host mysarana.com
        Starting ldap...Done.
Failed.
Failed to start slapd.  Attempting debug start to determine error.
5e5e396c daemon: bind(7) failed errno=99 (Cannot assign requested address)
5e5e396c slap_open_listener: failed on ldap://mysarana.com:389
I did "dig mysarana.com" . My mail server IP address is 101.255.4.186 . I don't want people to access http://mysarana.com and get to see the mail login panel. Now, it becoming a problem, I can't change the zimbra server name.

Code: Select all

; <<>> DiG 9.10.3-P4-Ubuntu <<>> mysarana.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16248
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;mysarana.com.                  IN      A

;; ANSWER SECTION:
mysarana.com.           6935    IN      A       103.253.212.157

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Mar 03 18:03:37 WIB 2020


;; MSG SIZE  rcvd: 57
I did "opt/zimbra/libexec/zmsetservername --force --newServername mail"

Code: Select all

zimbra@mail:/home/mysarana$ /opt/zimbra/libexec/zmsetservername --force --newServername mail
Getting local config zimbra_server_hostname=mysarana.com
Getting local config zimbra_ldap_userdn=uid=zimbra,cn=admins,cn=zimbra
Getting local config zimbra_ldap_password=cK_RwTdzE7
Getting local config ldap_is_master=true
Getting local config ldap_url=ldap://mysarana.com:389
Getting local config ldap_master_url=ldap://mysarana.com:389
Getting local config ldap_starttls_supported=1
Starting ldap...failed
I am about to break. Please help me.

Sincerely,
Jason.

--------------
UPDATE
--------------

I add this line "101.255.4.186 mysarana.com mail" to /etc/hosts

and then I did zmcontrol start

Code: Select all

zimbra@mail:/home/mysarana$ zmcontrol start
Host mysarana.com
        Starting ldap...Done.
Failed.
Failed to start slapd.  Attempting debug start to determine error.



zimbra@mail:/home/mysarana$
Again, I am frustated.

Sincerely,
Jason.
Last edited by yohoho on Tue Mar 03, 2020 11:43 am, edited 1 time in total.
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Unable to use ZmSetServerName [cat output included]

Post by DualBoot »

Hello,

are your sure that mysarana.com is your Zimbra LDAP ?

Regards,
yohoho
Posts: 35
Joined: Sat Mar 09, 2019 10:22 pm

Re: Unable to use ZmSetServerName [cat output included]

Post by yohoho »

DualBoot wrote:Hello,

are your sure that mysarana.com is your Zimbra LDAP ?

Regards,
I do not understand the question, could you please tell me on how to check it? Thank you. This is our email domain @mysarana.com. And we access it from https://mail.mysarana.com to login.

Sincerely,
Jason

---
UPDATE
---

I tried to force change zmsetservername with -f. This is what I get. I am confused, I am stuck.
zimbra@mail:~/libexec$ ./zmsetservername -f -n mail
Getting local config zimbra_server_hostname=mysarana.com
Getting local config zimbra_ldap_userdn=uid=USER,cn=USER,cn=USER
Getting local config zimbra_ldap_password=PASS
Getting local config ldap_is_master=true
Getting local config ldap_url=ldap://mysarana.com:389
Getting local config ldap_master_url=ldap://mysarana.com:389
Getting local config ldap_starttls_supported=1
Starting ldap...failed.
Sincerely,
jason
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Unable to use ZmSetServerName [cat output included]

Post by DualBoot »

It seems to be obvious : your Zimbra try to connect to its own LDAP on this host mysarana.com .
So my question is what is the fqdn of your Zimbra (and is it a mono server) ?

Regards,
Post Reply