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

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 Search this Thread Display Modes
  #1 (permalink)  
Old 06-12-2010, 10:28 AM
Loyal Member
 
Posts: 90
Default Unable to determine enabled services from ldap.

Hi,

I have to relocate my zimbra 6.06.1 server temporarily from office to home.
I changed the server name using zmsetservername from mail02.eom.nl to mail02.thuis.nl:
Code:
zimbra@mail02:~$ ./libexec/zmsetservername -n mail02.thuis.nl
Getting local config zimbra_home=/opt/zimbra
Getting local config zimbra_server_hostname=mail02.eom.nl
Getting local config ldap_is_master=true
Getting local config zimbra_ldap_userdn=uid=zimbra,cn=admins,cn=zimbra
Getting local config zimbra_ldap_password=jkiR0YeC2k
Getting local config ldap_master_url=ldap://mail02.eom.nl:389
Getting local config ldap_starttls_supported=1
Getting global config zimbraLogHostname=ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.naming.CommunicationException mail02.eom.nl:389)

Renaming mail02.eom.nl to mail02.thuis.nl
Shutting down zimbra...done.
Setting local config ldap_master_url=ldap://mail02.thuis.nl:389
Getting local config ldap_url=ldap://mail02.eom.nl:389
Setting local config ldap_url=ldap://mail02.thuis.nl:389
Getting local config ldap_host=mail02.eom.nl
Setting local config ldap_host=mail02.thuis.nl
Getting local config av_notify_user=admin@mail02.eom.nl
Setting local config av_notify_user=admin@mail02.thuis.nl
Getting local config av_notify_domain=mail02.eom.nl
Setting local config av_notify_domain=mail02.thuis.nl
Getting local config snmp_trap_host=mail02.eom.nl
Setting local config snmp_trap_host=mail02.thuis.nl
Getting local config smtp_source=admin@mail02.eom.nl
Setting local config smtp_source=admin@mail02.thuis.nl
Getting local config smtp_destination=admin@mail02.eom.nl
Setting local config smtp_destination=admin@mail02.thuis.nl
Setting local config zimbra_server_hostname=mail02.thuis.nl
Starting ldap...done.
Now when I start zimbra, I get the following message:

Code:
  Unable to determine enabled services from ldap.
  Enabled services read from cache. Service list may be inaccurate.
/var/log/zimbra.log says:

Code:
Jun 12 19:19:16 mail02 zimbramon[20963]: 20963:info: zmmtaconfig: Skipping Configuration for server mail02.thuis.nl update. 
Jun 12 19:19:16 mail02 zimbramon[20963]: 20963:info: zmmtaconfig: gs:mail02.thuis.nl ERROR: account.NO_SUCH_SERVER (no such server: mail02.thuis.nl)  
Jun 12 19:19:16 mail02 zimbramon[20963]: 20963:info: zmmtaconfig: Sleeping...Key lookup failed.
I tried all things in http://www.zimbra.com/forums/users/1...ices-ldap.html but it's still not ok.

Please advice.

-Bart
Reply With Quote
  #2 (permalink)  
Old 06-12-2010, 11:01 AM
Loyal Member
 
Posts: 85
Default

Quote:
Originally Posted by eombah View Post
Hi,

I have to relocate my zimbra 6.06.1 server temporarily from office to home.
I changed the server name using zmsetservername from mail02.eom.nl to mail02.thuis.nl:
Code:
zimbra@mail02:~$ ./libexec/zmsetservername -n mail02.thuis.nl
Getting local config zimbra_home=/opt/zimbra
Getting local config zimbra_server_hostname=mail02.eom.nl
Getting local config ldap_is_master=true
Getting local config zimbra_ldap_userdn=uid=zimbra,cn=admins,cn=zimbra
Getting local config zimbra_ldap_password=jkiR0YeC2k
Getting local config ldap_master_url=ldap://mail02.eom.nl:389
Getting local config ldap_starttls_supported=1
Getting global config zimbraLogHostname=ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.naming.CommunicationException mail02.eom.nl:389)

Renaming mail02.eom.nl to mail02.thuis.nl
Shutting down zimbra...done.
Setting local config ldap_master_url=ldap://mail02.thuis.nl:389
Getting local config ldap_url=ldap://mail02.eom.nl:389
Setting local config ldap_url=ldap://mail02.thuis.nl:389
Getting local config ldap_host=mail02.eom.nl
Setting local config ldap_host=mail02.thuis.nl
Getting local config av_notify_user=admin@mail02.eom.nl
Setting local config av_notify_user=admin@mail02.thuis.nl
Getting local config av_notify_domain=mail02.eom.nl
Setting local config av_notify_domain=mail02.thuis.nl
Getting local config snmp_trap_host=mail02.eom.nl
Setting local config snmp_trap_host=mail02.thuis.nl
Getting local config smtp_source=admin@mail02.eom.nl
Setting local config smtp_source=admin@mail02.thuis.nl
Getting local config smtp_destination=admin@mail02.eom.nl
Setting local config smtp_destination=admin@mail02.thuis.nl
Setting local config zimbra_server_hostname=mail02.thuis.nl
Starting ldap...done.
Now when I start zimbra, I get the following message:

Code:
  Unable to determine enabled services from ldap.
  Enabled services read from cache. Service list may be inaccurate.
/var/log/zimbra.log says:

Code:
Jun 12 19:19:16 mail02 zimbramon[20963]: 20963:info: zmmtaconfig: Skipping Configuration for server mail02.thuis.nl update. 
Jun 12 19:19:16 mail02 zimbramon[20963]: 20963:info: zmmtaconfig: gs:mail02.thuis.nl ERROR: account.NO_SUCH_SERVER (no such server: mail02.thuis.nl)  
Jun 12 19:19:16 mail02 zimbramon[20963]: 20963:info: zmmtaconfig: Sleeping...Key lookup failed.
I tried all things in http://www.zimbra.com/forums/users/1...ices-ldap.html but it's still not ok.

Please advice.

-Bart
Did you have a valid hostname dan dns record?
Maybe you need to update SSL certificate...
__________________
Just logs
blog.pnyet.web.id
Reply With Quote
  #3 (permalink)  
Old 06-12-2010, 01:06 PM
Loyal Member
 
Posts: 90
Default

DNS and hosts look ok:

DNS:
Code:
root@mail02:~# host `hostname`
mail02.thuis.nl has address 192.168.1.16
root@mail02:~#
/etc/hosts:
Code:
root@mail02:~# more /etc/hosts
127.0.0.1	localhost.localdomain localhost
# 127.0.1.1	EOM-desktop
# 10.0.0.64	mail02.eom.nl mail02
192.168.1.16	mail02.thuis.nl mail02

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
root@mail02:~#
Updating the SSL certificate following Administration Console and CLI Certificate Tools - Zimbra :: Wiki gives error:

** Saving server config key zimbraSSLPrivateKey...failed.

Code:
root@mail02:/opt/zimbra/bin# ./zmcertmgr createcrt -new -days 365
Validation days: 365
** Creating /opt/zimbra/conf/zmssl.cnf...done
** Backup /opt/zimbra/ssl/zimbra to /opt/zimbra/ssl/zimbra.20100612215913 
** Generating a server csr for download self -new -keysize 1024
** Creating /opt/zimbra/conf/zmssl.cnf...done
** Backup /opt/zimbra/ssl/zimbra to /opt/zimbra/ssl/zimbra.20100612215913 
** Creating server cert request /opt/zimbra/ssl/zimbra/server/server.csr...done.
** Saving server config key zimbraSSLPrivateKey...failed.
** Signing cert request /opt/zimbra/ssl/zimbra/server/server.csr...done.
root@mail02:/opt/zimbra/bin#
Reply With Quote
  #4 (permalink)  
Old 06-12-2010, 01:34 PM
Loyal Member
 
Posts: 90
Default

/opt/zimbra/log/mailbox.log says:

Code:
2010-06-12 22:31:06,646 FATAL [main] [] system - Could not find an LDAP entry for server 'mail02.thuis.nl'
Reply With Quote
  #5 (permalink)  
Old 06-12-2010, 03:08 PM
Loyal Member
 
Posts: 90
Default

hmm, I reverted to the backup with the old server name and reconfigured network settings, all is running now, with the old server name.

Remains that renaming the server doesn't work, at least not at my site.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.