logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Apache 503...LB failed...help !!

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
kingakoopa



Joined: 21 Feb 2013
Posts: 7
Location: US,TX

PostPosted: Thu 04 Apr '13 17:00    Post subject: Apache 503...LB failed...help !! Reply with quote

Hello Apache Kings and Queens,
Im stuck in an issue where i freshly built apache just wont simply forward my requests to my 2 JBoss servers clustered servers.
Im using Mod_JK 1.2.27
Apache 2.2.21
Linux RHEL 5.7
Boss 7

I keep getting 503 errors-Service Temporarily Unavailable on the browser
Even though I can hit the servlets and JSPs on there just fine if I hit the JBoss server individually.

I get these errors in the mod_jk.log file
[Thu Apr 04 01:54:34 2013] [6068:3860842240] [debug] ajp_send_request::jk_ajp_common.c (1520): (worker1) request body to send 0 - request body to resend 0
[Thu Apr 04 01:55:34 2013] [6068:3860842240] [debug] jk_shutdown_socket::jk_connect.c (680): About to shutdown socket 14
[Thu Apr 04 01:55:34 2013] [6068:3860842240] [debug] jk_shutdown_socket::jk_connect.c (731): Shutdown socket 14 and read 0 lingering bytes
[Thu Apr 04 01:55:34 2013] [6068:3860842240] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (1104): (worker1) can't receive the response message from tomcat, tomcat (10.1.1.222:8180) has forced a connection close for socket 14
[Thu Apr 04 01:55:34 2013] [6068:3860842240] [error] ajp_get_reply::jk_ajp_common.c (1920): (worker1) Tomcat is down or refused connection. No response has been sent to the client (yet)
[Thu Apr 04 01:55:34 2013] [6068:3860842240] [info] ajp_service::jk_ajp_common.c (2407): (worker1) sending request to tomcat failed (recoverable), (attempt=2)
[Thu Apr 04 01:55:34 2013] [6068:3860842240] [error] ajp_service::jk_ajp_common.c (2426): (worker1) connecting to tomcat failed.
[Thu Apr 04 01:55:34 2013] [6068:3860842240] [debug] ajp_reset_endpoint::jk_ajp_common.c (743): (worker1) resetting endpoint with sd = 4294967295 (socket shutdown)
[Thu Apr 04 01:55:34 2013] [6068:3860842240] [debug] ajp_done::jk_ajp_common.c (2850): recycling connection pool slot=0 for worker worker1
[Thu Apr 04 01:55:34 2013] [6068:3860842240] [info] service::jk_lb_worker.c (1347): service failed, worker worker1 is in error state

Admin note:

Rest of log Removed, see forum rules, use pastebin.



Here are my workers.properties
# Define a worker named 'worker1' (more workers can be added as comma separated values)
#worker.list=loadbalancer,status
worker.list=loadbalancer
# Node #1 properties
worker.worker1.type=ajp13
worker.worker1.host=server1.com
worker.worker1.port=8180
worker.worker1.lbfactor=1

# Node #2 properties(will be configured later when apache and node 1 start working)
worker.worker2.type=ajp13
worker.worker2.host=server2.com
worker.worker2.port=8180
worker.worker2.lbfactor=1

# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=worker1,worker2

# Status worker for managing load balancer
#worker.status.type=status
#worker.loadbalancer.sticky_session=true

mod_jk.conf
# Set path to workers.properties.
JkWorkersFile conf/jk/workers.properties

# Set path to jk shared memory. Generally, you'll want this to point to your local state or logs directory.
JkShmFile /apps/logs/mod_jk.shm

# Set path to jk logs. This path should point to the same logs directory as the HTTPD access_log.
JkLogFile /apps/logs/mod_jk.log

# Set the jk log level. Valid values for this setting are 'debug', 'error', or 'info'.
JkLogLevel debug

# Set timestamp log format. Use provided variables to customize.
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

JkMount /helloworld/* loadbalancer
JkMount /helloworld loadbalancer
JkMount /helloworld/HelloWorld/* loadbalancer
JkMount /helloworld/HelloWorld loadbalancer



httpd.conf


Admin note:
Removed, see forum rules, use pastebin or post snippets that relates to your issue..



Any help is very much appreciate.

King Koopa
Back to top
kingakoopa



Joined: 21 Feb 2013
Posts: 7
Location: US,TX

PostPosted: Thu 04 Apr '13 22:25    Post subject: Reply with quote

figured it out....the app server's ajp port was not configured....
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Fri 05 Apr '13 15:57    Post subject: Reply with quote

This is what i wanted to write, 8180 seems to be HTTP connector port, not AJP.
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1