Re: Catalina.out not updating

2018-03-06 Thread Christopher Schultz
-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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Catalina.out not updating

2018-03-06 Thread Akhilesh ET
Hi Thomas,

Thanks for the reply.

Yes we have checked that it is fine. Also the same server with the same 
configuration and permissions is working fine if we change the IP address. 

Thanks & Regards
Akhilesh.E.T
ITC Infotech India Ltd.,
ITC Infotech Park, #18 Banaswadi Main Road, Bangalore - 560005
Mob : +91-9591116360

-Original Message-
From: Thomas Rohde [mailto:t...@ordix.de] 
Sent: Tuesday, March 06, 2018 6:15 PM
To: 'Tomcat Users List' <users@tomcat.apache.org>
Subject: AW: Catalina.out not updating

** This mail has been sent from an external source ** Hi Akhilesh,

 
have you checked your file system permissions? Has the Tomcat runtime user the 
permissions to write into the log directory?

 
Regards,

Thomas

 
BTW: Tomcat 6 ist end of life since 31 December 2016 
(https://tomcat.apache.org/tomcat-60-eol.html). Please consider upgrading to 
Tomcat 9.

 
Von: Akhilesh ET [mailto:akhilesh...@itcinfotech.com]
Gesendet: Dienstag, 6. März 2018 13:31
An: users@tomcat.apache.org
Betreff: Catalina.out not updating

 
Hi All,

 
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.

 

 
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 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). 

 
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.

 
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 & Regards

Akhilesh.E.T

ITC Infotech India Ltd.,

ITC Infotech Park, #18 Banaswadi Main Road, Bangalore - 560005

 
 
Disclaimer: This communication is for the exclusive use of the intended 
recipient(s) and shall not attach any liability on the originator or ITC 
Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. 
If you are the addressee, the contents of this e-mail are intended for your use 
only and it shall not be forwarded to any third party, without first obtaining 
written authorization from the originator or ITC Infotech India Ltd./ its 
Holding company/its Subsidiaries/ its Group Companies. It may contain 
information which is confidential and legally privileged and the same shall not 
be used or dealt with by any third party in any manner whatsoever without the 
specific consent of ITC Infotech India Ltd./ its Holding company/ its 
Subsidiaries/ its Group Companies.

 
Disclaimer: This  communication  is  for the exclusive use of the intended 
recipient(s) and  shall  not attach any liability on the originator or ITC 
Infotech India Ltd./its  Holding company/ its Subsidiaries/ its Group 
Companies. If you are the addressee, the contents of this e-mail are intended 
for your use only and it shall  not be forwarded to any third party, without 
first obtaining written authorization from the originator or ITC Infotech India 
Ltd./ its Holding company/its  Subsidiaries/ its Group Companies. It may 
contain information which is confidential and legally privileged and the same 
shall not be used or dealt with  by any  third  party  in  any manner 
whatsoever without the specific consent  of  ITC  Infotech India Ltd./ its 
Holding company/ its Subsidiaries/ its Group Companies.


AW: Catalina.out not updating

2018-03-06 Thread Thomas Rohde
Hi Akhilesh,

 
have you checked your file system permissions? Has the Tomcat runtime user the 
permissions to write into the log directory?

 
Regards,

Thomas

 
BTW: Tomcat 6 ist end of life since 31 December 2016 
(https://tomcat.apache.org/tomcat-60-eol.html). Please consider upgrading to 
Tomcat 9.

 
Von: Akhilesh ET [mailto:akhilesh...@itcinfotech.com] 
Gesendet: Dienstag, 6. März 2018 13:31
An: users@tomcat.apache.org
Betreff: Catalina.out not updating

 
Hi All,

 
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.

 

 
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 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). 

 
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.

 
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 & Regards

Akhilesh.E.T

ITC Infotech India Ltd.,

ITC Infotech Park, #18 Banaswadi Main Road, Bangalore - 560005

 
 
Disclaimer: This communication is for the exclusive use of the intended 
recipient(s) and shall not attach any liability on the originator or ITC 
Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. 
If you are the addressee, the contents of this e-mail are intended for your use 
only and it shall not be forwarded to any third party, without first obtaining 
written authorization from the originator or ITC Infotech India Ltd./ its 
Holding company/its Subsidiaries/ its Group Companies. It may contain 
information which is confidential and legally privileged and the same shall not 
be used or dealt with by any third party in any manner whatsoever without the 
specific consent of ITC Infotech India Ltd./ its Holding company/ its 
Subsidiaries/ its Group Companies.

 


Catalina.out not updating

2018-03-06 Thread Akhilesh ET
Hi All,

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.

[cid:image001.png@01D3B575.098BBBF0]

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 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).

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.

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 & Regards
Akhilesh.E.T
ITC Infotech India Ltd.,
ITC Infotech Park, #18 Banaswadi Main Road, Bangalore - 560005

Disclaimer: This  communication  is  for the exclusive use of the intended 
recipient(s) and  shall  not attach any liability on the originator or ITC 
Infotech India Ltd./its  Holding company/ its Subsidiaries/ its Group 
Companies. If you are the addressee, the contents of this e-mail are intended 
for your use only and it shall  not be forwarded to any third party, without 
first obtaining written authorization from the originator or ITC Infotech India 
Ltd./ its Holding company/its  Subsidiaries/ its Group Companies. It may 
contain information which is confidential and legally privileged and the same 
shall not be used or dealt with  by any  third  party  in  any manner 
whatsoever without the specific consent  of  ITC  Infotech India Ltd./ its 
Holding company/ its Subsidiaries/ its Group Companies.