Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-06-2009, 09:42 AM
Active Member
 
Posts: 40
Default Changed IP & hostname, ldap errors (dns OK)

OK, as the title says, I've changed the IP and hostname of my
Zimbra according to instructions I've found around here.

DNS is just fine, as is the mx record.

I've done tons of searches and done every trick I can find, but
I am *always* getting:

"Unable to determine enabled services from ldap."

I've removed the cache, stopped, rebooted, started several times,
but I can't get past this.

I'm zimbra log shows:

"Jul 6 11:31:39 orion zimbramon[5864]: 5864:info: Starting services initiated by zmcontrol
Jul 6 11:31:40 orion slapd[5927]: @(#) $OpenLDAP: slapd 2.3.43 (Apr 13 2009 10:53:12) $ build@build20.lab.zimbra.com:/home/build/p4/FRANKLIN/ThirdParty/openldap/openldap-2.3.43.8z/servers/slapd
Jul 6 11:31:41 orion slapd[5928]: slapd starting
Jul 6 11:32:04 orion zimbramon[5963]: 5963:info: 2009-07-06 11:32:02, STATUS: : Cannot: determine services - exiting "

So, that's not a help.

I've removed the cache according to one thread around here.

Any suggestions? I'm really stumped.

THANKS in advance!
Reply With Quote
  #2 (permalink)  
Old 07-06-2009, 09:45 AM
Zimbra Consultant & Moderator
 
Posts: 12,395
Default

Post the output of the following commands run on the zimbra server:

Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain.com any
dig yourdomain.com mx
host `hostname`  <-- use that exact command with backticks not single quotes.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 07-06-2009, 09:48 AM
Active Member
 
Posts: 40
Default

Here you go:
Code:
[zimbra@orion ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1		localhost.localdomain localhost
::1		localhost6.localdomain6 localhost6
70.169.165.181		orion.maingalaxy.com orion mailhost
Code:
[zimbra@orion ~]$ cat /etc/resolv.conf
lookup file bind
domain maingalaxy.com
nameserver 70.169.165.178
Code:
[zimbra@orion ~]$ dig maingalaxy.com any

; <<>> DiG 9.4.2 <<>> maingalaxy.com any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50173
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2

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

;; ANSWER SECTION:
maingalaxy.com.		600	IN	SOA	maya.maingalaxy.com. root.maya.maingalaxy.com. 2009070602 3600 900 2592000 3600
maingalaxy.com.		600	IN	NS	maya.maingalaxy.com.
maingalaxy.com.		600	IN	MX	10 orion.maingalaxy.com.

;; ADDITIONAL SECTION:
maya.maingalaxy.com.	600	IN	A	70.169.165.179
orion.maingalaxy.com.	600	IN	A	70.169.165.181

;; Query time: 3 msec
;; SERVER: 70.169.165.178#53(70.169.165.178)
;; WHEN: Mon Jul  6 11:38:14 2009
;; MSG SIZE  rcvd: 146
Code:
[zimbra@orion ~]$ dig maingalaxy.com mx

; <<>> DiG 9.4.2 <<>> maingalaxy.com mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50956
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

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

;; ANSWER SECTION:
maingalaxy.com.		600	IN	MX	10 orion.maingalaxy.com.

;; AUTHORITY SECTION:
maingalaxy.com.		600	IN	NS	maya.maingalaxy.com.

;; ADDITIONAL SECTION:
orion.maingalaxy.com.	600	IN	A	70.169.165.181
maya.maingalaxy.com.	600	IN	A	70.169.165.179

;; Query time: 1 msec
;; SERVER: 70.169.165.178#53(70.169.165.178)
;; WHEN: Mon Jul  6 11:38:37 2009
;; MSG SIZE  rcvd: 105
Code:
[zimbra@orion ~]$ host `hostname`
orion.maingalaxy.com has address 70.169.165.181
[zimbra@orion ~]$

Last edited by phoenix : 07-06-2009 at 10:17 AM.
Reply With Quote
  #4 (permalink)  
Old 07-06-2009, 09:49 AM
Active Member
 
Posts: 40
Default

Also, some more info:

[zimbra@orion ~]$ zmlocalconfig ldap_master_url ldap_url zimbra_server_hostname
ldap_master_url = ldap://orion.maingalaxy.com:389
ldap_url = ldap://orion.maingalaxy.com:389
zimbra_server_hostname = orion.maingalaxy.com
Reply With Quote
  #5 (permalink)  
Old 07-06-2009, 10:31 AM
Active Member
 
Posts: 40
Default

yet more info:

amavisd.conf: hostname => [ split (' ','ldap://orion.maingalaxy.com:389') ],
amavisd.conf:$mydomain = 'orion.maingalaxy.com'; # a convenient default for other settings
amavisd.conf:$virus_admin = 'admin@orion.maingalaxy.com'; # notifications recip.
amavisd.conf:$mailfrom_notify_admin = 'admin@orion.maingalaxy.com'; # notifications sender
amavisd.conf:$mailfrom_notify_recip = 'admin@orion.maingalaxy.com'; # notifications sender
amavisd.conf:$mailfrom_notify_spamadmin = 'admin@orion.maingalaxy.com'; # notifications sender
amavisd.conf:$myhostname = 'orion.maingalaxy.com'; # must be a fully-qualified domain name!
ldap-scm.cf:server_host = ldap://orion.maingalaxy.com:389
ldap-transport.cf:server_host = ldap://orion.maingalaxy.com:389
ldap-vad.cf:server_host = ldap://orion.maingalaxy.com:389
ldap-vam.cf:server_host = ldap://orion.maingalaxy.com:389
ldap-vmd.cf:server_host = ldap://orion.maingalaxy.com:389
ldap-vmm.cf:server_host = ldap://orion.maingalaxy.com:389
localconfig.xml: ldap://orion.maingalaxy.com:389
localconfig.xml: admin@orion.maingalaxy.com
localconfig.xml: orion.maingalaxy.com
localconfig.xml: admin@orion.maingalaxy.com
localconfig.xml: ldap://orion.maingalaxy.com:389
localconfig.xml: admin@orion.maingalaxy.com
localconfig.xml: orion.maingalaxy.com
localconfig.xml: orion.maingalaxy.com
localconfig.xml: orion.maingalaxy.com
swatchrcerlcode 0 my $fr='admin@orion.maingalaxy.com';
swatchrcerlcode 0 my $pwc='admin@orion.maingalaxy.com';
swatchrcerlcode 0 my $hostname="orion.maingalaxy.com";
zmssl.cnf:commonName_default = orion.maingalaxy.com
Reply With Quote
  #6 (permalink)  
Old 07-06-2009, 10:44 AM
Active Member
 
Posts: 40
Default

Yet more info...

I ran from /opt/zimbra, find . -exec grep -ls "eve.inside" {}\; | more
and came up with a couple of files that are still listing the old
hostname (which was "eve.inside.maingalaxy.com")...

./openldap-data/id2entry.bdb
./openldap-data/ldap.bak
./openldap-data/__db.002
./openldap-data/dn2id.bdb

So, I think I have some corrupt ldap data, correct?
How do I flush this without killing my users and so forth?
Reply With Quote
  #7 (permalink)  
Old 07-06-2009, 11:00 AM
Elite Member
 
Posts: 411
Default

i should presume you ran zmsetservername right ?
Reply With Quote
  #8 (permalink)  
Old 07-06-2009, 11:16 AM
Active Member
 
Posts: 40
Default

Yes, I ran that.

I think I'm looking at a corrupt database and am going to run this:

[SOLVED] LDAP / slapd - Database environment corrupt (Issue & Solution)
Reply With Quote
  #9 (permalink)  
Old 07-06-2009, 11:23 AM
Active Member
 
Posts: 40
Default

Nah, didn't fix a thing. Sigh.
Reply With Quote
  #10 (permalink)  
Old 07-06-2009, 11:31 AM
Elite Member
 
Posts: 411
Default

zimbra.log doesnt give any usefull information ?
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com