Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Java error during/after configuration

  1. #1
    Join Date
    Dec 2005
    Posts
    4
    Rep Power
    9

    Default Java error during/after configuration

    Hi Everyone,

    I'm doing my first Zimbra install on FC3, currently in my 2nd try, and I'm getting a Java error during the configuration stage, and Zimbra won't start properly either (same error). The relevant logs are below.

    Thanks in advance for your help!

    >> Excerpt from install.sh output <<
    Checking for prerequisites...
    NPTL...FOUND
    libidn...FOUND libidn-0.5.6-1
    curl...FOUND curl-7.12.1-1
    fetchmail...FOUND fetchmail-6.2.5-7.fc3.1
    gmp...FOUND gmp-4.1.4-3
    /usr/lib/libstdc++.so.5...FOUND

    >> install.log.3901 <<
    Preparing packages for installation...
    zimbra-core-3.0.0_M2_740.FC3-20051114171941
    cat: /opt/zimbra/zimbramon/zimbra.cf.in: No such file or directory
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost:389)
    mkdir: cannot create directory `/opt/zimbra/.ssh': File exists
    Preparing packages for installation...
    zimbra-ldap-3.0.0_M2_740.FC3-20051114171941
    cat: /opt/zimbra/zimbramon/zimbraldap.cf: No such file or directory
    Preparing packages for installation...
    zimbra-logger-3.0.0_M2_740.FC3-20051114171941
    cat: /opt/zimbra/zimbramon/zimbralogger.cf: No such file or directory
    Preparing packages for installation...
    zimbra-mta-3.0.0_M2_740.FC3-20051114171941
    cat: /opt/zimbra/zimbramon/zimbramta.cf: No such file or directory
    Preparing packages for installation...
    zimbra-snmp-3.0.0_M2_740.FC3-20051114171941
    cat: /opt/zimbra/zimbramon/zimbrasnmp.cf: No such file or directory
    Preparing packages for installation...
    zimbra-store-3.0.0_M2_740.FC3-20051114171941
    cat: /opt/zimbra/zimbramon/zimbramail.cf: No such file or directory
    Preparing packages for installation...
    zimbra-apache-3.0.0_M2_740.FC3-20051114171941
    Preparing packages for installation...
    zimbra-spell-3.0.0_M2_740.FC3-20051114171941

    >> /etc/hosts <<
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    192.168.33.15 gonzo.secret-domain.com gonzo

    >> /tmp/zmsetup.log.4790 <<
    Setting local config zimbra_server_hostname to gonzo.secret-domain.com
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_server_hostname=gonzo.secret-domain.com
    Setting local config ldap_master_url to ldap://gonzo.secret-domain.com:389
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e ldap_master_url=ldap://gonzo.secret-domain.com:389
    Setting local config ldap_url to ldap://gonzo.secret-domain.com
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e ldap_url=ldap://gonzo.secret-domain.com
    Setting local config zimbra_uid to 501
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_uid=501
    Setting local config zimbra_gid to 501
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_gid=501
    Setting local config zimbra_user to zimbra
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e zimbra_user=zimbra
    Setting local config av_notify_user to admin@secret-domain.com
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e av_notify_user=admin@secret-domain.com
    Setting local config ssl_allow_untrusted_certs to TRUE
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e ssl_allow_untrusted_certs=TRUE
    Setting up CA...
    *** Running as zimbra user: cd /opt/zimbra; zmcreateca
    Done
    Setting up SSL...
    *** Running as zimbra user: cd /opt/zimbra; zmcreatecert
    *** Running as zimbra user: cd /opt/zimbra; zmtlsctl http
    *** Running as zimbra user: cd /opt/zimbra; zmcertinstall mta /opt/zimbra/ssl/ssl/server/smtpd.crt /opt/zimbra/ssl/ssl/ca/ca.key
    Done
    Initializing ldap...
    *** Running as zimbra user: /opt/zimbra/libexec/zmldapinit
    Done
    Saving CA in ldap...
    *** Running as zimbra user: zmprov mcf zimbraCertAuthorityCertSelfSigned \"-----BEGIN TRUSTED CERTIFICATE-----
    ** REMOVED INTENTIONALLY **
    -----END TRUSTED CERTIFICATE-----\"
    *** Running as zimbra user: zmprov mcf zimbraCertAuthorityKeySelfSigned \"-----BEGIN RSA PRIVATE KEY-----
    ** REMOVED INTENTIONALLY **
    -----END RSA PRIVATE KEY-----\"
    Done
    Creating server entry for gonzo.secret-domain.com...*** Running as zimbra user: /opt/zimbra/bin/zmprov cs gonzo.secret-domain.com
    Done
    Setting spell check URL to http://gonzo.secret-domain.com:7780/aspell.php...
    *** Running as zimbra user: /opt/zimbra/bin/zmprov ms gonzo.secret-domain.com zimbraSpellCheckURL http://gonzo.secret-domain.com:7780/aspell.php
    Done
    Setting service ports on gonzo.secret-domain.com...
    *** Running as zimbra user: /opt/zimbra/bin/zmprov ms gonzo.secret-domain.com zimbraImapBindPort 143 zimbraImapSSLBindPort 993 zimbraPop3BindPort 110 zimbraPop3SSLBindPort 995
    Done
    Adding gonzo.secret-domain.com to zimbraMailHostPool in default COS
    Done
    Creating domain secret-domain.com...
    *** Running as zimbra user: /opt/zimbra/bin/zmprov cd secret-domain.com
    *** Running as zimbra user: /opt/zimbra/bin/zmprov mcf zimbraDefaultDomainName secret-domain.com
    Done
    Creating user admin@secret-domain.com...
    *** Running as zimbra user: /opt/zimbra/bin/zmprov
    Done
    Creating postmaster alias...
    *** Running as zimbra user: /opt/zimbra/zmprov aaa admin@secret-domain.com root@secret-domain.com
    *** Running as zimbra user: /opt/zimbra/zmprov aaa admin@secret-domain.com postmaster@secret-domain.com
    Done
    Initializing store sql database...
    *** Running as zimbra user: /opt/zimbra/libexec/zmmyinit
    Done
    Setting zimbraSmtpHostname for gonzo.secret-domain.com
    *** Running as zimbra user: /opt/zimbra/bin/zmprov ms gonzo.secret-domain.com zimbraSmtpHostname gonzo.secret-domain.com
    Done
    Initializing store sql database...
    *** Running as zimbra user: /opt/zimbra/libexec/zmloggerinit
    Done
    *** Running as zimbra user: /opt/zimbra/bin/zmprov mcf zimbraLogHostname gonzo.secret-domain.com
    Initializing mta config...
    *** Running as zimbra user: /opt/zimbra/libexec/zmmtainit
    Done
    Configuring SNMP...
    Setting local config snmp_notify to yes
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e snmp_notify=yes
    Setting local config smtp_notify to yes
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e smtp_notify=yes
    Setting local config snmp_trap_host to gonzo.secret-domain.com
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e snmp_trap_host=gonzo.secret-domain.com
    Setting local config smtp_source to admin@secret-domain.com
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e smtp_source=admin@secret-domain.com
    Setting local config smtp_destination to admin@secret-domain.com
    *** Running as zimbra user: /opt/zimbra/bin/zmlocalconfig -f -e smtp_destination=admin@secret-domain.com
    *** Running as zimbra user: /opt/zimbra/libexec/zmsnmpinit
    Done
    Configuring Spell server...
    Done
    Setting services on gonzo.secret-domain.com
    *** Running as zimbra user: /opt/zimbra/bin/zmprov ms gonzo.secret-domain.com zimbraServiceInstalled antivirus zimbraServiceInstalled antispam zimbraServiceInstalled logger zimbraServiceInstalled mailbox zimbraServiceInstalled mta zimbraServiceInstalled snmp zimbraServiceInstalled ldap zimbraServiceInstalled spell
    *** Running as zimbra user: /opt/zimbra/bin/zmprov ms gonzo.secret-domain.com zimbraServiceEnabled antivirus zimbraServiceEnabled antispam zimbraServiceEnabled spell zimbraServiceEnabled logger zimbraServiceEnabled mailbox zimbraServiceEnabled mta zimbraServiceEnabled snmp zimbraServiceEnabled ldap zimbraServiceEnabled spell
    Done
    *** Running as zimbra user: /opt/zimbra/bin/zmcontrol start
    *** Running as zimbra user: /opt/zimbra/bin/zmsshkeygen
    *** Running as zimbra user: /opt/zimbra/bin/zmupdateauthkeys
    @domain}
    RenameDistributionList(rdl) {list@domain|id} {newName@domain}

    exit (quit)
    help (?)

    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException gonzo.secret-domain.com:389)
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException gonzo.secret-domain.com:389)
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException gonzo.secret-domain.com:389)
    -bash: /opt/zimbra/zmprov: No such file or directory
    -bash: /opt/zimbra/zmprov: No such file or directory
    * 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
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException gonzo.secret-domain.com:389)
    * Creating required directories
    * Creating database in /opt/zimbra/logger/db/data
    * Starting logger_mysql server
    * Loading schema /opt/zimbra/db/loggerdb.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
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException gonzo.secret-domain.com:389)
    creating /opt/zimbra/conf/swatchrc
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException gonzo.secret-domain.com:389)
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException gonzo.secret-domain.com:389)
    Host gonzo.secret-domain.com
    Starting ldap...Done.
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException gonzo.secret-domain.com:389)
    Generating public/private dsa key pair.
    Your identification has been saved in /opt/zimbra/.ssh/zimbra_identity.
    Your public key has been saved in /opt/zimbra/.ssh/zimbra_identity.pub.
    The key fingerprint is:
    13:71:03:af:23:e4:c4:21:c2:7b:f3:e0:fd:76:d4:4f gonzo.secret-domain.com
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException gonzo.secret-domain.com:389)
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException gonzo.secret-domain.com:389)
    Updating /opt/zimbra/.ssh/authorized_keys

  2. #2
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Did you run install.sh -u to clean up the first install? Did you run "ps -ef | grep zimbra" and kill any running processes to make sure that the system was clean before starting the 2nd install?
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    Join Date
    Dec 2005
    Posts
    4
    Rep Power
    9

    Default

    Yes, I did both of those steps. I should also mention that I had this same problem during the first installation, which is why I reinstalled Zimbra. So, obviously the problem isn't related to Zimbra being reinstalled.

    I also tried a few things other things I found by searching on these forums, including correcting the /etc/hosts file (by default the hostname is on the line with 127.0.0.1), but to no avail.
    Last edited by blitz; 12-20-2005 at 11:02 PM.

  4. #4
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default Dns

    This could be DNS related.

    When you install, you set up a hostname for zimbra to use.

    Try these commands:
    host where hostname is the name you gave zimbra
    host localhost
    host localhost.localdomain

    The first command should return an IP address on the box.
    The second and third should return 127.0.0.1

    Also - is there a firewall running on this machine?

  5. #5
    Join Date
    Dec 2005
    Posts
    4
    Rep Power
    9

    Default

    First off, thanks for everyone's help so far.. very much appreciated.

    As for the host commands you mentioned, the first one returns the correct address, but the last two said "Host localhost not found: 2(SERVFAIL)". So, I added those DNS entries to my Windows 2000 DNS server (no cringing please), and now they correctly return 127.0.0.1.

    No firewall running on this machine that I know of (I deselected it during the FC3 installation process). I also disabled the SELinux stuff, which is apparently installed by default.

    However, when I start zimbra using zmcontrol, I still get the same error.

  6. #6
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default reinstall

    you need to reinstall - the installation failed since it couldn't contact localhost, so ldap wasn't initialized properly.

  7. #7
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default firewall?

    Also, check your firewall before re-installing, so you don't have to go through this again.

  8. #8
    Join Date
    Dec 2005
    Posts
    4
    Rep Power
    9

    Default

    Reinstalled once again (./install.sh -u, ps -ef | grep zimbra, kill processes), but still get the same error during the configuration process.

    I was reading another thread, which seems to suggest that using a FQDN as the hostname causes this problem. Thus I've changed the hostname to just "gonzo" and am going to attempt another reinstall. I'll post again once that's done and let everyone know the result.

    Thanks again for all your help so far!

  9. #9
    Join Date
    Dec 2005
    Posts
    4
    Rep Power
    9

    Default Same problem!

    Hi!

    I have experencied exactly the same problem with java communication exception 389. Just to clarify things:

    Could i have a FQDN of the zimbramachine such as fedora.itg.local(local Active Directory Domain and DNS) and at the same time set LDAP-domain to fedora.molk.se (the actual domain that zimbra should handle mail for)?

    I have tried both options, giving the saming FQDN for the zimbramachine and LDAP-domain but that didnt work either. Still the Java error.

    I am running Fedora Core 3 with no firewall but installed with the option SE Linux.


    Does someone have a clue?

  10. #10
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

    Quote Originally Posted by Andreas
    Hi!

    I have experencied exactly the same problem with java communication exception 389. Just to clarify things:

    Could i have a FQDN of the zimbramachine such as fedora.itg.local(local Active Directory Domain and DNS) and at the same time set LDAP-domain to fedora.molk.se (the actual domain that zimbra should handle mail for)?
    Yes. You just have to make sure that fedora.itg.local resolves in DNS (not just in your /etc/hosts file - host fedora.itg.local must return an IP address).
    Quote Originally Posted by Andreas
    I have tried both options, giving the saming FQDN for the zimbramachine and LDAP-domain but that didnt work either. Still the Java error.

    I am running Fedora Core 3 with no firewall but installed with the option SE Linux.


    Does someone have a clue?
    Turn of SE Linux, it breaks things. Chances are, ldap isn't starting.

Similar Threads

  1. Fedora 5: Could not create the Java virtual machine
    By mi2enno in forum Installation
    Replies: 6
    Last Post: 06-01-2007, 04:16 AM
  2. Tomcat, Java VM Problems - RAM related? Help
    By Mo_Hong in forum Administrators
    Replies: 3
    Last Post: 03-28-2007, 03:00 PM
  3. Mac OSX install: Java errors & LDAP CA error
    By jefbear in forum Installation
    Replies: 9
    Last Post: 12-16-2006, 03:39 PM
  4. Java 1.5 crashing on PPC Mac 10.4.8
    By bradn in forum Installation
    Replies: 1
    Last Post: 12-08-2006, 06:27 PM
  5. Replies: 0
    Last Post: 12-04-2005, 02:34 PM

Posting Permissions

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