Mantis - Resin
Viewing Issue Advanced Details
6385 minor always 04-06-21 08:46 04-29-21 14:37
nam  
ferg  
normal  
closed 4.0.64  
no change required  
none    
none  
0006385: watchdog sometimes getting UNKNOWN status code=13 from normal resin child shutdowns
(rep by Mitsuo)

A normal shutdown would sometimes be detected by the watchdog as an UNKNOWN shutdown, instead of OK.


[2021/03/18 21:16:04.434] {main} Resin Professional 4.0.64 (built Tue, 11 Feb 2020 02:04:04 PST)
[2021/03/18 21:16:04.434] {main}
[2021/03/18 21:16:04.434] {main} Linux 2.6.32-573.el6.x86_64 amd64
[2021/03/18 21:16:04.434] {main} Java(TM) SE Runtime Environment 1.8.0_102-b14, UTF-8, ja
[2021/03/18 21:16:04.434] {main} Java HotSpot(TM) 64-Bit Server VM 25.102-b14, 64, mixed mode, Oracle Corporation


watchdog-manager.log
====================
2021/03/18 21:16:04.558] {watchdog-app-2} WatchdogChild[app-2] starting
[2021/03/18 21:16:04.565] {watchdog-app-2} Watchdog starting Resin[app-2]
[2021/03/19 21:05:10.824] {resin-27} Watchdog received warning from Resin[app-2,pid=8648]:
                                       Shutdown: Resin shutdown from watchdog stop 'watchdog@admin.resin.caucho'
[2021/03/19 21:05:12.725] {watchdog-app-2} Watchdog detected close of Resin[app-2,pid=8648]
                                             exit reason: UNKNOWN (exit code=13)
[2021/03/19 21:05:12.725] {watchdog-app-2} WatchdogChild[app-2] stopped
[2021/03/19 21:05:12.725] {watchdog@admin.resin.caucho-31} WatchdogActor[]: stopped server='app-2'



jvm-app-2.log
=============
[21-03-19 21:05:02.157] {resin-port-BUAP03:6800-13985} ClusterServer[id=dyn-app-0-10.1.73.45:6830,10.1.73.45:6830] notify-heartbeat-stop
[21-03-19 21:05:10.822] {resin-main-link} ProResin[id=app-2] stop request from watchdog 'watchdog@admin.resin.caucho'
WarningService: Shutdown: Resin shutdown from watchdog stop 'watchdog@admin.resin.caucho'
[21-03-19 21:05:10.823] {resin-main-link} WarningService: Shutdown: Resin shutdown from watchdog stop 'watchdog@admin.resin.caucho'
[21-03-19 21:05:10.841] {resin-shutdown} ProServer[id=app-2,cluster=app] stopping
[21-03-19 21:05:10.846] {resin-shutdown} Host[production/host/default] stopping
[INFO] c.c.s.w.WebApp - [] WebApp[production/webapp/default/imself] stopping
[21-03-19 21:05:10.846] {resin-shutdown} WebApp[production/webapp/default/imself] stopping
[21-03-19 21:05:11.961] {resin-shutdown} WebApp[production/webapp/default/ROOT] stopping
[21-03-19 21:05:11.962] {resin-shutdown} WebApp[production/webapp/default/resin-admin] stopping
[21-03-19 21:05:12.200] {resin-shutdown} ClusterServer[id=app-2,BUAP03:6800] notify-heartbeat-stop

Notes
(0006959)
ferg   
04-29-21 14:37   
That exit code isn't exact. It's possible there's a timeout or exception that's not caught in the logs before the exit.