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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 10-11-2005, 03:52 PM
Active Member
 
Posts: 29
Default system failure: getDirectContext

I am trying to install Zimbra on RHEL4, but am getting the following error. Can someone help me out?

Post installation configuration

Creating db...done
Setting the hostname to mail.agroup.com...done
Setting the LDAP host to mail.agroup.com...done
Initializing ldap...done
Creating server mail.agroup.com...done
Creating domain mail.agroup.com...done
Creating admin account admin@mail.agroup.com...done
Adding mail.agroup.com to zimbraMailHostPool in default COS...done
Initializing mta config...done
Configuring SNMP...done
Setting services on mail.agroup.com...done
Setting up SSL...done
Starting servers...Calling GetServiceInfoRequest (mail.agroup.com)

RESPONSE: (Zimbra::Mon::serviceInfo)
host
ip 192.168.1.233
name mail.agroup.com
done
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])

Installation complete!

Operations logged to /tmp/install.log.8960


Hosts file

[root@mail etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
#216.223.162.97 mail.agroup.com mail
192.168.1.233 mail.agroup.com mail


The install log follows:

[root@mail zcs]# cat /tmp/install.log.8960
COMMAND: zmlocalconfig -s | sed -e "s/ = \(.*\)/=\'\1\'/" > /tmp/saveconfig.8960/config.save
COMMAND: zmcontrol shutdown
Calling ShutDownRequest (mail.agroup.com)

Preparing packages for installation...
zimbra-core-3.0.M1_21.RHEL4-20050920162541_
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
Preparing packages for installation...
zimbra-ldap-3.0.M1_21.RHEL4-20050920162541_
Preparing packages for installation...
zimbra-mta-3.0.M1_21.RHEL4-20050920162541_
Preparing packages for installation...
zimbra-snmp-3.0.M1_21.RHEL4-20050920162541_
Preparing packages for installation...
zimbra-store-3.0.M1_21.RHEL4-20050920162541_
COMMAND: /opt/zimbra/libexec/zmmyinit
* Creating required directories
* Generating mysql config /opt/zimbra/conf/my.cnf
* Creating database in /opt/zimbra/db/data
* Starting mysql server
* Loading schema /opt/zimbra/db/db.sql
* Loading version from /opt/zimbra/db/versions-init.sql
* Setting random password for mysql root user in zimbra local config
* Setting random password for mysql zimbra user in zimbra local config
* Changing mysql root user password
* Changing mysql zimbra user password
* Changed zimbra mysql user password
COMMAND: zmlocalconfig -e zimbra_server_hostname=mail.agroup.com
COMMAND: zmlocalconfig -e ldap_host=mail.agroup.com
COMMAND: zmlocalconfig -e ldap_port=389
COMMAND: /opt/zimbra/libexec/zmldapinit
Started slapd: pid
ldap_bind: Invalid credentials (49)
ldap_bind: Invalid credentials (49)
COMMAND: zmprov cs mail.agroup.com
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
COMMAND: zmprov cd mail.agroup.com
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
COMMAND: zmprov mcf zimbraDefaultDomainName mail.agroup.com
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
COMMAND: zmprov ca admin@mail.agroup.com supastar zimbraIsAdminAccount TRUE
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
COMMAND: zmprov aaa admin@mail.agroup.com postmaster@mail.agroup.com
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
COMMAND: id=`zmprov gs mail.agroup.com | grep zimbraId | awk '{print $2}'`; for i in `zmprov gc default | grep zimbraMailHostPool | sed 's/zimbraMailHostPool: //'`; do host="$host zimbraMailHostPool $i"; done; zmprov mc default $host zimbraMailHostPool $id
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])
zmprov [cmd] [args ...]

CreateAccount(ca) {name@domain} {password} [attr1 value1 [attr2 value2...]]
DeleteAccount(da) {name@domain|id}
GetAccount(ga) {name@domain|id}
GetAllAccounts(gaa) [-v] [{domain}]
GetAllAdminAccounts(gaaa) [-v]
ModifyAccount(ma) {name@domain|id} [attr1 value1 [attr2 value2...]]
SetPassword(sp) {name@domain|id} {password}
AddAccountAlias(aaa) {name@domain|id} {alias@domain}
RemoveAccountAlias(raa) {name@domain|id} {alias@domain}
SetAccountCos(sac) {name@domain|id} {cos-name|cos-id}
SearchAccounts(sa) [-v] {ldap-query} [limit {limit}] [offset {offset}] [sortBy {attr}] [attrs {a1,a2...}] [sortAscending 0|1*] [applyCos [0|1*] [domain {domain}]
SearchGal(sg) {domain} {name}
RenameAccount(ra) {name@domain|id} {newName@domain}

CreateDomain(cd) {domain} [attr1 value1 [attr2 value2...]]
DeleteDomain(dd) {domain|id}
GetDomain(gd) {domain|id}
GetAllDomains(gad) [-v]
ModifyDomain(md) {domain|id} [attr1 value1 [attr2 value2...]]

CreateCos(cc) {name} [attr1 value1 [attr2 value2...]]
DeleteCos(dc) {name|id}
GetCos(gc) {name|id}
GetAllCos(gac) [-v]
ModifyCos(mc) {name|id} [attr1 value1 [attr2 value2...]]
RenameCos(rc) {name|id} {newName}

CreateServer(cs) {name} [attr1 value1 [attr2 value2...]]
DeleteServer(ds) {name|id}
GetServer(gs) {name|id}
GetAllServers(gas) [-v]
ModifyServer(ms) {name|id} [attr1 value1 [attr2 value2...]]

GetAllConfig(gacf)
GetConfig(gcf) {name}
ModifyConfig(mcf) attr1 value1 [attr2 value2...]

CreateDistributionList(cdl) {list@domain}
GetAllDistributionLists(gadl) [-v]
GetDistributionList(gdl) {list@domain|id}
DeleteDistributionList(ddl) {list@domain|id}
AddDistributionListMember(adlm) {list@domain|id} {member@domain}
RemoveDistributionListMember(rdlm) {list@domain|id} {member@domain}

exit (quit)
help (?)

COMMAND: /opt/zimbra/libexec/zmmtainit mail.agroup.com
COMMAND: zmlocalconfig -e av_notify_user=notify@mail.agroup.com
COMMAND: zmlocalconfig -e av_notify_domain=mail.agroup.com
COMMAND: zmlocalconfig -e snmp_notify=0
COMMAND: zmlocalconfig -e smtp_notify=0
COMMAND: zmlocalconfig -e snmp_trap_host=mail.agroup.com
COMMAND: zmlocalconfig -e smtp_source=none
COMMAND: zmlocalconfig -e smtp_destination=none
COMMAND: zmsnmpinit
creating /opt/zimbra/conf/swatchrc
COMMAND: zmprov ms mail.agroup.com zimbraServiceInstalled ldap zimbraServiceInstalled mailbox zimbraServiceInstalled mta zimbraServiceInstalled antivirus zimbraServiceInstalled antispam zimbraServiceInstalled snmp
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
COMMAND: zmprov ms mail.agroup.com zimbraServiceEnabled ldap zimbraServiceEnabled mailbox zimbraServiceEnabled mta zimbraServiceEnabled antivirus zimbraServiceEnabled antispam zimbraServiceEnabled snmp
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
COMMAND: zmlocalconfig -e zimbra_services="ldap mailbox mta antivirus antispam snmp"
COMMAND: zmcreatecert
** Creating CA private key

Generating a 1024 bit RSA private key
...++++++
..........++++++
writing new private key to '/opt/zimbra/ssl/ssl/ca/ca.key'
-----
** Creating CA cert

Signature ok
subject=/C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite/CN=mail.agroup.com
Getting Private key
** Importing CA

Certificate was added to keystore
keytool error: java.io.FileNotFoundException: /opt/zimbra/java/jre/lib/security/cacerts (Permission denied)
** Creating keystore

** Creating server cert request

** Signing cert request

Signature ok
subject=/C=US/ST=NA/L=NA/O=Zimbra/OU=Zimbra/CN=mail.agroup.com
Getting CA Private Key
Signature ok
subject=/C=US/ST=NA/L=NA/O=Zimbra/OU=Zimbra/CN=mail.agroup.com
Getting Private key
COMMAND: zmcertinstall mailbox
** Importing server cert

keytool error: java.lang.Exception: Failed to establish chain from reply
COMMAND: zmtlsctl http
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
COMMAND: zmcertinstall mta /opt/zimbra/ssl/ssl/server/smtpd.crt /opt/zimbra/ssl/ssl/ca/ca.key
** Importing server cert

COMMAND: zmlocalconfig -e ssl_allow_untrusted_certs=true
COMMAND: zmcontrol startup
Calling startup (mail.agroup.com)

perl /opt/zimbra/bin/zmmon &

RESPONSE: (Zimbra::Mon::serviceInfo)
host
ip 192.168.1.233
name mail.agroup.com
COMMAND: zmlocalconfig -s > .localconfig.save.8960
COMMAND: zmprov gs mail.agroup.com > .zmprov.mail.agroup.com.save.8960
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
COMMAND: zmprov gacf mail.agroup.com > .zmprov.gacf.save.8960
ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.AuthenticationException [LDAP: error code 49 - Invalid Credentials])
[root@mail zcs]#
Reply With Quote
  #2 (permalink)  
Old 10-11-2005, 04:53 PM
Zimbra Employee
 
Posts: 4,784
Default

Good post BTW, included all the important things. We like it when you read a few threads first!

Was this a re-install? Seems like slapd (OpenLDAP) was already running so the installer can't init it. If this was your first install could you already of had an OpenLDAP server running? Since you've not got too far yet I'd just try a install.sh -u to remove Zimbra then do a ps -ef | grep zimbra and kill any processes that are left over. Also check for a OpenLDAP with a ps -ef | grep slapd and kill that if you see it. Your hosts file looks perfect so you should be good to go.
Reply With Quote
  #3 (permalink)  
Old 10-12-2005, 05:55 AM
Loyal Member
 
Posts: 96
Default

What a coincidence! I was trying my first attempts at installing zimbra yesterday and was having the same issue. This fixed it! Thanks!
Reply With Quote
  #4 (permalink)  
Old 10-12-2005, 06:32 AM
Active Member
 
Posts: 29
Default Excellent

KevinH, thanks for the help. I am now looking at a wonderful install of Zimbra.

I got this message on both the first install and a reinstall, so there must have been an OpenLDAP process running after the default install of RHEL4.

This is an excellent piece of engineering on your side. Congratulate everyone for me.

Last edited by avisser : 10-12-2005 at 06:37 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