Bug 63466 - unable to use hctemplate
Summary: unable to use hctemplate
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy_hcheck (show other bugs)
Version: 2.4.29
Hardware: HP Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-27 12:11 UTC by Jörg Schünemann
Modified: 2019-07-20 07:21 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Schünemann 2019-05-27 12:11:35 UTC
Hi, I try to start a httpd with an 

ProxyHCTemplate esb hcmethod=GET hcpasses=1 hcfails=1 hcinterval=30 hcuri=/esb/healthcheck
 
in the httpd.conf and a blancer config in an VirtualHost section with

<Proxy balancer://services>
   BalancerMember ajp://server1:8009 hctemplate=esb
   BalancerMember ajp://server2:8009 hctemplate=esb
</Proxy>

The start of the vhost stops with a

28000 Segmentation fault      (core dumped) $HTTPD -k $cmd -D$server

Without using an template (configuring the balancer like this:)

<Proxy balancer://services>
   BalancerMember http://server1:8080 hcmethod=GET hcpasses=1 hcfails=1 hcinterval=30 hcuri=/esb/healthcheck
   BalancerMember http://server2:8080 hcmethod=GET hcpasses=1 hcfails=1 hcinterval=30 hcuri=/esb/healthcheck
</Proxy>

it works fine.
Comment 1 Christophe JAILLET 2019-05-27 17:13:15 UTC
Hi,

I can not reproduce with 2.4.39.
Can you test with a newer version than 2.4.29?


I don't know if it is a typo but the first BalancerMember are with ajp://, and the 2nd example is with http://
Comment 2 Jörg Schünemann 2019-06-05 08:47:52 UTC
(In reply to Christophe JAILLET from comment #1)
> Hi,
> 
> I can not reproduce with 2.4.39.
> Can you test with a newer version than 2.4.29?
> 
> 
> I don't know if it is a typo but the first BalancerMember are with ajp://,
> and the 2nd example is with http://

Hi Christophe.

It it just a typo I tried both versions (ajp and http). I will test the config with a newer version and report the result .

Kind regards
Jörg
Comment 3 Jörg Schünemann 2019-07-05 10:40:32 UTC
(In reply to Christophe JAILLET from comment #1)
> Hi,
> 
> I can not reproduce with 2.4.39.
> Can you test with a newer version than 2.4.29?
> 
> 
> I don't know if it is a typo but the first BalancerMember are with ajp://,
> and the 2nd example is with http://

Hi Christophe.

I retest it with 2.4.39 and the issue is still there...

In the httpd.conf with code:

ProxyHCTemplate esb hcmethod=GET hcpasses=1 hcfails=1 hcinterval=30 hcuri=/esb/healthcheck


and in the balancer.includer with code:

<Proxy "balancer://testcluster">
    BalancerMember "ajp://server1:8009" hctemplate=esb
    BalancerMember "ajp://server2:8009" hctemplate=esb
    ProxySet lbmethod=bybusyness
</Proxy>
Comment 4 Christophe JAILLET 2019-07-20 07:21:25 UTC
Could you provide a backtrace of the core dump?

I'm also wondering if this could be related to PR 60757 (and patch in comment 20)
Could you apply this patch and re-test?