Automatic redeploy failed
marcodanti Oct 9, 2013 10:16 AMI just ran into the following problem in a two nodes cluster:
- on node stw-2, open a deployed .war under standalone/deployments to change a parameter into a web.xml file
- save changed file
- on the server.log file, see this
15:37:00,982 INFO [org.jboss.web] (ServerService Thread Pool -- 98) JBAS018224: Unregister web context: /STW
15:37:00,985 INFO [org.jboss.modcluster] (ServerService Thread Pool -- 98) MODCLUSTER000021: All pending requests drained from default-host:/STW in 0.0 seconds
This is not normal, because the AS server did not go on and redeploy the updated .war. The same operations repeated on the other node (stw-1) trigger the following log:
15:40:43,793 INFO [org.jboss.web] (ServerService Thread Pool -- 101) JBAS018224: Unregister web context: /STW
15:40:43,796 INFO [org.jboss.modcluster] (ServerService Thread Pool -- 101) MODCLUSTER000021: All pending requests drained from default-host:/STW in 0.0 seconds
15:40:44,005 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment STW.war (runtime-name: STW.war) in 215ms
15:40:44,006 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "STW.war" (runtime-name: "STW.war")
15:40:47,647 INFO [org.jboss.web] (ServerService Thread Pool -- 108) JBAS018210: Register web context: /STW
15:40:49,362 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565: Replaced deployment "STW.war" with deployment "STW.war"
which is what was expected. The first node however remained like that. In the mod_cluster-manager page, I see
mod_cluster/1.2.6.Final
start of "httpd.conf" configuration
mod_proxy_cluster.c: OK
mod_sharedmem.c: OK
Protocol supported: http AJP https
mod_advertise.c: OK
Server: stw-1.priv.softeco.it
Server: stweb-cesi1.risorse.enel VirtualHost: *:80
Server: stweb-cesi1.risorse.enel VirtualHost: *:443
Server: stw-1.priv.softeco.it VirtualHost: *:6666 Advertising on Group 224.0.1.105 Port 23364 for http://stw-1.priv.softeco.it:6666 every 10 seconds
end of "httpd.conf" configuration
Auto Refresh show DUMP output show INFO output
Node stw-2 (ajp://172.16.0.134:7009):
Enable Contexts Disable Contexts
Balancer: mycluster,LBGroup: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax: 26,Ttl: 60000000,Status: OK,Elected: 3820,Read: 105090729,Transferred: 350369,Connected: 0,Load: 96
Virtual Host 1:
Contexts:
/enel-stweb-war, Status: ENABLED Request: 0 Disable
/STCruscotto, Status: ENABLED Request: 0 Disable
/STWebWS, Status: ENABLED Request: 0 Disable
/clusterbench, Status: ENABLED Request: 0 Disable
/STWebAdmin, Status: ENABLED Request: 0 Disable
/PDL, Status: ENABLED Request: 0 Disable
/STMan, Status: ENABLED Request: 0 Disable
/clusterbench-granular, Status: ENABLED Request: 0 Disable
/SchematicaWeb, Status: ENABLED Request: 0 Disable
/STW, Status: STOPPED Request: 0
/PRE_2008, Status: ENABLED Request: 0 Disable
/Clientx, Status: ENABLED Request: 0 Disable
/PRE, Status: ENABLED Request: 0 Disable
/tses, Status: ENABLED Request: 0 Disable
/STWebRegistry-WS, Status: ENABLED Request: 0 Disable
/MAGO, Status: ENABLED Request: 0 Disable
/Aui, Status: ENABLED Request: 0 Disable
/stgeo-war, Status: ENABLED Request: 0 Disable
Aliases:
localhost
stw-2
default-host
Node stw-1 (ajp://172.16.0.133:7009):
Enable Contexts Disable Contexts
Balancer: mycluster,LBGroup: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax: 26,Ttl: 60000000,Status: OK,Elected: 7104,Read: 174704448,Transferred: 718980,Connected: 0,Load: 95
Virtual Host 1:
Contexts:
/stgeo-war, Status: ENABLED Request: 0 Disable
/STWebRegistry-WS, Status: ENABLED Request: 0 Disable
/MAGO, Status: ENABLED Request: 0 Disable
/STCruscotto, Status: ENABLED Request: 0 Disable
/PRE, Status: ENABLED Request: 0 Disable
/Clientx, Status: ENABLED Request: 0 Disable
/SchematicaWeb, Status: ENABLED Request: 0 Disable
/clusterbench, Status: ENABLED Request: 0 Disable
/tses, Status: ENABLED Request: 0 Disable
/PDL, Status: ENABLED Request: 0 Disable
/PRE_2008, Status: ENABLED Request: 0 Disable
/STW, Status: ENABLED Request: 0 Disable
/STWebWS, Status: ENABLED Request: 0 Disable
/clusterbench-granular, Status: ENABLED Request: 0 Disable
/STMan, Status: ENABLED Request: 0 Disable
/STWebAdmin, Status: ENABLED Request: 0 Disable
/Aui, Status: ENABLED Request: 0 Disable
/enel-stweb-war, Status: ENABLED Request: 0 Disable
Aliases:
localhost
stw-1
default-host
The setup I am using is: two AS-7.2.0.Final nodes in cluster, behind a httpd-2.4.6 reverse proxy with mod_cluster-1.2.6.Final (on both AS7 and httpd), all running on SLES-11.
I had to restart the node that failed to redeploy