Yes, tomcat4 script is on, but it is started when rebooting machine.
Last time I've run
/etc/rc.d/init.d/edg-tomcat4 stop
su tomcat4 -c 'killall -9 java'
rm -f /var/tomcat4/logs/catalina.out
/etc/rc.d/init.d/edg-tomcat4 start
at the beginning of March however
uptime shows
8:13pm up 27 days, 5:49, 33 users, load average: 0.01, 0.06, 0.08
So should I switch tomcat4 script off ?
Nevertheless I don't understand the cause.
On Mon, 21 Mar 2005, Laurence wrote:
> Date: Mon, 21 Mar 2005 17:38:13 +0100
> From: Laurence <[log in to unmask]>
> To: Anatoly Oreshkin <[log in to unmask]>
> Cc: [log in to unmask]
> Subject: Re: [LCG-ROLLOUT] Tomcat4 error messages
>
> Don't forget that there are two Tomcat startup scripts, tomcat4 and
> edg-tomcat4
> I notice in your list that tomcat4 is on but the cron job starts
> edg-tomcat4.
>
> They are fighting over the same port.
>
>
>
> Anatoly Oreshkin wrote:
>
> >
> > Hello,
> >
> > I've run commands you proposed and that fixed problem for a while.
> >
> > But later on I can't say exactly when the same problem would have
> > repeated. That is
> > java.net.SocketException: Address already in use
> > and so on.
> >
> > It looks like tomcat has been started once more without stopping or
> > tomcat stopping has failed ?
> >
> > My crontab is
> >
> > */2 * * * * /opt/edg/etc/cron/edg-rgma-service-status-monitor >>
> > /opt/edg/var/log/edg-rgma-tools.log 2>&1
> >
> > */2 * * * * /opt/edg/etc/cron/edg-rgma-servlet-monitor >>
> > /opt/edg/var/log/edg-rgma-tools.log 2>&1
> >
> >
> > chkconfig --list shows
> >
> > globus-gridftp 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> > rfiod 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> > globus-gatekeeper 0:off 1:off 2:off 3:on 4:on
> > 5:on 6:off
> > globus-mds 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> > edg-fmon-agent 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> > edg-wl-locallogger 0:off 1:off 2:off 3:on 4:on
> > 5:on 6:off
> > edg-netconf 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> > pbs_mom 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> > pbs_server 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> > edg-rgma-gin 0:off 1:off 2:off 3:off 4:off 5:off 6:off
> > lcg-bdii 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> > mysql 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> > tomcat4 0:off 1:off 2:off 3:on 4:on 5:on 6:off
> > edg-rgma-service-status 0:off 1:off 2:off 3:off 4:off
> > 5:off 6:off
> >
> > I've installed UI, CE, SE, MON, WN on one machine.
> >
> > What might be the cause ?
> >
> > Thank you.
> >
> > On Wed, 2 Mar 2005, Laurence wrote:
> >
> > > Date: Wed, 2 Mar 2005 12:30:56 +0100
> > > From: Laurence <[log in to unmask]>
> > > Reply-To: LHC Computer Grid - Rollout <[log in to unmask]>
> > > To: [log in to unmask]
> > > Subject: Re: [LCG-ROLLOUT] Tomcat4 error messages
> > >
> > > This error means that there is already a process that has binded to
> > port
> > > 8080.
> > > Running the following commands should fix the problem.
> > >
> > > /etc/rc.d/init.d/edg-tomcat4 stop
> > > su tomcat4 -c 'killall -9 java'
> > > rm -f /var/tomcat4/logs/catalina.out
> > > /etc/rc.d/init.d/edg-tomcat4 start
> > >
> > >
> > >
> > > Anatoly Oreshkin wrote:
> > >
> > > > Hello,
> > > >
> > > > I've installed on one RH 7.3 machine LCG-2_3_0 UI, CE-torque,
> > WN-torque,
> > > > MON, SECLASSIC using aimk scripts.
> > > > Examining Tomcat4 log catalina.out I've found out warning and error
> > > > lines:
> > > >
> > > > Starting service Tomcat-Insecure
> > > > Apache Tomcat/4.1
> > > > log4j:WARN No appenders could be found for logger
> > > > (org.edg.info.ArchiverServlet).
> > > > log4j:WARN Please initialize the log4j system properly.
> > > > java.net.SocketException: Address already in use
> > > > ...
> > > >
> > > > Full log is attached to mail.
> > > >
> > > >
> > > > What might be the cause ?
> > > > Any hints.
> > > >
> > > > Thank you.
> > > > Anatoly.
> > > >
> > > >
> > > >
> > >
> > >------------------------------------------------------------------------
> > > >
> > > >Starting service Tomcat-Insecure
> > > >Apache Tomcat/4.1
> > > >log4j:WARN No appenders could be found for logger
> > > >(org.edg.info.ArchiverServlet).
> > > >log4j:WARN Please initialize the log4j system properly.
> > > >java.net.SocketException: Address already in use
> > > > at sun.nio.ch.Net.bind(Native Method)
> > > > at
> > >
> > >sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:108)
> >
> > > > at
> > > >sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> > > > at
> > > >sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
> > > > at
> > > >org.edg.info.StreamingServer.setupSocket(StreamingServer.java:628)
> > > > at
> > org.edg.info.StreamingServer.<init>(StreamingServer.java:102)
> > > > at org.edg.info.ConsumerServlet.init(ConsumerServlet.java:101)
> > > > at javax.servlet.GenericServlet.init(GenericServlet.java)
> > > > at
> > >
> > >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934)
> >
> > > > at
> > >
> > >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
> > > > at
> > >
> > >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
> >
> > > > at
> > > >org.apache.catalina.core.StandardContext.start(StandardContext.java:
> > > >3608)
> > > > at
> > >
> > >org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
> >
> > > > at
> > >
> > >org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
> > > > at
> > > >org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
> > > > at
> > >
> > >org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)
> >
> > > > at
> > > >org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
> > > >at
> > >
> > >org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569)
> >
> > > > at
> > > >org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
> > > > at
> > > >org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
> > > > at
> > >
> > >org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
> >
> > > > at
> > >
> > >org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
> >
> > > > at
> > > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
> > > > at
> > > >org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > > at
> > > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > at
> > > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> > > > at
> > >
> > >org.apache.catalina.core.StandardService.start(StandardService.java:497)
> > > > at
> > >
> > >org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
> > > > at
> > org.apache.catalina.startup.Catalina.start(Catalina.java:512)
> > > > at
> > org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> > > > at
> > org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > at
> > >
> > >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> > > > at
> > >
> > >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> > > > at java.lang.reflect.Method.invoke(Method.java:324)
> > > > at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> > > >java.lang.NullPointerException
> > > > at
> > >
> > >org.edg.info.ContinuousConsumerInstance.prepareStartStreamingMessage(ContinuousConsumerInstance.java:158)
> >
> > > > at
> > >
> > >org.edg.info.ContinuousConsumerInstance$StartQueryThread.run(ContinuousConsumerInstance.java:417)
> >
> > > >java.lang.NullPointerException
> > > > at
> > >
> > >org.edg.info.ContinuousConsumerInstance.prepareStartStreamingMessage(ContinuousConsumerInstance.java:158)
> >
> > > > at
> > >
> > >org.edg.info.ContinuousConsumerInstance$StartQueryThread.run(ContinuousConsumerInstance.java:417)
> >
> > > >
> > > >
> > > >
> > >
> >
>
|