# Healthcheck\_nginx\_upstreams patch fails for Nginx 1.2.1

**URL:** <https://www.ruby-forum.com/t/healthcheck-nginx-upstreams-patch-fails-for-nginx-1-2-1/220345>\
**Category:** NGINX\
**Created:** [June 6, 2012, 3:06pm UTC](https://www.ruby-forum.com/t/healthcheck-nginx-upstreams-patch-fails-for-nginx-1-2-1/220345 "2012-06-06T15:06:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [June 6, 2012, 3:06pm UTC](https://www.ruby-forum.com/t/healthcheck-nginx-upstreams-patch-fails-for-nginx-1-2-1/220345/1 "2012-06-06T15:06:26Z")

</div>

Hello,

We tried to test the new Nginx 1.2.1 release but we’re using the  
healthcheck\_nginx\_upstreams module [1](https://github.com/cep21/healthcheck_nginx_upstreams). With Nginx 1.1.x and 1.2.0 we  
could succesfully apply the Healthcheck module patch but hunks fail for  
Nginx 1.2.1. Any hints on what we can do about it?

# patch --dry-run -p1 \< nginx.patch

patching file src/http/ngx\_http\_upstream.c  
Hunk #1 succeeded at 4403 (offset 110 lines).  
patching file src/http/ngx\_http\_upstream.h  
Hunk #1 succeeded at 110 (offset 1 line).  
patching file src/http/ngx\_http\_upstream\_round\_robin.c  
Hunk #1 succeeded at 5 (offset 1 line).  
Hunk #2 FAILED at 14.  
Hunk #3 succeeded at 35 (offset 1 line).  
Hunk #4 succeeded at 77 (offset 8 lines).  
Hunk #5 succeeded at 399 (offset 11 lines).  
Hunk #6 FAILED at 434.  
Hunk #7 FAILED at 495.  
Hunk #8 FAILED at 600.  
Hunk #9 FAILED at 625.  
Hunk #10 FAILED at 645.  
6 out of 10 hunks FAILED – saving rejects to file  
src/http/ngx\_http\_upstream\_round\_robin.c.rej  
patching file src/http/ngx\_http\_upstream\_round\_robin.h  
Hunk #1 succeeded at 29 (offset 3 lines)

Thanks,  
Markus

---

<div class="post-metadata">

**Author:** ![mflive](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e99b99/32.png) [@mflive](https://www.ruby-forum.com/u/mflive)\
**Post date:** [June 25, 2012, 10:55am UTC](https://www.ruby-forum.com/t/healthcheck-nginx-upstreams-patch-fails-for-nginx-1-2-1/220345/2 "2012-06-25T10:55:05Z")

</div>

Hello,

I have the same problem and have you find a solution for this…?

I hope developer will update the patch and continue to release going  
forward.

Thanks in advance.

Posted at Nginx Forum:

> **[Re: healthcheck\_nginx\_upstreams patch fails for Nginx 1.2.1](https://forum.nginx.org/read.php?2,227279,227844#msg-227844)**
>
> Hello, We tried to test the new Nginx 1.2.1 release but we're using the healthcheck\_nginx\_upstreams module \[1\]. With Nginx 1.1.x and 1.2.0 we could succesfully apply the Healthcheck module patch but hunks fail for Nginx 1.2.1. Any hints on what we...

---

<div class="post-metadata">

**Author:** ![mflive](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e99b99/32.png) [@mflive](https://www.ruby-forum.com/u/mflive)\
**Post date:** [June 25, 2012, 11:24am UTC](https://www.ruby-forum.com/t/healthcheck-nginx-upstreams-patch-fails-for-nginx-1-2-1/220345/3 "2012-06-25T11:24:53Z")

</div>

Hi,

May be you can use my upstream check module:

> **[GitHub - yaoweibin/nginx\_upstream\_check\_module: Health checks upstreams for...](https://github.com/yaoweibin/nginx_upstream_check_module)**
>
> Health checks upstreams for nginx. Contribute to yaoweibin/nginx\_upstream\_check\_module development by creating an account on GitHub.

This module is more powerful than the healthcheck\_nginx\_upstreams  
module. And it has been merge into Tengine (Taobao’s fork of Nginx) :  
[http://tengine.taobao.org/](http://tengine.taobao.org/)

You can use it with the patch  
([https://github.com/yaoweibin/nginx\_upstream\_check\_module/blob/master/check\_1.2.1%2B.patch](https://github.com/yaoweibin/nginx_upstream_check_module/blob/master/check_1.2.1%2B.patch))  
with nginx-1.2.1+.

Thanks.

2012/6/25 n1xman [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![mflive](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e99b99/32.png) [@mflive](https://www.ruby-forum.com/u/mflive)\
**Post date:** [June 25, 2012, 11:34am UTC](https://www.ruby-forum.com/t/healthcheck-nginx-upstreams-patch-fails-for-nginx-1-2-1/220345/4 "2012-06-25T11:34:50Z")

</div>

Hi 姚伟斌,

It has more features indeed and i see a patch for the upstream fair  
module. The other module does not work with fair but i assume with the  
patch yours does?

Thanks

-----Original message-----

---

<div class="post-metadata">

**Author:** ![mflive](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e99b99/32.png) [@mflive](https://www.ruby-forum.com/u/mflive)\
**Post date:** [June 26, 2012, 11:40am UTC](https://www.ruby-forum.com/t/healthcheck-nginx-upstreams-patch-fails-for-nginx-1-2-1/220345/5 "2012-06-26T11:40:13Z")

</div>

i’ve compiled nginx 1.2 --with-http\_flv\_module and add its directive on  
nginx.conf file, but looks like flv module is broken? can anyone give me  
link for patch ? thanks

Posted at Nginx Forum:

> **[Re: healthcheck\_nginx\_upstreams patch fails for Nginx 1.2.1](https://forum.nginx.org/read.php?2,227279,227922#msg-227922)**
>
> Hello, We tried to test the new Nginx 1.2.1 release but we're using the healthcheck\_nginx\_upstreams module \[1\]. With Nginx 1.1.x and 1.2.0 we could succesfully apply the Healthcheck module patch but hunks fail for Nginx 1.2.1. Any hints on what we...

---

<div class="post-metadata">

**Author:** ![mflive](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e99b99/32.png) [@mflive](https://www.ruby-forum.com/u/mflive)\
**Post date:** [June 26, 2012, 11:34am UTC](https://www.ruby-forum.com/t/healthcheck-nginx-upstreams-patch-fails-for-nginx-1-2-1/220345/6 "2012-06-26T11:34:57Z")

</div>

Hi 姚伟斌,

Yes, I have already compiled and it is work fine with the patch.

Thanks for the module and we can live with this.

Posted at Nginx Forum:

> **[Re: healthcheck\_nginx\_upstreams patch fails for Nginx 1.2.1](https://forum.nginx.org/read.php?2,227279,227920#msg-227920)**
>
> Hello, We tried to test the new Nginx 1.2.1 release but we're using the healthcheck\_nginx\_upstreams module \[1\]. With Nginx 1.1.x and 1.2.0 we could succesfully apply the Healthcheck module patch but hunks fail for Nginx 1.2.1. Any hints on what we...

---

<div class="post-metadata">

**Author:** ![mflive](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e99b99/32.png) [@mflive](https://www.ruby-forum.com/u/mflive)\
**Post date:** [June 26, 2012, 12:03pm UTC](https://www.ruby-forum.com/t/healthcheck-nginx-upstreams-patch-fails-for-nginx-1-2-1/220345/7 "2012-06-26T12:03:01Z")

</div>

Hello!

On Tue, Jun 26, 2012 at 05:39:40AM -0400, shahzaib1232 wrote:

> i’ve compiled nginx 1.2 --with-http\_flv\_module and add its directive on  
> nginx.conf file, but looks like flv module is broken? can anyone give me  
> link for patch ? thanks

Please stop polluting unrelated threads. Thank you.

Maxim D.
