tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Catalina.out not updating
Date Tue, 06 Mar 2018 21:04:03 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Akhilesh,

On 3/6/18 7:31 AM, Akhilesh  ET wrote:
> We are facing a situation wherein one of our production servers
> running tomcat 6.0.18 is unable to generate logs after service
> startup. Logging just stops after service start up.

Maybe it's dying of old age. Since you aren't using a package-managed
version of Tomcat (and aren't at the mercy of the package-manager),
why not upgrade to a version of Tomcat that is riddled with fewer
security problems than 6.0.18? Maybe like 6.0.53, released during the
current decade.

Better yet, upgrade to Tomcat 8.5. If you aren't able to do this now,
you should really start looking at doing it in dev/test environments
so you can upgrade in the near-future.

> The setup is such a way that the control flows from a Apache
> Webserver to Jboss application server to Tomcat server. The tomcat
> server will connect to the external API URLs and logs should be
> generated for the same which is not working from past one week.

Just checking: this is tomcat inside JBoss, right? Or do you really
have a separate Tomcat that JBoss is talking to (JBoss being a
reverse-proxy, or something similar)?

> Just to give you an insight we are using source code based tomcat
> server and not rpm based. So the service startup is done using
> startup.sh script.
> 
> We tried swapping the IP of the server with the one that was
> working with no luck (The status was reversed with the server with
> same IP still not working). Which means there is something to do
> with the IP which is causing that issue (our assumption).

Weird. You just swapped the IP addresses of two servers and the
problem "moved" along with the IP to the other server?

> Please let me know what else needs to checked in order to make
> this working. The application itself is working fine. However the
> issue is with only the log generation which is very critical for
> tracking the application.

Are you getting no logs from the application, Tomcat, or both? Tomcat
isn't very chatty in catalina.out once it starts up. Really, you
should only be seeing critical errors, or notices about application
(re)deploying, etc.

Does your application log to System.out? If not, I wouldn't expect
application logs to go to catalina.out.

> Details of troubleshooting done so far :
> 
> 1.       Cleared the logs, restarted the service – No luck.
> 
> 2.       Cleared the cache of the server and restarted the service
> – No luck.
> 
> 3.       Rebooted the server multiple times – No Luck.
> 
> 4.       Tried starting tomcat from different web root and
> upgrading java  – No Luck.
> 
> 5.       Gave full permissions to tomcat folder and log files – No
> Luck

Thanks for providing that information. If you are talking about
application-logs, you're going to need to provide more information,
such as how the application performs logging in general. Are you using
an API/framework such as log4j or slf4j? Probably not, if you are
using an ancient version of Tomcat like that. Java-logging using
java.util.logging? Hmm... also probably not. Are you using
ServletContext.log() to perform logging? If so, those logs should be
going to an application-specific log in the logs/ directory.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlqfAkMdHGNocmlzQGNo
cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFiknw/+K+Su0g4BKhbS/ESk
xZtqVjDhdd3besh07OukFdquxUzPKottHTPk7Xex7DWwOreOYb3Qtho1UvCpeYOt
s2JxsEFGSIIZZlJrlJtoEwfmhsbw1dIocMfSygXtKOH4JrlQOypcoT2sS2Fj5Dql
ATIgjvGehZptSKV9R1kwStfVxSrXuiTu281UImwx0wigRM5sw1nZRQBHZ5mDy9VE
sVZFNjjpzdP9HpL0g5ZsXM37bDQfsRYlauhvQf1oyDHRu8cMpBOLwm7tpgHat68z
DmDHGMtoUalr+TI7zObvmncyuBE70JRj9/MDlo8v/8XqlLwj/12TGcE59KoO2SsC
VU8Gp4+FvtaBTlvLukZNgjtkhuJAPhzIG+QpPX7OxNLV2/h56Ej3nAMB5S2WYFJx
gESk7bbwSd38rvaIpu3uN9HKQZhq+HYYbZ3grygpjpsPk9t75ihp5EhpLkwtXNiw
I76Exu6TTlEWUx1CUso7sfGmgxsslPBPaNKmilQb+hgjoieiH1ulqBQ+HW5fpeZ2
8XTPvysyr/sw6+k8nIsUbE4QEyO+4tpNjMaZjrLMEOr5oOoC/SWzIs9g/NwGANWP
hKTa1WJQXk7IhafLDjTCzJcC6WVtGmb+nbtyLNCSOPbl6oVLScLYPHLfbEpU91zG
8rhxWavnYzmJYlqBybjnqgFszvU=
=w3Oa
-----END PGP SIGNATURE-----

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


Mime
View raw message