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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 07-25-2006, 09:42 PM
Active Member
 
Posts: 28
Default 3 testing: LDAP: 389 Failed when restore zimbra

I have searched the fourms, but can not find the best solution.

My Machine
Operating System: Fedora Core 4
Zimbra Version: 3.1.2 for FC4

I have two machines, and the settings are the same.
A PC: for testing
B PC: for using

Two backup files
A files: Backup from A PC.
B files: Backup from B PC.

My first testing on A PC:
1. Uninstall the zimbra
2. Install a clean zimbra
3. Stop zimbra and kill all related process and reboot
4. Check the process and kill(include slapd)
5. Remove the /opt/zimbra
6. Copy the backup zimbra folder(A files) to /opt
7. Run the install script "./install.sh"
8. When restore the zimbra, the error appears.
Code:
Restoring existing configuration file from /opt/zimbra/.saveconfig/config.save...done
Operations logged to /tmp/zmsetup.log.9702
Setting defaults...Setting defaults from existing config...Done
Checking for port conflicts
Starting ldap...Done
Setting defaults from ldap...ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
Done
Checking ldap on localhost:389...FAILED ( ldap_bind: Invalid credentials (49) )
Checking ldap on localhost:389...FAILED ( ldap_bind: Invalid credentials (49) )

Main menu

   1) Hostname:                                mydomain                   
   2) Ldap master host:                        mydomain                   
   3) Ldap port:                               389                           
   4) Ldap password:                           set                           
   5) zimbra-ldap:                             Enabled                       
   6) zimbra-store:                            Enabled                       
        +Create Admin User:                    no                            
        +SMTP host:                            mydomain                   
******* +Web server HTTP port:                 UNSET                         
******* +Web server HTTPS port:                UNSET                         
        +Web server mode:                      mixed                         
        +Enable POP/IMAP proxy:                no                            
        +IMAP server port:                     143                           
        +IMAP server SSL port:                 993                           
        +POP server port:                      110                           
        +POP server SSL port:                  995                           
        +Use spell check server:               yes                           
        +Spell server URL:                     http://mydomain:7780/aspell.php

   7) zimbra-mta:                              Enabled                       
   8) zimbra-snmp:                             Enabled                       
   9) zimbra-logger:                           Enabled                       
  10) zimbra-spell:                            Enabled                       
   r) Start servers after configuration        yes                           
   s) Save config to file                                                    
   x) Expand menu                                                            
   q) Quit                                    

Address unconfigured (**) items or correct ldap configuration  (? - help)
zmsetup.log
Code:
Started slapd: pid 10101
slapd already running: pid 10101
ldap_bind: Invalid credentials (49)
ldap_bind: Invalid credentials (49)
ldap_bind: Invalid credentials (49)
ls: /opt/zimbra/lib/conf/*ldif: No such file or directory
After that, I pressed "Ctrl+C" to stop the installation. Then I run the install script again.
Code:
Restoring existing configuration file from /opt/zimbra/.saveconfig/config.save...done
Operations logged to /tmp/zmsetup.log.18008
Setting defaults...Setting defaults from existing config...Done
Checking for port conflicts
Starting ldap...Done
Setting defaults from ldap...Done
Checking ldap on localhost:389...Success
Checking ldap on localhost:389...Success
Saving config in /opt/zimbra/config.18008...Done
Operations logged to /tmp/zmsetup.log.18008
Setting local config values...Done
Creating SSL certificate...Done
Starting ldap...Done
Saving CA in ldap...Done
Installing SSL certificate...Done
Creating server entry for mydomain...Done
Setting spell check URL...Done
Setting service ports on mydomain...Done
Adding mydomain to zimbraMailHostPool in default COS...Done
Installing zimlets... com_zimbra_ymaps... com_zimbra_xslt... com_zimbra_url... com_zimbra_amzn... com_zimbra_wikipedia... com_zimbra_tracking... com_zimbra_phone... Done
Setting MTA auth host...Done
Initializing mta config...Done
Configuring SNMP...Done
Setting services on mydomain...Done
Setting up zimbra crontab...Done

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
        The VERSION of zcs installed (3.1.2_GA_445_FC4)
        The ADMIN EMAIL ADDRESS created (admin@mydomain)

Notify Zimbra of your installation? [Yes] N
Notification skipped
Starting servers...
Done.


Operations logged to /tmp/zmsetup.log.18008


Configuration complete - press return to exit
The installation is successfully. (Checking ldap on localhost:389...Success)However, when I check the zimbra status, the other error appears.
Code:
[zimbra@mail zcs_3.1.2]$ zmcontrol status
Host mydomain
        antispam                Running
        antivirus               Stopped
                zmclamdctl is not running
        ldap                    Running
        logger                  Stopped
                logmysql.server is not running
                zmlogswatchctl is not running
        mailbox                 Stopped
                mysql.server is not running
                tomcat is not running
        mta                     Running
        snmp                    Running
        spell                   Running
Some posts in fourms said that the slapd.conf have problems. However, I test on other way.

My second testing on A PC:
1. Uninstall the zimbra
2. Install a clean zimbra
3. Stop zimbra and kill all related process and reboot
4. Check the process and kill(include slapd)
5. Remove the /opt/zimbra
6. Copy the backup zimbra folder(B files) to /opt
7. Run the install script "./install.sh"
8. No errors and installation is successfully.

No errors on this testing. I don't really understand what problem on it.

My third testing on A PC:
1. Uninstall the zimbra
2. Install a clean zimbra
3. Stop zimbra and kill all related process and reboot
4. Check the process and kill(include slapd)
5. Run the install script "./install.sh"
6. Error appears!
Code:
Checking for port conflicts
Starting ldap...Done
Setting defaults from ldap...ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
Done
Checking ldap on localhost:389...FAILED ( ldap_bind: Invalid credentials (49) )
Checking ldap on localhost:389...FAILED ( ldap_bind: Invalid credentials (49) )

Main menu

   1) Hostname:                                mydomain                   
   2) Ldap master host:                        mydomain                   
   3) Ldap port:                               389                           
   4) Ldap password:                           set                           
   5) zimbra-ldap:                             Enabled                       
   6) zimbra-store:                            Enabled                       
        +Create Admin User:                    no                            
        +SMTP host:                            mydomain                   
******* +Web server HTTP port:                 UNSET                         
******* +Web server HTTPS port:                UNSET                         
        +Web server mode:                      mixed                         
        +Enable POP/IMAP proxy:                no                            
        +IMAP server port:                     143                           
        +IMAP server SSL port:                 993                           
        +POP server port:                      110                           
        +POP server SSL port:                  995                           
        +Use spell check server:               yes                           
        +Spell server URL:                     http://mydomain:7780/aspell.php

   7) zimbra-mta:                              Enabled                       
   8) zimbra-snmp:                             Enabled                       
   9) zimbra-logger:                           Enabled                       
  10) zimbra-spell:                            Enabled                       
   r) Start servers after configuration        yes                           
   s) Save config to file                                                    
   x) Expand menu                                                            
   q) Quit                                    

Address unconfigured (**) items or correct ldap configuration  (? - help)
New Version 3.1.4 have the same result.

Anyone have idea on those of problems?

Last edited by victorLeong : 07-25-2006 at 09:50 PM.
Reply With Quote
  #2 (permalink)  
Old 07-25-2006, 09:56 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

I've had the exact same problem. Odds are, your LDAP Password is either an old version, or it didn't update it right.

Your problem is with : the save config file.

Try this, when you get the options menu, set the LDAP password to what you remember it to be.
Reply With Quote
  #3 (permalink)  
Old 07-25-2006, 09:57 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Quote:
Originally Posted by wannabetenor
I've had the exact same problem. Odds are, your LDAP Password is either an old version, or it didn't update it right.

Your problem is with : the save config file.

Try this, when you get the options menu, set the LDAP password to what you remember it to be.
And rest the HTTP port to what ever you want and the ssl is likely 443
Reply With Quote
  #4 (permalink)  
Old 07-25-2006, 11:02 PM
Active Member
 
Posts: 28
Default

Quote:
Originally Posted by wannabetenor
I've had the exact same problem. Odds are, your LDAP Password is either an old version, or it didn't update it right.

Your problem is with : the save config file.

Try this, when you get the options menu, set the LDAP password to what you remember it to be.
I have tried to set the password and set the port of http and https. But it can not continue to install.

Code:
Select, or 'r' for previous menu [r] r
Checking ldap on localhost:389...FAILED ( ldap_bind: Invalid credentials (49) )
Checking ldap on localhost:389...FAILED ( ldap_bind: Invalid credentials (49) )

Main menu

   1) Hostname:                                mydomain                   
   2) Ldap master host:                        mydomain                   
   3) Ldap port:                               389                           
   4) Ldap password:                           set                           
   5) zimbra-ldap:                             Enabled                       
   6) zimbra-store:                            Enabled                       
   7) zimbra-mta:                              Enabled                       
   8) zimbra-snmp:                             Enabled                       
   9) zimbra-logger:                           Enabled                       
  10) zimbra-spell:                            Enabled                       
   r) Start servers after configuration        yes                           
   s) Save config to file                                                    
   x) Expand menu                                                            
   q) Quit                                    

Address unconfigured (**) items or correct ldap configuration  (? - help)
It said that I need to correct ldap configuration. Otherwise, can not continue to install zimbra. I have tried to change the LDAP port, but the error still appear. What should I do now?
Reply With Quote
  #5 (permalink)  
Old 07-25-2006, 11:12 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

You don't want to change the LDAP Port. It should be 389

Can open another window and run zmlocalconfig -s ?

And post the results? If you want you can message them to me, cause its going to display stuff you may not want on the board.
Reply With Quote
  #6 (permalink)  
Old 07-25-2006, 11:19 PM
Active Member
 
Posts: 28
Default

Quote:
Originally Posted by wannabetenor
You don't want to change the LDAP Port. It should be 389

Can open another window and run zmlocalconfig -s ?

And post the results? If you want you can message them to me, cause its going to display stuff you may not want on the board.
Config removed.

Last edited by jholder : 07-25-2006 at 11:27 PM.
Reply With Quote
  #7 (permalink)  
Old 07-25-2006, 11:25 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

I'm going to go ahead and remove your config, because I don't think it's good to leave it here.

Run the following as zimbra user
zmldappasswd --root newpasss
zmldappasswd newpass2

I assume you still have the install open, that's good. Keep it open when you run these. You should be at the menu.

Then, once you've run those commands, then go to the menu, and set the LDAP Password.

Just as an FYI: I think that if your LDAP is out of sync, your sql passwords are going to be out of sync too. . .so this is only the beginning.

jh
Reply With Quote
  #8 (permalink)  
Old 07-25-2006, 11:35 PM
Active Member
 
Posts: 28
Default

Quote:
Originally Posted by wannabetenor
I'm going to go ahead and remove your config, because I don't think it's good to leave it here.

Run the following as zimbra user
zmldappasswd --root newpasss
zmldappasswd newpass2

I assume you still have the install open, that's good. Keep it open when you run these. You should be at the menu.

Then, once you've run those commands, then go to the menu, and set the LDAP Password.

Just as an FYI: I think that if your LDAP is out of sync, your sql passwords are going to be out of sync too. . .so this is only the beginning.

jh
It can continue to install now. Thanks you veru much.

However, when the installation completed. The errors meet again

Code:
[zimbra@mail zcs_3.1.2]$ zmcontrol status
Host mydomain
        antispam                Running
        antivirus               Running
        ldap                    Running
        logger                  Stopped
                logmysql.server is not running
                zmlogswatchctl is not running
        mailbox                 Stopped
                mysql.server is not running
                tomcat is not running
        mta                     Running
        snmp                    Running
        spell                   Running
Reply With Quote
  #9 (permalink)  
Old 07-25-2006, 11:43 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

I was right, your SQL Passwords are out of sync.
Go to the wiki and look up that section. It has a good tutorial on how to fix that.

Also, you're going to have some permissions issues as well. Run the zmfixperms script in the libexec dir. Also, you will need to run
>chown zimbra:zimbra /opt/zimbra/store/*

Hope this helps.

john
Reply With Quote
  #10 (permalink)  
Old 07-26-2006, 03:07 AM
Active Member
 
Posts: 28
Default

Quote:
Originally Posted by wannabetenor
I was right, your SQL Passwords are out of sync.
Go to the wiki and look up that section. It has a good tutorial on how to fix that.

Also, you're going to have some permissions issues as well. Run the zmfixperms script in the libexec dir. Also, you will need to run
>chown zimbra:zimbra /opt/zimbra/store/*

Hope this helps.

john
Thanks you so much.

However, I found the best solution.

when I used tar command to backup the files and restore, no ldap failed.( I used cp command before, cp command can not copy some files. )

Last edited by victorLeong : 07-26-2006 at 03:15 AM.
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