No_Such_Server

Ask questions about your setup or get help installing ZCS server (ZD section below).
vpoorboy
Advanced member
Advanced member
Posts: 67
Joined: Fri Sep 12, 2014 9:58 pm

No_Such_Server

Post by vpoorboy »

The slapd is running, I can telnet localhost 389. (sorry just a typo :) )
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

No_Such_Server

Post by marcmac »

telnet doesn't support host:port - it requires a space between them
vpoorboy
Advanced member
Advanced member
Posts: 67
Joined: Fri Sep 12, 2014 9:58 pm

No_Such_Server

Post by vpoorboy »

yes, and I've editted my post, I can telnet localhost on port 389
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

No_Such_Server

Post by marcmac »

run (as zimbra) zmldapinit by hand.
vpoorboy
Advanced member
Advanced member
Posts: 67
Joined: Fri Sep 12, 2014 9:58 pm

No_Such_Server

Post by vpoorboy »

Firsts, the errors are:

slapd already running: pid 12591

ldap_bind: Can't contact LDAP server (-1)

ldap_bind: Can't contact LDAP server (-1)

ls: /opt/zimbra/lib/conf/*ldif: No such file or directory



then, I stopped ldap, and run zmldapinit again, it showed:

Started slapd: pid 14819

ldap_bind: Can't contact LDAP server (-1)

ldap_bind: Can't contact LDAP server (-1)

ls: /opt/zimbra/lib/conf/*ldif: No such file or directory

chamo
Posts: 19
Joined: Fri Sep 12, 2014 10:00 pm

No_Such_Server

Post by chamo »

I am getting the same results as Vpoorboy when I ran the commands you requested marcmac..
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

No_Such_Server

Post by marcmac »

WHat's does zmlocalconfig | grep ldap return?
You can try this:
In zmldapinit, change the ldapmodify lines - add -H ${zimbra_ldap_url} to each and re-run zmldapinit.
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

No_Such_Server

Post by marcmac »

New information.
Type in this command:
host localhost
If it returns anything other than 127.0.0.1, that's a problem.
After install.sh, in the menu config - ctl-c to exit, and edit /opt/zimbra/libexec/zmldapinit - add -H ldap://127.0.0.1:389 to each ldapmodify line - then re-run /opt/zimbra/libexec/zmsetup.pl
Thanks, Chamo
vpoorboy
Advanced member
Advanced member
Posts: 67
Joined: Fri Sep 12, 2014 9:58 pm

No_Such_Server

Post by vpoorboy »

Thanks Marcmac, it's exactly the problem. I've installed Zimbra successfully.

But why this happened. I used to install Zimbra M1 from source, and the method to uninstall it is just "rm". Maybe it caused the problem.

Because when I run "host localhost", it returned:
localhost.test.homedns.org is an alias for test.homedns.org.

test.homedns.org has address a.b.c.d

localhost.test.homedns.org is an alias for test.homedns.org.

localhost.test.homedns.org is an alias for test.homedns.org.


So if I do something that "host localhost" return the right things (127.0.0.1), maybe the problem will be solved also ?
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

No_Such_Server

Post by marcmac »

it's basically a dns issue. A nice dns server will return 127.0.0.1 for localhost. A not-so-nice server will append the domain name, and return it's own IP.
One possibility is to run a caching-only dns server (I can hear anand laughing from here) on your box, and point resolv.conf to it. Google that, it's beyond the scope of these forums.
Post Reply