Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 67489 invoked from network); 2 Apr 2010 21:33:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Apr 2010 21:33:31 -0000 Received: (qmail 34756 invoked by uid 500); 2 Apr 2010 21:33:28 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 34714 invoked by uid 500); 2 Apr 2010 21:33:28 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 34705 invoked by uid 99); 2 Apr 2010 21:33:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Apr 2010 21:33:28 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@gmnet.net designates 207.136.225.2 as permitted sender) Received: from [207.136.225.2] (HELO pipe.gmnet.net) (207.136.225.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Apr 2010 21:33:22 +0000 MailScanner-NULL-Check: 1270848681.36907@nEEAjkGfbuSp3ArK599UZQ Received: from [192.168.0.101] (host30.grnmtnet.cust.sover.net [207.136.225.30] (may be forged)) (authenticated bits=0) by pipe.gmnet.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id o32LVI6v026728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 2 Apr 2010 17:31:19 -0400 Subject: Re: Cyclos application install(s) From: Rick Bragg To: Tomcat Users List In-Reply-To: <4BB5F6AF.2050702@pidster.com> References: <1270061470.26953.2338.camel@thor> <1270141457.26953.2956.camel@thor> <4BB4DE0F.2090109@pidster.com> <1270149439.26953.3107.camel@thor> <4BB51435.2070007@pidster.com> <1270213456.26953.3595.camel@thor> <4BB5F6AF.2050702@pidster.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 02 Apr 2010 17:32:30 -0400 Message-ID: <1270243950.25330.405.camel@thor> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-MailScanner-ID: o32LVI6v026728 X-GreenMountainNetwork-MailScanner: Found to be clean X-GreenMountainNetwork-MailScanner-From: lists@gmnet.net X-Old-Spam-Status: No 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: > >>>>>>> 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 > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > 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 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? Any ideas? Thanks! Rick --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org