Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

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 (3) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 05-24-2006, 09:42 PM
Senior Member
 
Posts: 56
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
Reply With Quote
  #2 (permalink)  
Old 05-24-2006, 10:06 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
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
Reply With Quote
  #3 (permalink)  
Old 05-24-2006, 10:13 PM
Senior Member
 
Posts: 56
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
Reply With Quote
  #4 (permalink)  
Old 05-24-2006, 10:17 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
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...up_Procedu re

Follow that, it'll work.
Reply With Quote
  #5 (permalink)  
Old 05-25-2006, 02:03 PM
Junior Member
 
Posts: 6
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
Reply With Quote
  #6 (permalink)  
Old 05-25-2006, 07:37 PM
Senior Member
 
Posts: 56
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...up_Procedu re

Follow that, it'll work.
Reply With Quote
  #7 (permalink)  
Old 05-25-2006, 07:46 PM
Senior Member
 
Posts: 56
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
Reply With Quote
  #8 (permalink)  
Old 05-25-2006, 08:29 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
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?
Reply With Quote
  #9 (permalink)  
Old 05-25-2006, 09:13 PM
Senior Member
 
Posts: 56
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?
Reply With Quote
  #10 (permalink)  
Old 05-25-2006, 09:34 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
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
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