Results 1 to 8 of 8

Thread: Installing ZCS on CentOS 5.5: zmsetup.pl/zmldapinit error

  1. #1
    agenerette is offline Active Member
    Join Date
    Aug 2011
    Posts
    27
    Rep Power
    3

    Default Installing ZCS on CentOS 5.5: zmsetup.pl/zmldapinit error

    Hi,

    zmldapinit is kicking out the following error, when I try to run zmsetup.pl:


    IO::Socket::INET: Bad hostname '' at /opt/zimbra/libexec/zmldapinit line 137.
    Mon Aug 22 15:29:20 2011 failed. (5632)

    Before seeing this, I was having trouble with my host's name not resolving, A record and MX wise, but I believe I've set up the necessary entries for that. At any rate, the DNS-related errors that I was seeing before are gone.

    I'm new to this forum, so if this problem has already been addressed in a different thread, please point me to it. I didn't have much luck when I tried to search for something.

    Thanks,

    -Anthony



    Mon Aug 22 15:29:08 2011 *** Running as zimbra user: /opt/zimbra/libexec/zmldapinit
    IO::Socket::INET: Bad hostname '' at /opt/zimbra/libexec/zmldapinit line 137.
    Mon Aug 22 15:29:20 2011 failed. (5632)
    Mon Aug 22 15:29:20 2011

    ERROR

    Mon Aug 22 15:29:20 2011

    Configuration failed

    Mon Aug 22 15:29:20 2011 Please address the error and re-run /opt/zimbra/libexec/zmsetup.pl to
    Mon Aug 22 15:29:20 2011 complete the configuration.
    Mon Aug 22 15:29:20 2011
    Errors have been logged to /tmp/zmsetup.08222011-152658.log

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,485
    Rep Power
    56

    Default

    Go to the Split DNS article and run all the commands in the 'Verify....' section and post the output here.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    agenerette is offline Active Member
    Join Date
    Aug 2011
    Posts
    27
    Rep Power
    3

    Default

    Code:
    # dig kidquipment.com mx
    
    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> kidquipment.com mx
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52224
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 2, ADDITIONAL: 7
    
    ;; QUESTION SECTION:
    ;kidquipment.com.		IN	MX
    
    ;; ANSWER SECTION:
    kidquipment.com.	3600	IN	MX	1 aspmx.l.google.com.
    kidquipment.com.	3600	IN	MX	5 alt1.aspmx.l.google.com.
    kidquipment.com.	3600	IN	MX	5 alt2.aspmx.l.google.com.
    kidquipment.com.	3600	IN	MX	9 aspmx2.googlemail.com.
    kidquipment.com.	3600	IN	MX	9 aspmx3.googlemail.com.
    
    ;; AUTHORITY SECTION:
    kidquipment.com.	90872	IN	NS	ns2.domaindiscover.com.
    kidquipment.com.	90872	IN	NS	ns1.domaindiscover.com.
    
    ;; ADDITIONAL SECTION:
    aspmx.l.google.com.	286	IN	A	74.125.157.27
    alt1.aspmx.l.google.com. 124	IN	A	74.125.113.27
    alt2.aspmx.l.google.com. 82	IN	A	209.85.143.27
    aspmx2.googlemail.com.	2285	IN	A	74.125.43.27
    aspmx3.googlemail.com.	2285	IN	A	74.125.127.27
    ns1.domaindiscover.com.	1001	IN	A	216.104.162.3
    ns2.domaindiscover.com.	1001	IN	A	216.104.163.3
    
    ;; Query time: 70 msec
    ;; SERVER: 216.154.208.4#53(216.154.208.4)
    ;; WHEN: Mon Aug 22 17:08:32 2011
    ;; MSG SIZE  rcvd: 326
    Code:
    # dig kidquipment.com any
    
    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> kidquipment.com any
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25315
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 9, AUTHORITY: 2, ADDITIONAL: 5
    
    ;; QUESTION SECTION:
    ;kidquipment.com.		IN	ANY
    
    ;; ANSWER SECTION:
    kidquipment.com.	3600	IN	TXT	"google-site-verification=A8wMF17BhMC3NQ4ygw-YncXWY2sdlei-CxTWE4R4u3w"
    kidquipment.com.	3600	IN	SOA	ns1.tierra.net. hostmaster.tierra.net. 2011082104 7200 1800 604800 28800
    kidquipment.com.	3600	IN	MX	1 aspmx.l.google.com.
    kidquipment.com.	3600	IN	MX	5 alt1.aspmx.l.google.com.
    kidquipment.com.	3600	IN	MX	5 alt2.aspmx.l.google.com.
    kidquipment.com.	3600	IN	MX	9 aspmx2.googlemail.com.
    kidquipment.com.	3600	IN	MX	9 aspmx3.googlemail.com.
    kidquipment.com.	3600	IN	NS	ns1.tierra.net.
    kidquipment.com.	3600	IN	NS	ns2.tierra.net.
    
    ;; AUTHORITY SECTION:
    kidquipment.com.	3600	IN	NS	ns2.tierra.net.
    kidquipment.com.	3600	IN	NS	ns1.tierra.net.
    
    ;; ADDITIONAL SECTION:
    aspmx.l.google.com.	232	IN	A	74.125.157.27
    alt1.aspmx.l.google.com. 70	IN	A	74.125.113.27
    alt2.aspmx.l.google.com. 28	IN	A	209.85.143.27
    aspmx2.googlemail.com.	2231	IN	A	74.125.43.27
    aspmx3.googlemail.com.	2231	IN	A	74.125.127.27
    
    ;; Query time: 68 msec
    ;; SERVER: 216.154.208.4#53(216.154.208.4)
    ;; WHEN: Mon Aug 22 17:09:25 2011
    ;; MSG SIZE  rcvd: 445

    Code:
    # host $(hostname)
    directory-srv.kidquipment.com has address 68.169.54.94
    directory-srv.kidquipment.com mail is handled by 10 mx10.directory-srv.kidquipment.com.
    Code:
    cat /etc/resolv.conf 
    ########## Automatically generated by OnApp (2.1.0)
    domain kidquipment.com
    nameserver 216.154.208.4
    nameserver 216.154.208.5
    Code:
    # cat /etc/hosts
    ########## Automatically generated by OnApp (2.1.0)
    127.0.0.1	localhost
    68.169.54.94	directory-srv.kidquipment.com directory-srv
    68.169.54.94	mail.kidquipment.com	mail

    So, it looks like my recent (yesterday) DNS changes (A record for directory-srv and for putting directory-srv at MX pref = 10) have not gone into effect yet. Also, directory-srv should be but isn't looking to itself for name resolution.
    Last edited by phoenix; 08-22-2011 at 10:45 AM.

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,485
    Rep Power
    56

    Default

    Obviously, from those results, you have no A or MX records for the server and your hosts file is incorrect. You should only have one entry in the hosts file for the mail server (and the IP address) and the loopback line is also incorrect - read the wiki article for the required format of that file.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    agenerette is offline Active Member
    Join Date
    Aug 2011
    Posts
    27
    Rep Power
    3

    Default

    It's been a while since I last worked with Unix/Linux. Here's how things look now:


    # cat /etc/hosts
    ########## Automatically generated by OnApp (2.1.0)
    127.0.0.1 localhost.kidquipment.com localhost
    68.169.54.94 mail.kidquipment.com mail


    # dig kidquipment.com mx

    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> kidquipment.com mx
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45857
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 2, ADDITIONAL: 8

    ;; QUESTION SECTION:
    ;kidquipment.com. IN MX

    ;; ANSWER SECTION:
    kidquipment.com. 3600 IN MX 10 directory-srv.kidquipment.com.
    kidquipment.com. 3600 IN MX 20 aspmx.l.google.com.
    kidquipment.com. 3600 IN MX 30 alt1.aspmx.l.google.com.
    kidquipment.com. 3600 IN MX 30 alt2.aspmx.l.google.com.
    kidquipment.com. 3600 IN MX 40 aspmx2.googlemail.com.
    kidquipment.com. 3600 IN MX 40 aspmx3.googlemail.com.

    ;; AUTHORITY SECTION:
    kidquipment.com. 171634 IN NS ns2.domaindiscover.com.
    kidquipment.com. 171634 IN NS ns1.domaindiscover.com.

    ;; ADDITIONAL SECTION:
    directory-srv.kidquipment.com. 3600 IN A 68.169.54.94
    aspmx.l.google.com. 252 IN A 74.125.157.27
    alt1.aspmx.l.google.com. 13 IN A 74.125.113.27
    alt2.aspmx.l.google.com. 127 IN A 209.85.143.27
    aspmx2.googlemail.com. 263 IN A 74.125.43.27
    aspmx3.googlemail.com. 257 IN A 74.125.127.27
    ns1.domaindiscover.com. 2940 IN A 216.104.162.3
    ns2.domaindiscover.com. 2940 IN A 216.104.163.3

    ;; Query time: 68 msec
    ;; SERVER: 216.154.208.4#53(216.154.208.4)
    ;; WHEN: Mon Aug 22 18:42:28 2011
    ;; MSG SIZE rcvd: 372



    # dig kidquipment.com any

    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> kidquipment.com any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35481
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 2, ADDITIONAL: 7

    ;; QUESTION SECTION:
    ;kidquipment.com. IN ANY

    ;; ANSWER SECTION:
    kidquipment.com. 3600 IN SOA ns1.tierra.net. hostmaster.tierra.net. 2011082204 7200 1800 604800 28800
    kidquipment.com. 3600 IN TXT "google-site-verification=A8wMF17BhMC3NQ4ygw-YncXWY2sdlei-CxTWE4R4u3w"
    kidquipment.com. 3600 IN MX 10 directory-srv.kidquipment.com.
    kidquipment.com. 3600 IN MX 20 aspmx.l.google.com.
    kidquipment.com. 3600 IN MX 30 alt1.aspmx.l.google.com.
    kidquipment.com. 3600 IN MX 30 alt2.aspmx.l.google.com.
    kidquipment.com. 3600 IN MX 40 aspmx2.googlemail.com.
    kidquipment.com. 3600 IN MX 40 aspmx3.googlemail.com.
    kidquipment.com. 3600 IN NS ns1.tierra.net.
    kidquipment.com. 3600 IN NS ns2.tierra.net.

    ;; AUTHORITY SECTION:
    kidquipment.com. 3600 IN NS ns2.tierra.net.
    kidquipment.com. 3600 IN NS ns1.tierra.net.

    ;; ADDITIONAL SECTION:
    directory-srv.kidquipment.com. 3584 IN A 68.169.54.94
    aspmx.l.google.com. 236 IN A 74.125.157.27
    alt1.aspmx.l.google.com. 290 IN A 74.125.113.27
    alt2.aspmx.l.google.com. 111 IN A 209.85.143.27
    aspmx2.googlemail.com. 247 IN A 74.125.43.27
    aspmx3.googlemail.com. 241 IN A 74.125.127.27
    ns1.tierra.net. 1854 IN A 216.104.162.2

    ;; Query time: 64 msec
    ;; SERVER: 216.154.208.4#53(216.154.208.4)
    ;; WHEN: Mon Aug 22 18:42:45 2011
    ;; MSG SIZE rcvd: 507

  6. #6
    agenerette is offline Active Member
    Join Date
    Aug 2011
    Posts
    27
    Rep Power
    3

    Default

    Ok, I'm able to resolve directory-srv.kidquipment.com from other machines on the internet, but zmsetup.pl is still failing with:

    Installing LDAP configuration database...done.
    Setting defaults...No results returned for A lookup of directory-srv.kidquipment.com
    Checked nameservers:
    127.0.0.1
    216.154.208.5


    DNS ERROR resolving directory-srv.kidquipment.com
    It is suggested that the hostname be resolveable via DNS
    Change hostname [Yes]

  7. #7
    agenerette is offline Active Member
    Join Date
    Aug 2011
    Posts
    27
    Rep Power
    3

    Default

    Oh, and I did change /etc/hosts so that it's now:


    ########## Automatically generated by OnApp (2.1.0)
    127.0.0.1 localhost.localdomain localhost
    68.169.54.94 directory-srv.kidquipment.com directory-srv

  8. #8
    agenerette is offline Active Member
    Join Date
    Aug 2011
    Posts
    27
    Rep Power
    3

    Default [SOLVED] Installing ZCS on CentOS 5.5: zmsetup.pl/zmldapinit error

    Where this error was appearing:

    DNS ERROR resolving MX for directory-srv.kidquipment.com
    It is suggested that the domain name have an MX record configured in DNS
    Change domain name? [Yes]
    Create domain: [directory-srv.kidquipment.com]

    Simply entering the domain name (kidquipment.com) instead of the FQDN that install.sh was trying to use, resolved the problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 05-11-2012, 02:16 PM
  2. [SOLVED] I broke my server trying to optimize... HELP!
    By myriad in forum Administrators
    Replies: 9
    Last Post: 09-17-2011, 06:46 AM
  3. Replies: 6
    Last Post: 03-14-2011, 04:21 AM
  4. [SOLVED] New zcs 7 install : database errors founds
    By dkbk in forum Administrators
    Replies: 4
    Last Post: 03-01-2011, 06:49 AM
  5. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •