tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Cyclos application install(s)
Date Fri, 02 Apr 2010 22:27:17 GMT
On 02/04/2010 20:03, Rick Bragg wrote:
> On Fri, 2010-04-02 at 14:52 +0100, Pid wrote:
>> On 02/04/2010 14:04, Rick Bragg wrote:
>>> On Thu, 2010-04-01 at 22:46 +0100, Pid wrote:
>>>> On 01/04/2010 20:17, Rick Bragg wrote:
>>>>> On Thu, 2010-04-01 at 18:55 +0100, Pid wrote:
>>>>>> On 01/04/2010 18:04, Rick Bragg wrote:
>>>>>>> On Wed, 2010-03-31 at 23:37 +0400, Konstantin Kolinko wrote:
>>>>>>>> 2010/3/31 Rick Bragg<lists@gmnet.net>:
>>>>>>>>> What am I missing?
>>>>>>>>
>>>>>>>> Cyclos support forum is here:
>>>>>>>> http://project.cyclos.org/forum/
>>>>>>>>
>>>>>>>>>      From Tomcat point of view, there is nothing wrong
in what you did.
>>>>>>>>
>>>>>>>> Just speculating here (as I am not a Cyclos user),
>>>>>>>> you might have a) updated not all configuration files, b)
screwed when
>>>>>>>> "copying" a database.   I can suggest to start with installing
a new
>>>>>>>> copy of cyclos next to the existing one. (Do they support
installation
>>>>>>>> with a non-default name?)
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>> Konstantin Kolinko
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>> I do have a posting in that forum as well, but they seem to think
it is
>>>>>>> more of a tomcat problem.  I tried to install a new copy along
side my
>>>>>>> existing one, and I get the same problem.  The new copy DOES
make the
>>>>>>> new database fine when I restart tomcat, but tomcat dies after
that.
>>>>>>
>>>>>> Can you define "dies" in slightly more technical terms?
>>>>>>
>>>>>> What is in the logs?
>>>>>>
>>>>>>
>>>>>> p
>>>>>
>>>>> Hi,
>>>>>
>>>>> Sorry, it seems there are no errors in the logs, but after I copy (cp
>>>>> -Rp ...) then restart it on the command line (/etc/init.d/tomcat6
>>>>> restart) I see "stopping... OK" then starting ... OK".  I go to visit
>>>>> any site on the system http://xxx.xx:8080/manager for example, and there
>>>>> is no service running on 8080.  It just hangs waiting to connect.  If
I
>>>>> now restart again, it only says "starting ... OK" not "stopping - then
>>>>> starting".  It seems that as long as I have a second copy of cyclos in
>>>>> webapps dir, the service running on 8080 is no longer running after any
>>>>> restarts until I remove that directory and restart.  All permissions
are
>>>>> identical. and the database does get populated correctly.  Very
>>>>> Puzzling.
>>>>
>>>> You are copying a live application to a location where it will create
>>>> another live application?
>>>>
>>>> Or are you stopping first, then copying, then starting again?
>>>>
>>>> What happens if you start up using the scripts in tomcat/bin?
>>>>
>>>> What is in actually in catalina.out?  (Please include real log data.)
>>>>
>>>> Is Tomcat actually running when you have two applications deployed?
>>>>
>>>> What is the output of "ps -aef | grep tomcat" when run after starting
>>>> tomcat with both apps?
>>>>
>>>>
>>>> p
>>>>
>>>
>>>
>>> Hi,
>>>
>>> Thanks so much for all the help!
>>>
>>> Here is some more info.  Tomcat is no longer running after starting with
>>> both apps. (ps aux shows no tomcat...)
>>
>> Or java?
>>
>>> It seems that the logs just stop whey they get to "Initializing Spring
>>> root WebApplicationContext" for the second app.
>>
>> So it actually kills the whole server?  That sound like a pretty epic fail.
>>
>>
>>> Here are the logs after starting with both apps:
>>>
>>> localhost log:
>>> Apr 2, 2010 8:36:52 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer size=2048
>>> Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer size=2048
>>> Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer size=2048
>>> Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: ContextListener: contextInitialized()
>>> Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: SessionListener: contextInitialized()
>>> Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer size=2048
>>> Apr 2, 2010 8:36:53 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer size=2048
>>> Apr 2, 2010 8:36:54 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: Initializing Spring root WebApplicationContext
>>> Apr 2, 2010 8:37:17 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: Farm Stand initialized
>>> Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer size=2048
>>> Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: No Configuration for this context.  Initializing.
>>> Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: configuring cewolf app..
>>> Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: using storage class de.laures.cewolf.storage.ClusterableSessionStorage
>>> Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: using overlibURL /pages/scripts/overlib.js
>>> Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: debugging is turned off
>>> Apr 2, 2010 8:37:18 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: ...done.
>>> Apr 2, 2010 8:37:19 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer size=2048
>>> Apr 2, 2010 8:37:20 AM org.apache.catalina.core.ApplicationContext log
>>> INFO: Initializing Spring root WebApplicationContext
>>>
>>>
>>> catalina log:
>>> Apr 2, 2010 8:36:52 AM org.apache.catalina.core.AprLifecycleListener init
>>> INFO: The APR based Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/lib:/usr/lib
>>> Apr 2, 2010 8:36:52 AM org.apache.coyote.http11.Http11Protocol init
>>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>>> Apr 2, 2010 8:36:52 AM org.apache.catalina.startup.Catalina load
>>> INFO: Initialization processed in 483 ms
>>> Apr 2, 2010 8:36:52 AM org.apache.catalina.users.MemoryUserDatabase save
>>> WARNING: User database is not persistable - no write permissions on directory
>>
>> The user running Tomcat isn't the same user that installed it.
>> Making the user that runs the server own the files is a fairly easy fix
>> and would remove one thing from the list of potential problems.
>>
>> Does cyclos require any configuration outside of it's webapp dir, ie
>> jars in tomcat/lib or config files?
>>
>> Can you post your server.xml with passwords and comments removed?
>>
>>
>> p
>>
>>
>>
>>> Apr 2, 2010 8:36:52 AM org.apache.catalina.core.StandardService start
>>> INFO: Starting service Catalina
>>> Apr 2, 2010 8:36:52 AM org.apache.catalina.core.StandardEngine start
>>> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
>>> Apr 2, 2010 8:36:53 AM org.apache.catalina.startup.HostConfig deployWAR
>>> INFO: Deploying web application archive sample.war
>>>
>>>
>>> The logs just stop there, and then there are no tomcat processes after
>>> that.  I still get the same warning about the user database when I start
>>> with just one app and that works fine so I don't think it is that...
>>>
>>> Any ideas?  Thanks again!
>>> Rick
>>>
>>>
>>>
>>>
>>>
>>
>
>
> Hi,
>
> Here is the ps aux after running just one app (runs fine):
>
> # ps aux |grep tomcat
> root      6777  0.0  0.0   5164   840 pts/2    S+   14:32   0:00 grep tomcat
> root      6835  0.0  0.0  16516   368 ?        Ss   08:42   0:00 /usr/bin/jsvc -user
tomcat6 -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat6/bin/bootstrap.jar -outfile
SYSLOG -errfile SYSLOG -pidfile /var/run/tomcat6.pid -Djava.awt.headless=true -Xmx512M -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed
-Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/var/lib/tomcat6/temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties
org.apache.catalina.startup.Bootstrap
> root      6836  0.0  0.0  16516   496 ?        S    08:42   0:00 /usr/bin/jsvc -user
tomcat6 -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat6/bin/bootstrap.jar -outfile
SYSLOG -errfile SYSLOG -pidfile /var/run/tomcat6.pid -Djava.awt.headless=true -Xmx512M -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed
-Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/var/lib/tomcat6/temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties
org.apache.catalina.startup.Bootstrap
> tomcat6   6838  0.3  5.2 909352 483432 ?       Sl   08:42   1:03 /usr/bin/jsvc -user
tomcat6 -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat6/bin/bootstrap.jar -outfile
SYSLOG -errfile SYSLOG -pidfile /var/run/tomcat6.pid -Djava.awt.headless=true -Xmx512M -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed
-Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/var/lib/tomcat6/temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties
org.apache.catalina.startup.Bootstrap
>
> I get nothing of that ps aux command after running more than one app.
> # ps aux |grep tomcat
> root      7258  0.0  0.0   5164   840 pts/2    S+   14:32   0:00 grep tomcat
>
>
> Here is my cleaned server.conf
>
> <?xml version='1.0' encoding='utf-8'?>
> <Server port="8005" shutdown="SHUTDOWN">
>    <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"
/>
>    <Listener className="org.apache.catalina.core.JasperListener" />
>    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
>    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
/>
>    <GlobalNamingResources>
>      <Resource name="UserDatabase" auth="Container"
>                type="org.apache.catalina.UserDatabase"
>                description="User database that can be updated and saved"
>                factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>                pathname="conf/tomcat-users.xml" />
>    </GlobalNamingResources>
>    <Service name="Catalina">
>      <Connector port="8080" protocol="HTTP/1.1"
>                 connectionTimeout="20000"
>                 redirectPort="8443" />
>      <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
>      <Engine name="Catalina" defaultHost="localhost">
>        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>               resourceName="UserDatabase"/>
>        <Host name="localhost"  appBase="webapps"
>              unpackWARs="true" autoDeploy="true"
>              xmlValidation="false" xmlNamespaceAware="false">
>        </Host>
>      </Engine>
>    </Service>
> </Server>
>
> another tidbit:
>
> ls -l conf/
> total 88
> drwxrwxr-x 4 root tomcat6  4096 2010-03-31 12:18 Catalina
> -rw-r--r-- 1 root root     3665 2008-07-21 20:01 catalina.properties
> -rw-r--r-- 1 root root     1396 2008-07-21 20:01 context.xml
> -rw-r--r-- 1 root root     2370 2009-09-14 14:55 logging.properties
> drwxr-xr-x 2 root root     4096 2010-01-18 02:46 policy.d
> -rw-r--r-- 1 root root     6460 2008-07-21 20:01 server.xml
> -rw-r----- 1 root tomcat6  1329 2010-03-31 12:16 tomcat-users.xml
> -rw-r--r-- 1 root root    50106 2010-03-31 13:13 web.xml
>
> Maybe all these files should be owned by tomcat6?

It would eliminate one possible problem if they and the rest of the 
installation were.  Your server.xml is largely empty, so nothing obvious 
wrong with that.

If the work dir is also owned by root and tomcat can't write to it, that 
might cause additional problems, but I'd expect more than a silent exit.

Change the ownership of the whole Tomcat installation to the user 
tomcat6, clear out the logs or start with a fresh installation.


p


> Any ideas?
> Thanks!
> Rick
>
>
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message