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

Thread: Unable to start tomcat

  1. #1
    Join Date
    Oct 2005
    Posts
    56
    Rep Power
    10

    Default Unable to start tomcat

    Hi,

    I have looked around the forum and tried some methods shown there but the problem cannot be solved.

    I have an oldbox with zcs-3.1.0_GA_332.FC4. I tried to move it to another box. I did install zcs-3.1.0_GA_332 on the newbox first and then extract the tarball of the zimbra dir from oldbox. After starting the service, it showed

    [zimbra@mailsrv ~]$ zmcontrol status
    Host mydomain
    ldap Running
    logger Running
    mailbox Stopped
    tomcat is not running
    mta Running
    snmp Running
    spell Running

    Here is the log of catalina.out

    Code:
    zmtomcatstart: info: stale pid 30966 in pid file: No such process
    May 25, 2006 11:24:52 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-80
    May 25, 2006 11:24:52 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-7071
    May 25, 2006 11:24:52 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1489 ms
    May 25, 2006 11:24:52 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    May 25, 2006 11:24:52 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
    May 25, 2006 11:24:52 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    May 25, 2006 11:24:53 AM org.apache.catalina.startup.HostConfig deployDescriptor
    WARNING: A docBase /opt/zimbra/apache-tomcat-5.5.15/webapps/zimbra inside the ho
    st appBase has been specified, and will be ignored
    log4j:WARN No appenders could be found for logger (org.apache.catalina.session.M
    anagerBase).
    log4j:WARN Please initialize the log4j system properly.
    Zimbra server reserving server socket port=110 bindaddr=null ssl=false
    Zimbra server reserving server socket port=143 bindaddr=null ssl=false
    Zimbra server reserving server socket port=993 bindaddr=null ssl=true
    Zimbra server process is running as root, changing to user=zimbra uid=501 gid=501
    Zimbra server process, after change, is running with uid=501 euid=501 gid=501 eg
    id=501
    log4j:ERROR setFile(null,true) call failed.
    java.io.FileNotFoundException: /opt/zimbra/log/zimbra.log (Permission denied)
            at java.io.FileOutputStream.openAppend(Native Method)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
            at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
            at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
            at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollin
    gFileAppender.java:206)
            at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:2
    47)
            at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.j
    ava:123)
            at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.j
    ava:87)
            at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigura
    tor.java:645)
            at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigura
    tor.java:603)
            at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyC............................
    I have tried execute zmfixperms but it did not help.

    Thomas

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    HI Thomas,
    Try this:
    >su zimbra
    >zmcontrol stop
    >chown zimbra:zimbra /opt/zimbra/log/zimbra.log
    >zmcontrol start

    Let's see what that does. . .

    jh
    Quote Originally Posted by chanck
    Hi,

    I have looked around the forum and tried some methods shown there but the problem cannot be solved.

    I have an oldbox with zcs-3.1.0_GA_332.FC4. I tried to move it to another box. I did install zcs-3.1.0_GA_332 on the newbox first and then extract the tarball of the zimbra dir from oldbox. After starting the service, it showed

    [zimbra@mailsrv ~]$ zmcontrol status
    Host mydomain
    ldap Running
    logger Running
    mailbox Stopped
    tomcat is not running
    mta Running
    snmp Running
    spell Running

    Here is the log of catalina.out

    Code:
    zmtomcatstart: info: stale pid 30966 in pid file: No such process
    May 25, 2006 11:24:52 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-80
    May 25, 2006 11:24:52 AM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-7071
    May 25, 2006 11:24:52 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1489 ms
    May 25, 2006 11:24:52 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    May 25, 2006 11:24:52 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
    May 25, 2006 11:24:52 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    May 25, 2006 11:24:53 AM org.apache.catalina.startup.HostConfig deployDescriptor
    WARNING: A docBase /opt/zimbra/apache-tomcat-5.5.15/webapps/zimbra inside the ho
    st appBase has been specified, and will be ignored
    log4j:WARN No appenders could be found for logger (org.apache.catalina.session.M
    anagerBase).
    log4j:WARN Please initialize the log4j system properly.
    Zimbra server reserving server socket port=110 bindaddr=null ssl=false
    Zimbra server reserving server socket port=143 bindaddr=null ssl=false
    Zimbra server reserving server socket port=993 bindaddr=null ssl=true
    Zimbra server process is running as root, changing to user=zimbra uid=501 gid=501
    Zimbra server process, after change, is running with uid=501 euid=501 gid=501 eg
    id=501
    log4j:ERROR setFile(null,true) call failed.
    java.io.FileNotFoundException: /opt/zimbra/log/zimbra.log (Permission denied)
            at java.io.FileOutputStream.openAppend(Native Method)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
            at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
            at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
            at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollin
    gFileAppender.java:206)
            at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:2
    47)
            at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.j
    ava:123)
            at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.j
    ava:87)
            at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigura
    tor.java:645)
            at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigura
    tor.java:603)
            at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyC............................
    I have tried execute zmfixperms but it did not help.

    Thomas

  3. #3
    Join Date
    Oct 2005
    Posts
    56
    Rep Power
    10

    Default

    In fact, I have read the ownership of those files

    They are all zimbra already.

    Code:
    [root@mailsrv log]# ls -l
    total 34072
    -rw-r-----  1 zimbra zimbra     562 May 25 03:00 audit.log
    -rw-r-----  1 zimbra zimbra   15027 May 16 23:45 audit.log.2006-05-16
    -rw-r-----  1 zimbra zimbra   13529 May 17 23:45 audit.log.2006-05-17
    -rw-r-----  1 zimbra zimbra    8476 May 18 23:45 audit.log.2006-05-18
    -rw-r-----  1 zimbra zimbra   10323 May 19 23:48 audit.log.2006-05-19
    -rw-r-----  1 zimbra zimbra    1030 May 20 23:45 audit.log.2006-05-20
    -rw-r-----  1 zimbra zimbra    2242 May 21 23:45 audit.log.2006-05-21
    -rw-r-----  1 zimbra zimbra    5677 May 22 23:48 audit.log.2006-05-22
    -rw-r-----  1 zimbra zimbra    7142 May 23 23:45 audit.log.2006-05-23
    -rw-r-----  1 zimbra zimbra    6292 May 24 23:45 audit.log.2006-05-24
    -rw-rw-r--  1 zimbra zimbra 2594263 May 25 06:55 freshclam.log
    -rw-rw-r--  1 zimbra zimbra       0 May 24 08:48 httpd_access.log
    -rw-rw-r--  1 zimbra zimbra     456 May 25 11:25 httpd_error.log
    -rw-r--r--  1 zimbra zimbra       6 May 25 11:25 httpd.pid
    -rw-rw----  1 zimbra zimbra  468306 May 25 12:10 logger_myslow.log
    -rw-rw----  1 zimbra zimbra  556225 May 25 04:02 logger_myslow.log.1.gz
    -rw-rw----  1 zimbra zimbra    1492 May 25 11:24 logger_mysqld.log
    -rw-rw-r--  1 zimbra zimbra       6 May 25 11:24 logswatch.pid
    -rw-r--r--  1 zimbra zimbra     690 May 25 11:24 myslow.log
    -rw-rw----  1 zimbra zimbra     990 May 25 04:02 myslow.log.1.gz
    -rw-rw----  1 zimbra zimbra    1442 May 25 11:24 mysqld.log
    -rw-r--r--  1 zimbra zimbra   64614 May 24 23:45 spamtrain.log
    -rw-rw-r--  1 zimbra zimbra       6 May 25 11:25 swatch.pid
    -rw-r-----  1 zimbra zimbra       0 May 24 08:47 sync.log
    -rw-r-----  1 zimbra zimbra       0 May 24 08:47 syncstate.log
    -rw-r--r--  1 zimbra zimbra       6 May 25 11:24 tomcat.pid
    -rw-r-----  1 zimbra zimbra       0 May 24 08:47 wbxml.log
    -rw-r-----  1 zimbra zimbra  562137 May 25 08:35 zimbra.log
    -rw-r-----  1 zimbra zimbra 2358677 May 16 23:59 zimbra.log.2006-05-16
    -rw-r-----  1 zimbra zimbra 2901037 May 17 23:59 zimbra.log.2006-05-17
    -rw-r-----  1 zimbra zimbra 2859808 May 18 23:59 zimbra.log.2006-05-18
    -rw-r-----  1 zimbra zimbra 2405249 May 19 23:59 zimbra.log.2006-05-19
    -rw-r-----  1 zimbra zimbra  971951 May 20 23:59 zimbra.log.2006-05-20
    -rw-r-----  1 zimbra zimbra 1026598 May 21 23:59 zimbra.log.2006-05-21
    -rw-r-----  1 zimbra zimbra 4189504 May 22 23:59 zimbra.log.2006-05-22
    -rw-r-----  1 zimbra zimbra 2015950 May 23 23:59 zimbra.log.2006-05-23
    -rw-r-----  1 zimbra zimbra 1823184 May 24 23:59 zimbra.log.2006-05-24
    -rw-rw-r--  1 zimbra zimbra 9849466 May 25 12:12 zmmtaconfig.log
    -rw-rw-r--  1 zimbra zimbra       5 May 25 11:24 zmmtaconfig.pid
    Quote Originally Posted by wannabetenor
    HI Thomas,
    Try this:
    >su zimbra
    >zmcontrol stop
    >chown zimbra:zimbra /opt/zimbra/log/zimbra.log
    >zmcontrol start

    Let's see what that does. . .

    jh

  4. #4
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    I put together a wiki article on the wiki on how to backup and restore zimbra.

    I would strongly reccommend you follow it's procedures.

    http://wiki.zimbra.com/index.php?tit...ckup_Procedure

    Follow that, it'll work.

  5. #5
    Join Date
    May 2006
    Posts
    6
    Rep Power
    9

    Default

    OK, i have many several problems like this, this is how i do it, it seems like the script that starts tomcat (as zimbra user) have several problem taking ownership of port 80. What i usually do is installing Zimbra and configure it yo use some other port over the 1024. Please run zmsetup.pl and use something different.. like 8080 por http and 8443 for https and it will work beautifull. Then follow the guide on how to upgrade.

    Still want tomcat on port 80, use iptables to redirect traffic from 80 to 8080.

    best regards

    Vic

  6. #6
    Join Date
    Oct 2005
    Posts
    56
    Rep Power
    10

    Default

    Hi,

    I followed the guide but the problem is the same.

    Code:
    INFO: XML validation disabled
    May 26, 2006 9:24:01 AM org.apache.catalina.startup.HostConfig deployDescriptor
    WARNING: A docBase /opt/zimbra/apache-tomcat-5.5.15/webapps/zimbra inside the ho
    st appBase has been specified, and will be ignored
    log4j:WARN No appenders could be found for logger (org.apache.catalina.session.M
    anagerBase).
    log4j:WARN Please initialize the log4j system properly.
    Zimbra server reserving server socket port=110 bindaddr=null ssl=false
    Zimbra server reserving server socket port=143 bindaddr=null ssl=false
    Zimbra server reserving server socket port=993 bindaddr=null ssl=true
    Zimbra server process is running as root, changing to user=zimbra uid=501 gid=50
    1
    Zimbra server process, after change, is running with uid=501 euid=501 gid=501 eg
    id=501
    log4j:ERROR setFile(null,true) call failed.
    java.io.FileNotFoundException: /opt/zimbra/log/zimbra.log (Permission denied)
            at java.io.FileOutputStream.openAppend(Native Method)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
            at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
    Quote Originally Posted by wannabetenor
    I put together a wiki article on the wiki on how to backup and restore zimbra.

    I would strongly reccommend you follow it's procedures.

    http://wiki.zimbra.com/index.php?tit...ckup_Procedure

    Follow that, it'll work.

  7. #7
    Join Date
    Oct 2005
    Posts
    56
    Rep Power
    10

    Default

    Hi,

    Thank you for your idea. But it seems there are too many customized operations for each upgrade if doing so.

    Thomas

    Quote Originally Posted by VictorMedina
    OK, i have many several problems like this, this is how i do it, it seems like the script that starts tomcat (as zimbra user) have several problem taking ownership of port 80. What i usually do is installing Zimbra and configure it yo use some other port over the 1024. Please run zmsetup.pl and use something different.. like 8080 por http and 8443 for https and it will work beautifull. Then follow the guide on how to upgrade.

    Still want tomcat on port 80, use iptables to redirect traffic from 80 to 8080.

    best regards

    Vic

  8. #8
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    HI,
    Sorry to here that.

    This is soo odd. I have the same exact build, so I don't think it's a build problem.

    The backup your restored from, is it the backup that had the problem, or prior?

  9. #9
    Join Date
    Oct 2005
    Posts
    56
    Rep Power
    10

    Default

    In the older version, I did not encountered any problem for restoring the zimbra.

    This time I am using zcs-3.1.0_GA_332.FC4. I plan to migrate it to the newbox, if successfullly, and do an upgrate to zcs-3.1.1_GA_394.FC4.

    Seems the problem is rarely happened. May I describe the backup and restore procedures that I normally performed.

    I stopped the zimbra serivce and killed all the zimbra process and slapd there was any.

    Tar the whole zimbra directory and put it to the newbox.

    Install zcs-3.1.0_GA_332.FC4 on the newbox. Stop all zimbra services.

    Rename zimbra directory. Extract the tarball to zimbra. Start the zimbra services and tomcat failed.

    What's wrong with my operations?

    Rgds,
    Thomas


    Quote Originally Posted by wannabetenor
    HI,
    Sorry to here that.

    This is soo odd. I have the same exact build, so I don't think it's a build problem.

    The backup your restored from, is it the backup that had the problem, or prior?

  10. #10
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Okay, try this:

    Keep your backup in a safe place.
    Make sure nothing is running.
    Uninstall zimbra from your new box (./install.sh -u)
    Delete the /opt/zimbra dir
    reboot
    untar the zimbra file to /opt/zimbra
    Install the EXACT version you used to have (the one in the tar)
    Then upgrade.

    Good luck, and I'll be here.

    Quote Originally Posted by chanck
    In the older version, I did not encountered any problem for restoring the zimbra.

    This time I am using zcs-3.1.0_GA_332.FC4. I plan to migrate it to the newbox, if successfullly, and do an upgrate to zcs-3.1.1_GA_394.FC4.

    Seems the problem is rarely happened. May I describe the backup and restore procedures that I normally performed.

    I stopped the zimbra serivce and killed all the zimbra process and slapd there was any.

    Tar the whole zimbra directory and put it to the newbox.

    Install zcs-3.1.0_GA_332.FC4 on the newbox. Stop all zimbra services.

    Rename zimbra directory. Extract the tarball to zimbra. Start the zimbra services and tomcat failed.

    What's wrong with my operations?

    Rgds,
    Thomas

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 06:01 AM
  2. After reboot mailbox and tomcat don't start
    By gon in forum Administrators
    Replies: 1
    Last Post: 11-02-2007, 11:50 AM
  3. Was Rock Solid, Now Tomcat will not start.
    By venaro in forum Administrators
    Replies: 18
    Last Post: 11-25-2006, 05:14 PM
  4. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 10:11 PM
  5. Replies: 2
    Last Post: 03-10-2006, 02:52 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
  •