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 12-27-2011, 09:00 AM
Starter Member
 
Posts: 2
Default Zimbra fails after hostname change

Hello,
I've broken a working zimbra server whilst migrating Samba domains.
the server is a Samba PDC, and I have changed the domain name, hosts file and DNS to the new domain.
Unfortunately I did all this before thinking about zimbra, and it only came to my attention once I migrated users also, and then found that email is not working.

I have reverted my hosts file to the previous domain, and run the following:
/opt/zimbra/libexec/zmsetservername -n tux.tasc

I get the result:
ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.naming.CommunicationException -n:389)
Host -n
Stopping stats...Done
Stopping mta...Done
Stopping spell...Done
Stopping snmp...Done
Stopping archiving...Done
Stopping antivirus...Done
Stopping antispam...Done
Stopping imapproxy...Done
Stopping mailbox...Done
Stopping logger...Done
Stopping ldap...Done
Failed to start slapd. Attempting debug start to determine error.
daemon: getaddrinfo() failed: Name or service not known

ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
ldap_initialize( ldap://-n:389 )
ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.naming.CommunicationException -n:389)


Seemingly an LDAP problem. So far I have found no useful posts that do not required running the installer again. But I don't want to lose any emails from the existing mailboxes.

Any suggestions?

Thanks in advance.

Stuart
Reply With Quote
  #2 (permalink)  
Old 12-27-2011, 04:52 PM
Elite Member
 
Posts: 334
Default

Hi,
Quote:
Originally Posted by linusoft View Post
Hello,
I've broken a working zimbra server whilst migrating Samba domains.
the server is a Samba PDC, and I have changed the domain name, hosts file and DNS to the new domain.
Unfortunately I did all this before thinking about zimbra, and it only came to my attention once I migrated users also, and then found that email is not working.

I have reverted my hosts file to the previous domain, and run the following:
/opt/zimbra/libexec/zmsetservername -n tux.tasc

I get the result:
ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.naming.CommunicationException -n:389)
Host -n
It seems that you have copy-paste the following command :

Code:
/opt/zimbra/libexec/zmsetservername -n <servername>
And forgot to replace <servername> with your Zimbra hostname so the paramater sent to Zimbra is -n only without any parameter.

Did you have any backup, especially an LDAP configuration backup?
__________________
Best Regards
---
Masim "Vavai" Sugianto
Vavai Personal Blog
Personal Blog [ID]

Release 7.1.3_GA_3346.SLES11_64_20110930001521 SLES11_64 FOSS edition.
Reply With Quote
  #3 (permalink)  
Old 12-28-2011, 05:59 AM
Starter Member
 
Posts: 2
Default

Thanks vavai,

I tried to restore from backup, but found it to be corrupt. I then tried to restore my DNS settings (actually added the original domain to /etc/hosts and created a new DNS zone with the old domain.
then, I re-ran the zmsethostname command, but omitting the -n switch. This has restore zimbra to full working state.
I will now consider if I want to change the hostname again, or to leave my additional DNS zone in place.

Thanks for your help.

Stuart
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.