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

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 02-23-2008, 01:18 PM
Starter Member
 
Posts: 1
Default LDAP Cannot bind on migration to new server

Getting installed packages
Getting local config zimbra_server_hostname
Getting local config ldap_url
zimbra_server_hostname contained in ldap_url checking ldap status
Checking ldap status.
*** Running as zimbra user: /opt/zimbra/bin/ldap status
Starting ldap...
*** Running as zimbra user: /opt/zimbra/sleepycat/bin/db_recover -h /opt/zimbra/openldap-data
*** Running as zimbra user: /opt/zimbra/libexec/zmldapapplyldif
*** Running as zimbra user: /opt/zimbra/bin/ldap status
slapd running pid: 21509
done.
Getting installed services from ldap
checking isEnabled zimbra-core
zimbra-core not in enabled cache
enabled packages
zimbra_server_hostname contained in ldap_url checking ldap status
Checking ldap status.
*** Running as zimbra user: /opt/zimbra/bin/ldap status
slapd running pid: 21509
slapd already running.
Getting enabled services from ldap
Marking zimbra-core as installed. Services for zimbra-core will be enabled.
Marking zimbra-ldap as installed. Services for zimbra-ldap will be enabled.
Marking zimbra-store as installed. Services for zimbra-store will be enabled.
Marking zimbra-mta as installed. Services for zimbra-mta will be enabled.
Marking zimbra-snmp as installed. Services for zimbra-snmp will be enabled.
Marking zimbra-logger as installed. Services for zimbra-logger will be enabled.
Marking zimbra-apache as installed. Services for zimbra-apache will be enabled.
Marking zimbra-spell as installed. Services for zimbra-spell will be enabled.
Setting defaults...
Setting local config zimbra_java_home to /opt/zimbra/java
*** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_java_home='/opt/zimbra/java' 2> /dev/null
checking isEnabled zimbra-cluster
zimbra-cluster not in enabled cache
enabled packages zimbra-logger zimbra-store zimbra-mta zimbra-core zimbra-apache zimbra-snmp zimbra-ldap zimbra-spell
zimbra_server_hostname contained in ldap_url checking ldap status
Checking ldap status.
*** Running as zimbra user: /opt/zimbra/bin/ldap status
slapd running pid: 21509
slapd already running.
Getting enabled services from ldap
Marking zimbra-core as installed. Services for zimbra-core will be enabled.
Marking zimbra-ldap as installed. Services for zimbra-ldap will be enabled.
Marking zimbra-store as installed. Services for zimbra-store will be enabled.
Marking zimbra-mta as installed. Services for zimbra-mta will be enabled.
Marking zimbra-snmp as installed. Services for zimbra-snmp will be enabled.
Marking zimbra-logger as installed. Services for zimbra-logger will be enabled.
Marking zimbra-apache as installed. Services for zimbra-apache will be enabled.
Marking zimbra-spell as installed. Services for zimbra-spell will be enabled.
checking isEnabled zimbra-store
zimbra-store is enabled
checking isEnabled zimbra-ldap
zimbra-ldap is enabled
checking isEnabled zimbra-store
zimbra-store is enabled
checking isEnabled zimbra-mta
zimbra-mta is enabled
done.
Setting defaults from existing config...
Getting local config ldap_master_url
Getting local config ldap_port
Getting local config ldap_root_password
Getting local config zimbra_ldap_password
Getting local config mysql_root_password
Getting local config mysql_logger_root_password
Getting local config zimbra_mysql_password
Getting local config zimbra_logger_mysql_password
Getting local config mailboxd_java_heap_memory_percent
Getting local config mysql_memory_percent
Getting local config mailboxd_directory
Getting local config mailboxd_keystore
Getting local config mailboxd_keystore_password
Getting local config mailboxd_truststore_password
Getting local config zimbra_ldap_userdn
Getting local config ldap_dit_base_dn_config
checking isEnabled zimbra-snmp
zimbra-snmp is enabled
Getting local config snmp_notify
Getting local config smtp_notify
Getting local config snmp_trap_host
Getting local config smtp_source
Getting local config smtp_destination
Getting local config av_notify_user
checking isEnabled zimbra-ldap
zimbra-ldap is enabled
Getting local config ldap_replication_password
checking isEnabled zimbra-ldap
zimbra-ldap is enabled
Getting local config ldap_postfix_password
Getting local config ldap_amavis_password
done.
checking isEnabled zimbra-ldap
zimbra-ldap is enabled
checking isEnabled zimbra-store
zimbra-store is enabled
checking isEnabled zimbra-mta
zimbra-mta is enabled
checking isEnabled zimbra-mta
checking isEnabled zimbra-mta
zimbra-mta is enabled
antispam not in enabled cache
antivirus not in enabled cache
archiving not in enabled cache
checking isEnabled zimbra-spell
zimbra-spell is enabled
Checking for port conflicts
checking isEnabled zimbra-ldap
zimbra-ldap is enabled
checking isEnabled zimbra-ldap
zimbra-ldap is enabled
checking isEnabled zimbra-store
zimbra-store is enabled
checking isEnabled zimbra-logger
zimbra-logger is enabled
checking isEnabled zimbra-mta
zimbra-mta is enabled
Checking ldap status.
*** Running as zimbra user: /opt/zimbra/bin/ldap status
slapd running pid: 21509
slapd already running.
Setting defaults from ldap...
Global config attribute retrieved from ldap: zimbraDefaultDomainName=
Server config attribute retrieved for ****: zimbraImapBindPort=
Server config attribute retrieved for ****: zimbraImapSSLBindPort=
Server config attribute retrieved for ****: zimbraMailMode=
Server config attribute retrieved for ****: zimbraMailPort=
Server config attribute retrieved for **** zimbraMailSSLPort=
Server config attribute retrieved for ****: zimbraImapProxyBindPort=
Server config attribute retrieved for ****: zimbraImapSSLProxyBindPort=
Server config attribute retrieved for ****: zimbraPop3ProxyBindPort=
Server config attribute retrieved for ****: zimbraPop3SSLProxyBindPort=
Global config attribute retrieved from ldap: zimbraSpamIsSpamAccount=
Global config attribute retrieved from ldap: zimbraSpamIsNotSpamAccount=
Global config attribute retrieved from ldap: zimbraNotebookAccount=
checking isEnabled zimbra-mta
zimbra-mta is enabled
Server config attribute retrieved for ****: zimbraMtaMyNetworks=
checking isEnabled zimbra-store
zimbra-store is enabled
Global config attribute retrieved from ldap: zimbraBackupReportEmailRecipients=
Global config attribute retrieved from ldap: zimbraBackupReportEmailSender=
COS attribute retrieved for COS default: zimbraPrefUseKeyboardShortcuts=
COS attribute retrieved for COS default: zimbraPrefTimeZoneId=
COS attribute retrieved for COS default: zimbraFeatureIMEnabled=
COS attribute retrieved for COS default: zimbraFeatureTasksEnabled=
COS attribute retrieved for COS default: zimbraFeatureBriefcasesEnabled=
COS attribute retrieved for COS default: zimbraFeatureNotebookEnabled=
COS attribute retrieved for COS default: zimbraFeatureNotebookEnabled=
Server config attribute retrieved for ****: zimbraSmtpHostname=
Server config attribute retrieved for ****: zimbraMtaAuthHost=
done.
Getting available components
checking isEnabled zimbra-ldap
zimbra-ldap is enabled
checking isEnabled zimbra-store
zimbra-store is enabled
Checking ldap on <hostname removed>:389
Unable to bind to ldap://<hostname removed>:389 with user uid=zimbra,cn=admins,cn=zimbra and password <password removed>
Couldn't bind to <hostname removed> as uid=zimbra,cn=admins,cn=zimbra
Checking ldap on <hostname removed>:389
Unable to bind to ldap://<hostname removed>:389 with user uid=zimbra,cn=admins,cn=zimbra and password <password removed>:
Couldn't bind to <hostname removed> as uid=zimbra,cn=admins,cn=zimbra
Checking ldap on <hostname removed>:389
Unable to bind to ldap://<hostname removed>:389 with user uid=zimbra,cn=admins,cn=zimbra and password <password removed>:
Couldn't bind to <hostname removed> as uid=zimbra,cn=admins,cn=zimbra
checking isEnabled zimbra-mta
zimbra-mta is enabled
checking isEnabled zimbra-archiving
zimbra-archiving not in enabled cache
enabled packages zimbra-logger zimbra-store zimbra-mta zimbra-core zimbra-apache zimbra-cluster zimbra-snmp zimbra-ldap zimbra-spell
zimbra_server_hostname contained in ldap_url checking ldap status
Checking ldap status.
Reply With Quote
  #2 (permalink)  
Old 04-28-2008, 01:21 PM
Moderator
 
Posts: 5,805
Default

Welcome to the forums

Would you please provide more information on your migration ie. same O/S ? same version of ZCS ?
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #3 (permalink)  
Old 03-02-2009, 02:43 AM
Intermediate Member
 
Posts: 19
Default

Hi all, I'm having the same problem moving a Zimbra installation from a 32bit Ubuntu 8.04 server to a 64bit Ubuntu server with the same version. Please note also that the new server has a different IP, but of course I kept the same hostname.

I followed the procedure suggested on the Zimbra blog at Moving ZCS to Another Server » Zimbra :: Blog

When I launch install.sh the last time, without "-s" attribute, it's unable to finish its steps and it prompt me to the Zimbra configuration to change some parameters, after some LDAP errors like the topic author posted.

Some interesting log saved by Zimbra setup:
Code:
[...]
Mon Mar  2 10:16:38 2009 checking isEnabled zimbra-ldap
Mon Mar  2 10:16:38 2009 zimbra-ldap is enabled
Mon Mar  2 10:16:38 2009 checking isEnabled zimbra-store
Mon Mar  2 10:16:38 2009 zimbra-store is enabled
Mon Mar  2 10:16:38 2009 checking isEnabled zimbra-mta
Mon Mar  2 10:16:38 2009 zimbra-mta is enabled
Mon Mar  2 10:16:38 2009 checking isEnabled zimbra-mta
Mon Mar  2 10:16:38 2009 zimbra-mta is enabled
Mon Mar  2 10:16:38 2009 antispam not in enabled cache
Mon Mar  2 10:16:38 2009 antivirus not in enabled cache
Mon Mar  2 10:16:38 2009 archiving not in enabled cache
Mon Mar  2 10:16:38 2009 checking isEnabled zimbra-spell
Mon Mar  2 10:16:38 2009 zimbra-spell is enabled
Mon Mar  2 10:16:38 2009 Checking for port conflicts
Mon Mar  2 10:16:38 2009 checking isEnabled zimbra-ldap
Mon Mar  2 10:16:38 2009 zimbra-ldap is enabled
Mon Mar  2 10:16:38 2009 checking isEnabled zimbra-store
Mon Mar  2 10:16:38 2009 zimbra-store is enabled
Mon Mar  2 10:16:38 2009 Port conflict detected: 7306 (zimbra-store)
Mon Mar  2 10:16:38 2009 checking isEnabled zimbra-mta
Mon Mar  2 10:16:38 2009 zimbra-mta is enabled
Mon Mar  2 10:16:38 2009 Port conflict detected: 25 (zimbra-mta)
Mon Mar  2 10:16:51 2009 checking isEnabled zimbra-ldap
Mon Mar  2 10:16:51 2009 zimbra-ldap is enabled
Mon Mar  2 10:16:52 2009 checking isEnabled zimbra-store
Mon Mar  2 10:16:52 2009 zimbra-store is enabled
Mon Mar  2 10:16:53 2009 checking isEnabled zimbra-logger
Mon Mar  2 10:16:53 2009 zimbra-logger is enabled
Mon Mar  2 10:16:55 2009 checking isEnabled zimbra-mta
Mon Mar  2 10:16:55 2009 zimbra-mta is enabled
Mon Mar  2 10:16:55 2009 Checking ldap status.
[...]
Mon Mar  2 10:17:45 2009 Checking ldap on smtp.netjungle.it:389
Mon Mar  2 10:17:45 2009 Unable to bind to ldap://*********:389 with user uid=zimbra,cn=admins,cn=zimbra and password *********:
Mon Mar  2 10:17:45 2009 Couldn't bind to smtp.netjungle.it as uid=zimbra,cn=admins,cn=zimbra
[...]
Many thanks in advance,
Giorgio
__________________
Giorgio Salluzzo - Sviluppatore Python / Django
Reply With Quote
  #4 (permalink)  
Old 03-02-2009, 02:53 AM
Moderator
 
Posts: 5,805
Default

Have you disabled your firewall on the server ?
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #5 (permalink)  
Old 03-02-2009, 03:25 AM
Intermediate Member
 
Posts: 19
Default

Actually I don't have any firewall installed on the server.
__________________
Giorgio Salluzzo - Sviluppatore Python / Django
Reply With Quote
  #6 (permalink)  
Old 03-02-2009, 03:27 AM
Moderator
 
Posts: 5,805
Default

Can you shutdown ZCS and then start it backup again; and post any errors from /var/log/zimbra.log please.
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #7 (permalink)  
Old 03-02-2009, 04:33 AM
Intermediate Member
 
Posts: 19
Default

Excuse me but I don't understand why you asking me to look for errors in /var/log/zimbra.log.
The source server is up and running with no errros, and the new server's log is empty because I couldn't finish the installation script.
__________________
Giorgio Salluzzo - Sviluppatore Python / Django
Reply With Quote
  #8 (permalink)  
Old 03-02-2009, 04:43 AM
Moderator
 
Posts: 5,805
Default

Arghh! Okay, I would recommend you shut down your source server before trying to install the second one as it has the same hostname. I appreciate you have used a different IP but if any of the services check DNS then it will find your original server ! Quote from that wiki
Quote:
Setup the newer server with the old server’s networking attributes. Make sure your older server is offline.
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #9 (permalink)  
Old 03-02-2009, 05:02 AM
Intermediate Member
 
Posts: 19
Default

My new server has an internal bind9 dns server that points to localhost for that domain. Is it ok?
__________________
Giorgio Salluzzo - Sviluppatore Python / Django

Last edited by drizzt : 03-02-2009 at 06:03 AM.
Reply With Quote
  #10 (permalink)  
Old 03-02-2009, 05:11 AM
Moderator
 
Posts: 5,805
Default

In theory yes; though the Wiki does say the original server should be down. What does the following show
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain mx
dig yourdomain any
host `hostname` <- note backticks and not single quotes
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
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




 

Search Engine Optimization by vBSEO 3.1.0