mod_cluster 1.3.1, apache 2.4 and wildfly 8/9 error
ftost Aug 17, 2015 7:55 AMHello:
I'm writing to you because I'm really desesperated with mod_cluster and apache 2.4. I have had a working setup with apache 2.2, but there's something different in apache 2.4 ->mod_cluster and wildfly that I can't fix. I have followed the tutorials but nothing. I'm also using redhat 7.
I'm getting these errors at apache's log:
[Mon Aug 17 13:13:05.710893 2015] [proxy:error] [pid 11333:tid 140564964628224] (111)Connection refused: AH00957: ajp: attempt to connect to 192.168.216.3:27233 (192.168.216.3) failed
[Mon Aug 17 13:13:05.710931 2015] [proxy:error] [pid 11333:tid 140564964628224] AH00959: ap_proxy_connect_backend disabling worker for (192.168.216.3) for 60s
[Mon Aug 17 13:13:11.436188 2015] [proxy:error] [pid 11333:tid 140564884354816] (111)Connection refused: AH00957: ajp: attempt to connect to 192.168.216.3:27233 (192.168.216.3) failed
[Mon Aug 17 13:13:11.436230 2015] [proxy:error] [pid 11333:tid 140564884354816] AH00959: ap_proxy_connect_backend disabling worker for (192.168.216.3) for 60s
[Mon Aug 17 13:13:15.711481 2015] [proxy:error] [pid 11333:tid 140564964628224] AH00940: ajp: disabled connection for (192.168.216.3)
[Mon Aug 17 13:13:21.436769 2015] [proxy:error] [pid 11333:tid 140564884354816] AH00940: ajp: disabled connection for (192.168.216.3)
[Mon Aug 17 13:13:25.711999 2015] [proxy:error] [pid 11333:tid 140564964628224] AH00940: ajp: disabled connection for (192.168.216.3)
[Mon Aug 17 13:13:31.437417 2015] [proxy:error] [pid 11333:tid 140564884354816] AH00940: ajp: disabled connection for (192.168.216.3)
[Mon Aug 17 13:13:35.712539 2015] [proxy:error] [pid 11333:tid 140564964628224] AH00940: ajp: disabled connection for (192.168.216.3)
When I try to look at mod_cluster's page, I get a NOTOK, as you can see:
[jboss@localhost bin]$ curl http://192.168.216.3:6666/mod_cluster_manager
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html><head>
<title>Mod_cluster Status</title>
</head><body>
<h1>mod_cluster/1.3.1.Final</h1><a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&refresh=10">Auto Refresh</a> <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=DUMP&Range=ALL">show DUMP output</a> <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=INFO&Range=ALL">show INFO output</a>
<h1> Node REMOVED (ajp://192.168.216.3:18009): </h1>
<a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=ENABLE-APP&Range=NODE&JVMRoute=REMOVED">Enable Contexts</a> <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=DISABLE-APP&Range=NODE&JVMRoute=REMOVED">Disable Contexts</a> <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=STOP-APP&Range=NODE&JVMRoute=REMOVED">Stop Contexts</a><br/>
Balancer: mycluster,LBGroup: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax: 26,Ttl: 60000000,Status: NOTOK,Elected: 0,Read: 0,Transferred: 0,Connected: 0,Load: -1
</pre><h1> Node master:vnint01 (ajp://192.168.216.3:8009): </h1>
<a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=ENABLE-APP&Range=NODE&JVMRoute=master:vnint01">Enable Contexts</a> <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=DISABLE-APP&Range=NODE&JVMRoute=master:vnint01">Disable Contexts</a> <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=STOP-APP&Range=NODE&JVMRoute=master:vnint01">Stop Contexts</a><br/>
Balancer: vncluster,LBGroup: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax: 26,Ttl: 60000000,Status: NOTOK,Elected: 0,Read: 0,Transferred: 0,Connected: 0,Load: -1
<h2> Virtual Host 1:</h2><h3>Contexts:</h3><pre>/cluster-demo, Status: ENABLED Request: 0 <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=DISABLE-APP&Range=CONTEXT&JVMRoute=master:vnint01&Alias=localhost&Context=/cluster-demo">Disable</a> <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=STOP-APP&Range=CONTEXT&JVMRoute=master:vnint01&Alias=localhost&Context=/cluster-demo">Stop</a>
</pre><h3>Aliases:</h3><pre>localhost
default-host
</pre><h1> Node slave:vnint02 (ajp://192.168.216.3:18009): </h1>
<a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=ENABLE-APP&Range=NODE&JVMRoute=slave:vnint02">Enable Contexts</a> <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=DISABLE-APP&Range=NODE&JVMRoute=slave:vnint02">Disable Contexts</a> <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=STOP-APP&Range=NODE&JVMRoute=slave:vnint02">Stop Contexts</a><br/>
Balancer: vncluster,LBGroup: ,Flushpackets: Off,Flushwait: 10000,Ping: 10000000,Smax: 26,Ttl: 60000000,Status: NOTOK,Elected: 0,Read: 0,Transferred: 0,Connected: 0,Load: -1
<h2> Virtual Host 1:</h2><h3>Contexts:</h3><pre>/cluster-demo, Status: ENABLED Request: 0 <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=DISABLE-APP&Range=CONTEXT&JVMRoute=slave:vnint02&Alias=localhost&Context=/cluster-demo">Disable</a> <a href="/mod_cluster_manager?nonce=103175c6-14e8-45e2-afa8-f5ad32a6864a&Cmd=STOP-APP&Range=CONTEXT&JVMRoute=slave:vnint02&Alias=localhost&Context=/cluster-demo">Stop</a>
</pre><h3>Aliases:</h3><pre>localhost
default-host
</pre></body></html>
The firewall is stopped and both apache and wildfly are on the same machine:
[root@localhost logs]# service firewalld status
Redirecting to /bin/systemctl status firewalld.service
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: inactive (dead) since Fri 2015-08-14 13:41:50 CEST; 2 days ago
This is my mod_cluster config:
<IfModule manager_module>
Listen 192.168.216.3:6666
ManagerBalancerName vncluster
<VirtualHost 192.168.216.3:6666>
<Location />
Allow from all
Require all granted
#Require ip 192.168.216.3
</Location>
KeepAliveTimeout 300
MaxKeepAliveRequests 0
#ServerAdvertise on http://@IP@:6666
AdvertiseFrequency 5
#AdvertiseSecurityKey secret
#AdvertiseGroup @ADVIP@:23364
EnableMCPMReceive
<Location /mod_cluster_manager>
SetHandler mod_cluster-manager
Allow from all
Require all granted
#Require ip 192.168.216.3
</Location>
</VirtualHost>
</IfModule>
Edit: I have also attached my configuration files.
Please, can you help me? Thanks in advance.
-
domain.xml.zip 5.4 KB
-
host_master.xml.zip 1.1 KB
-
host_slave.xml.zip 1.2 KB