You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by hades hades <cr...@gmail.com> on 2011/11/17 15:02:38 UTC

Apache will not start - "jk_lb_push::jk_lb_worker.c (347): syncing shm for lb '******' from mem (0->1)" after stopping apache.

I hope this is the correct forum to post questions like this. I am at a
wall and can't figure this out.
Hit an issue today with a PRD system while I was syncing up the platforms.
I was simply adding Apache rules in the httpd-vhost and httpd.conf files as
I have done many times and completed the same for DEV, STG. After stopping
apache and restarting it, it would not load.

Please note that it worked fine previously.

JBOSS instances through http load properly.
http://localhost:8009/app
http://localhost:8010/app

APACHE
Will not start,
Mod_jk.xxxx.log shows the following line
jk_lb_push::jk_lb_worker.c (347): syncing shm for lb 'loadbalancer' from
mem (0->1)
I cannot seem to get Apache and mod_jk to play nicely. I have since
restored the entire apache installation folder from before the failure.

The environment
       mod_jk-1.2.30.so (Also tried 1.2.32 compiled to no success)
       apache - 2.2.19
       jboss - eap-5.1
       RHEL - 4.8 Update 8


Here is the mod_jk.conf

       #mod_jk.conf
       # Where to find workers.properties
       JkWorkersFile conf/workers.properties

       #JkMountCopy all
       JkMountCopy On

       # Where to put jk logs
       JkLogFile /logs/apache/mod_jk.log

       # Set the jk log level [debug/warn/error/info]
       JkLogLevel debug

       # Select the log format
       JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"

       # JkOptions indicates to send SSK KEY SIZE
       JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
+ForwardURIProxy

       # JkRequestLogFormat
       JkRequestLogFormat "%w %V %T"

       # Add shared memory.
       # This directive is present with 1.2.10 and
       # later versions fo mod_jk, and is needed for
       # load balancing to work properly
       JkShmFile /logs/apache/jk.shm

       # Add jkstatus for managing runtime data
       <Location /jkstatus/>
          JkMount status
          Order deny,allow
          #Deny from all
          Allow from all
       </Location>

Here is the worker.properties

#workers.properties
worker.list=1a,1b,loadbalancer,status
#Default settings for all workers
worker.template.type=ajp13
worker.template.ping_mode=A
worker.template.socket_connect_timeout=10000
worker.template.connection_pool_timeout=600

#Example of load-balanced workers "1a", "1b"
#pointing to two JBoss instances
worker.1a.reference=worker.template
worker.1a.host=localhost
worker.1a.port=5001

worker.1b.reference=worker.template
worker.1b.host=localhost
worker.1b.port=5002

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=1a,1b
worker.loadbalancer.sticky_session=True

#mod_jk status
worker.status.type=status
LOG
....
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_create_endpoint_cache::jk_ajp_common.c (2662): setting connection pool
size to 1 with min 1 and acquire timeout 200
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
build_worker_map::jk_worker.c (242): creating worker loadbalancer
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
wc_create_worker::jk_worker.c (146): about to create instance loadbalancer
of lb
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
wc_create_worker::jk_worker.c (159): about to validate and init loadbalancer
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
wc_create_worker::jk_worker.c (146): about to create instance 1a of ajp13
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
wc_create_worker::jk_worker.c (159): about to validate and init 1a
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_validate::jk_ajp_common.c (2605): worker 1a contact is 'localhost:5001'
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2800): setting endpoint options:
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2803): keepalive:              0
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2807): socket timeout:         0
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2811): socket connect timeout: 10000
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2815): buffer size:            0
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2819): pool timeout:           600
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2823): ping timeout:           10000
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2827): connect timeout:        10000
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2831): reply timeout:          0
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2835): prepost timeout:        10000
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2839): recovery options:       0
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2843): retries:                2
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2847): max packet size:        8192
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2851): retry interval:         100
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_create_endpoint_cache::jk_ajp_common.c (2662): setting connection pool
size to 1 with min 1 and acquire timeout 200
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
wc_create_worker::jk_worker.c (146): about to create instance 1b of ajp13
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
wc_create_worker::jk_worker.c (159): about to validate and init 1b
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_validate::jk_ajp_common.c (2605): worker 1b contact is 'localhost:5002'
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2800): setting endpoint options:
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2803): keepalive:              0
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2807): socket timeout:         0
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2811): socket connect timeout: 10000
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2815): buffer size:            0
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2819): pool timeout:           600
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2823): ping timeout:           10000
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2827): connect timeout:        10000
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2831): reply timeout:          0
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2835): prepost timeout:        10000
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2839): recovery options:       0
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2843): retries:                2
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2847): max packet size:        8192
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_init::jk_ajp_common.c (2851): retry interval:         100
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
ajp_create_endpoint_cache::jk_ajp_common.c (2662): setting connection pool
size to 1 with min 1 and acquire timeout 200
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
validate::jk_lb_worker.c (1620): Balanced worker 0 has name 1a and route 1a
in domain
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
validate::jk_lb_worker.c (1620): Balanced worker 1 has name 1b and route 1b
in domain
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
update_mult::jk_lb_worker.c (261): worker 1a gets multiplicity 1
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
update_mult::jk_lb_worker.c (261): worker 1b gets multiplicity 1
[Wed Nov 16 23:29:15 2011][7383:182897644768] [debug]
jk_lb_push::jk_lb_worker.c (347): syncing shm for lb 'loadbalancer' from
mem (0->1)


Apache never fully starts and it hangs at jk_lb_worker everytime.

Any ideas,
Hades666

Re: Apache will not start - "jk_lb_push::jk_lb_worker.c (347): syncing shm for lb '******' from mem (0->1)" after stopping apache.

Posted by Mladen Truk <mt...@apache.org>.
On 11/17/2011 03:02 PM, hades hades wrote:
> I hope this is the correct forum to post questions like this. I am at a
> wall and can't figure this out.

Correct forum is tomcat-users list
I mean you downloaded mod_jk from Tomcat so why Jakarta?

Anyhow, here is the link:
http://tomcat.apache.org/connectors-doc/
You can subscribe here:
http://tomcat.apache.org/lists.html#tomcat-users

Regards
-- 
^TM

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org