Results 1 to 4 of 4

Thread: Installation fault - getDirectContext fails

  1. #1
    gregjohnson1024 is offline New Member
    Join Date
    Nov 2005
    Posts
    4
    Rep Power
    9

    Unhappy Installation fault - getDirectContext fails

    Hi folks,
    Installation log below - can't get this to work properly on FC3 (fresh install). After install, get the getDirectContext error and running zmcontrol as user zimbra gives the following
    -----------------
    zmcontrol status
    Calling GetServiceInfoRequest (id19tmp2.esrf.fr)

    RESPONSE: (Zimbra::Mon::serviceInfo)
    host
    ip 160.103.39.52
    name id19tmp2.esrf.fr
    ------------------

    Anyone got any ideas? I tried a reinstall (install.sh -u first) and ensuring slapd wasn't running, as seen in another thread. Still no joy

    Thanks,
    greg


    Log output
    ---------------
    Preparing packages for installation...
    zimbra-core-3.0.M1_21.FC3-20050920155949_
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
    Preparing packages for installation...
    zimbra-ldap-3.0.M1_21.FC3-20050920155949_
    Preparing packages for installation...
    zimbra-mta-3.0.M1_21.FC3-20050920155949_
    Preparing packages for installation...
    zimbra-snmp-3.0.M1_21.FC3-20050920155949_
    Preparing packages for installation...
    zimbra-store-3.0.M1_21.FC3-20050920155949_
    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=id19tmp2.esrf.fr
    COMMAND: zmlocalconfig -e ldap_host=id19tmp2.esrf.fr
    COMMAND: zmlocalconfig -e ldap_port=389
    COMMAND: /opt/zimbra/libexec/zmldapinit
    /opt/zimbra/openldap/sbin/slappasswd: error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file or directory
    /opt/zimbra/openldap/sbin/slappasswd: error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file or directory
    /opt/zimbra/openldap/libexec/slapd: error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file or directory
    Started slapd: pid
    /opt/zimbra/openldap/bin/ldapmodify: error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file or directory
    /opt/zimbra/openldap/bin/ldapmodify: error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file or directory
    COMMAND: zmprov cs id19tmp2.esrf.fr
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException id19tmp2.esrf.fr:389)
    COMMAND: id=`zmprov gs id19tmp2.esrf.fr | 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.CommunicationException id19tmp2.esrf.fr:389)
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException id19tmp2.esrf.fr:389)
    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 id19tmp2.esrf.fr
    COMMAND: zmlocalconfig -e av_notify_user=
    COMMAND: zmlocalconfig -e av_notify_domain=esrf.fr
    COMMAND: zmlocalconfig -e snmp_notify=0
    COMMAND: zmlocalconfig -e smtp_notify=0
    COMMAND: zmlocalconfig -e snmp_trap_host=id19tmp2.esrf.fr
    COMMAND: zmlocalconfig -e smtp_source=none
    COMMAND: zmlocalconfig -e smtp_destination=none
    COMMAND: zmsnmpinit
    creating /opt/zimbra/conf/swatchrc
    COMMAND: zmprov ms id19tmp2.esrf.fr zimbraServiceInstalled ldap zimbraServiceInstalled mailbox zimbraServiceInstalled mta zimbraServiceInstalled antivirus zimbraServiceInstalled antispam zimbraServiceInstalled snmp
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException id19tmp2.esrf.fr:389)
    COMMAND: zmprov ms id19tmp2.esrf.fr zimbraServiceEnabled ldap zimbraServiceEnabled mailbox zimbraServiceEnabled mta zimbraServiceEnabled antivirus zimbraServiceEnabled antispam zimbraServiceEnabled snmp
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException id19tmp2.esrf.fr:389)
    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=id19tmp2.esrf.fr
    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=id19tmp2.esrf.fr
    Getting CA Private Key
    Signature ok
    subject=/C=US/ST=NA/L=NA/O=Zimbra/OU=Zimbra/CN=id19tmp2.esrf.fr
    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.CommunicationException id19tmp2.esrf.fr:389)
    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 (id19tmp2.esrf.fr)

    perl /opt/zimbra/bin/zmmon &

    RESPONSE: (Zimbra::Mon::serviceInfo)
    host
    ip 160.103.39.52
    name id19tmp2.esrf.fr
    COMMAND: zmlocalconfig -s > .localconfig.save.14328
    COMMAND: zmprov gs id19tmp2.esrf.fr > .zmprov.id19tmp2.esrf.fr.save.14328
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException id19tmp2.esrf.fr:389)
    COMMAND: zmprov gacf id19tmp2.esrf.fr > .zmprov.gacf.save.14328
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException id19tmp2.esrf.fr:389)
    [root@id19tmp2 zcs]#
    Last edited by gregjohnson1024; 11-07-2005 at 02:55 PM.

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    Quote Originally Posted by gregjohnson1024
    Hi folks,
    Installation log below - can't get this to work properly on FC3 (fresh install).

    ...

    /opt/zimbra/openldap/sbin/slappasswd: error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file or directory
    Are you sure your using FC3? The ssl link errors look like what you get when you install on FC4.

  3. #3
    gregjohnson1024 is offline New Member
    Join Date
    Nov 2005
    Posts
    4
    Rep Power
    9

    Default

    Indeed you are correct. I downloaded the only FC I could find at Redhat, so goofed up. I'll try and find an old copy of FC3.

    Thanks!
    greg

  4. #4
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default FC4 will work...

    Just follow the instructions in this thread to install on FC4.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Initializing ldap...FAILED (256)
    By CVD in forum Installation
    Replies: 17
    Last Post: 03-10-2006, 09:47 AM
  2. Yet another get.DirectContext issue
    By dccpark in forum Installation
    Replies: 5
    Last Post: 03-08-2006, 01:25 PM
  3. Installation fails on zimbra-store
    By wyleyrabbit in forum Installation
    Replies: 8
    Last Post: 01-15-2006, 08:19 AM
  4. Installation on FC3 under Xen
    By andreground in forum Installation
    Replies: 9
    Last Post: 11-14-2005, 10:29 AM
  5. system failure: getDirectContext
    By avisser in forum Installation
    Replies: 3
    Last Post: 10-12-2005, 05:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •