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 Thread Tools Display Modes
  #1 (permalink)  
Old 10-02-2006, 02:18 PM
Junior Member
 
Posts: 5
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 10:09 AM.
Reply With Quote
  #2 (permalink)  
Old 10-03-2006, 07:18 AM
Junior Member
 
Posts: 5
Default

bump - up.
Reply With Quote
  #3 (permalink)  
Old 10-03-2006, 07:20 AM
OpenSource Builder & Moderator
 
Posts: 1,158
Default

OS, Mem, CPU?
Reply With Quote
  #4 (permalink)  
Old 10-03-2006, 07:23 AM
Junior Member
 
Posts: 5
Default

OS - Fedora Core 5
8 gigs of RAM.
2GHZ Dual AMD Opteron (64 bits)
Reply With Quote
  #5 (permalink)  
Old 10-03-2006, 08:07 AM
Junior Member
 
Posts: 5
Default

Anybody have any idea as to what is causing my problem?
Reply With Quote
  #6 (permalink)  
Old 10-03-2006, 08:56 AM
Zimbra Consultant & Moderator
 
Posts: 11,324
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
Reply With Quote
  #7 (permalink)  
Old 10-03-2006, 10:18 AM
Junior Member
 
Posts: 5
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 10:23 AM.
Reply With Quote
  #8 (permalink)  
Old 10-03-2006, 05:59 PM
OpenSource Builder & Moderator
 
Posts: 1,158
Default

nice find, good to see you figured it out!

Quote:
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
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