Results 1 to 8 of 8

Thread: New installation - Tomcat dying.

  1. #1
    Goldfingerz is offline Junior Member
    Join Date
    Oct 2006
    Posts
    5
    Rep Power
    8

    Default [FIX] New installation - Tomcat dying - caused by mysql

    I've just installed zimbra version 4.0.2_GA_362.FC5 and I can't seem to get tomcat to run. Everything else is running though.

    Everytime I execute the command:

    tomcat start

    I see a tomcat process come up for 5 seconds and then it dies. It actually happens twice. Here's what I got in the /var/log/zimbra log:

    Code:
    Oct  2 16:07:24 zimbra-test zmtomcatmgr[13682]: manager woke up from wait on tomcat/JVM with pid 13683
    Oct  2 16:07:24 zimbra-test zmtomcatmgr[13682]: manager started tomcat/JVM with pid 14018
    Oct  2 16:07:32 zimbra-test zmtomcatmgr[13682]: manager woke up from wait on tomcat/JVM with pid 14018
    Oct  2 16:07:32 zimbra-test zmtomcatmgr[13682]: tomcat/JVM exited twice in 8 seconds (tolerance=60)
    What can I do to try and diagnose this problem?

    Here's the ouput of lsof -i:

    Code:
    mysqld     1703 zimbra    3u  IPv4 24154136       TCP zimbra-test.unigiciel.com:7306 (LISTEN)
    mysqld     2033 zimbra    3u  IPv4 24154798       TCP zimbra-test.unigiciel.com:7307 (LISTEN)
    perdition  3677 zimbra    4u  IPv4 24158360       TCP zimbra-test.unigiciel.com:imap (LISTEN)
    perdition  3680 zimbra    4u  IPv4 24158382       TCP zimbra-test.unigiciel.com:imaps (LISTEN)
    perdition  3683 zimbra    4u  IPv4 24158409       TCP zimbra-test.unigiciel.com:pop3 (LISTEN)
    perdition  3686 zimbra    4u  IPv4 24158428       TCP zimbra-test.unigiciel.com:pop3s (LISTEN)
    clamd      3812 zimbra    0u  IPv4 24158748       TCP zimbra-test.unigiciel.com:dyna-access (LISTEN)
    httpd      3817 zimbra    3u  IPv4 24158761       TCP zimbra-test.unigiciel.com:7780 (LISTEN)
    httpd      3818 zimbra    3u  IPv4 24158761       TCP zimbra-test.unigiciel.com:7780 (LISTEN)
    httpd      3819 zimbra    3u  IPv4 24158761       TCP zimbra-test.unigiciel.com:7780 (LISTEN)
    httpd      3820 zimbra    3u  IPv4 24158761       TCP zimbra-test.unigiciel.com:7780 (LISTEN)
    httpd      3821 zimbra    3u  IPv4 24158761       TCP zimbra-test.unigiciel.com:7780 (LISTEN)
    httpd      3822 zimbra    3u  IPv4 24158761       TCP zimbra-test.unigiciel.com:7780 (LISTEN)
    amavisd    3825 zimbra    5u  IPv4 24158840       TCP zimbra-test.unigiciel.com:10024 (LISTEN)
    amavisd    3883 zimbra    5u  IPv4 24158840       TCP zimbra-test.unigiciel.com:10024 (LISTEN)
    amavisd    3884 zimbra    5u  IPv4 24158840       TCP zimbra-test.unigiciel.com:10024 (LISTEN)
    amavisd    3885 zimbra    5u  IPv4 24158840       TCP zimbra-test.unigiciel.com:10024 (LISTEN)
    amavisd    3886 zimbra    5u  IPv4 24158840       TCP zimbra-test.unigiciel.com:10024 (LISTEN)
    amavisd    3887 zimbra    5u  IPv4 24158840       TCP zimbra-test.unigiciel.com:10024 (LISTEN)
    amavisd    3888 zimbra    5u  IPv4 24158840       TCP zimbra-test.unigiciel.com:10024 (LISTEN)
    amavisd    3890 zimbra    5u  IPv4 24158840       TCP zimbra-test.unigiciel.com:10024 (LISTEN)
    amavisd    3891 zimbra    5u  IPv4 24158840       TCP zimbra-test.unigiciel.com:10024 (LISTEN)
    amavisd    3892 zimbra    5u  IPv4 24158840       TCP zimbra-test.unigiciel.com:10024 (LISTEN)
    amavisd    3893 zimbra    5u  IPv4 24158840       TCP zimbra-test.unigiciel.com:10024 (LISTEN)
    master     3912   root   11u  IPv4 24159048       TCP zimbra-test.unigiciel.com:smtp (LISTEN)
    master     3912   root   98u  IPv4 24159162       TCP zimbra-test.unigiciel.com:10025 (LISTEN)
    sshd      18843   root    3u  IPv4 24085077       TCP zimbra-test.unigiciel.com:ssh (LISTEN)
    slapd     31474 zimbra    7u  IPv4 24148275       TCP zimbra-test.unigiciel.com:ldap (LISTEN)
    Last edited by Goldfingerz; 10-03-2006 at 09:09 AM.

  2. #2
    Goldfingerz is offline Junior Member
    Join Date
    Oct 2006
    Posts
    5
    Rep Power
    8

    Default

    bump - up.

  3. #3
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    OS, Mem, CPU?

  4. #4
    Goldfingerz is offline Junior Member
    Join Date
    Oct 2006
    Posts
    5
    Rep Power
    8

    Default

    OS - Fedora Core 5
    8 gigs of RAM.
    2GHZ Dual AMD Opteron (64 bits)

  5. #5
    Goldfingerz is offline Junior Member
    Join Date
    Oct 2006
    Posts
    5
    Rep Power
    8

    Default

    Anybody have any idea as to what is causing my problem?

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by Goldfingerz
    Anybody have any idea as to what is causing my problem?
    People will answer your question when they get round to it, don't be so impatient.

    You've got a 64 bit processor, is the o/s 64bit?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    Goldfingerz is offline Junior Member
    Join Date
    Oct 2006
    Posts
    5
    Rep Power
    8

    Default

    Sorry about being impatient, it's just I'm like a kid when I get a new toy.

    Anyhow I figured out the problem. It was caused by the mysql database and the hosts used in the grant entries.

    First let me say I am running zimbra in a vserver. And in a vserver localhost has a different behaviour than ordinary server, since localhost resolves to 192.168.XXX.YYY instead of 127.0.0.1 in the /etc/hosts file.

    So what I did is I logged into mysql, and changed localhost.localdomain for zimbra-test.myserver.com domain in the user and db tables for user zimbra, and that fixed the problem.

    Code:
    cd /opt/zimbra/mysql/bin
    ./mysql -h zimbra-test.unigiciel.com --port 7306
    #------
    # Mysql code start
    use mysql;
    update user set Host = 'zimbra-test.myserver.com' where Host = 'localhost.localdomain' and User = 'zimbra' ;
    update db set Host = 'zimbra-test.myserver.com' where Host = 'localhost.localdomain' and User = 'zimbra' ;
    quit
    # Mysql code finished
    su - zimbra
    zmcontrol stop
    zmcontrol start
    I figured out the problem wasn't with tomcat but rather with mysql when I noticed this error message in the ~zimbra/log/zimbra.log file.

    Code:
    java.sql.SQLException
    MESSAGE: Access denied for user 'zimbra'@'zimbra-test.unigiciel.com' (using password: YES)
    Previously I was only looking at these log files:

    /var/log/messages
    /var/log/zimbra.log
    /opt/zimbra/tomcat/logs/catalina.out
    Last edited by Goldfingerz; 10-03-2006 at 09:23 AM.

  8. #8
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    nice find, good to see you figured it out!

    First let me say I am running zimbra in a vserver. And in a vserver localhost has a different behaviour than ordinary server, since localhost resolves to 192.168.XXX.YYY instead of 127.0.0.1 in the /etc/hosts file.
    that's really stoopid behaviour

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 08-03-2007, 08:20 AM
  2. Need some help with the tomcat installation
    By ghstridr in forum Administrators
    Replies: 6
    Last Post: 05-14-2007, 12:15 PM
  3. Replies: 14
    Last Post: 03-21-2007, 11:15 AM
  4. Replies: 16
    Last Post: 01-05-2006, 09:55 AM
  5. Installation problem
    By sywong70 in forum Installation
    Replies: 5
    Last Post: 11-07-2005, 09:01 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
  •