nginx_upstream_check_module icon indicating copy to clipboard operation
nginx_upstream_check_module copied to clipboard

Upstream_check_module's check_status not working

Open firstsd opened this issue 10 years ago • 10 comments

I have installed Nginx with 2 modules. There are nginx_upstream_check_module and nginx_limit_access_module. Then I check location /status { check_status; }. But Nginx 500 Internal Server Error happened. How Can I run this process?

firstsd avatar Oct 27 '15 09:10 firstsd

Same here, I just upgraded from 1.7.X to 1.9.7. Configuration of the upstreams and the status page haven't changed. The upstream servers seem to be working but I can't get the status.

This is what I see in the error log, debug didn't seem to reveal anything else but I can get that if necessary. 2015/11/17 20:52:17 [error] 7429#0: *304 http upstream check module can not find any check server, make sure you've added the check servers, client: 127.0.0.1, server: localhost, request: "GET /?format=json HTTP/1.1", host: "localhost:88"

mattk42 avatar Nov 17 '15 20:11 mattk42

Actually, ignore me. User error on my part. @firstsd make sure you have no issues when applying the patch to nginx, I hadn't realized that the 1.9.2+ patch wasn't in the 3.0 release. So my script that compiles nginx for me was just skipping the patch.

mattk42 avatar Nov 18 '15 15:11 mattk42

@mattk42 , I encountered same problem after I upgrade from nginx 1.8.0 to 1.10.1. Could you share how you fix this?

huakaibird avatar Jun 30 '16 14:06 huakaibird

any news on this? nginx/1.11.9 doesn't seem to support this, although the syntax of check is accepted in the config file

aijanai avatar Feb 27 '17 15:02 aijanai

i also have this questions , have any one know how to fix it ????????

luofengxiao avatar Mar 21 '17 09:03 luofengxiao

i am the same

2017/03/18 17:35:16 [error] 17863#0: *20 http upstream check module can not find any check server, make sure you've added the check servers, client: 10.211.55.2, server: aser_server, request: "GET /ngx_status HTTP/1.1", host: "10.211.55.13"

nginx 1.11.3 patch 1.11.1

trojanliu avatar Aug 12 '17 04:08 trojanliu

I have also the same problem,who can tell me how to fix it ? 2018/08/02 14:39:17 [error] 27704#0: *327 http upstream check module can not find any check server, make sure you've added the check servers, client: 10.203.165.92, server: gamma.tf.360.cn, request: "GET /nStatus HTTP/1.1", host: "10.203.165.92"

openresty-1.13.6.2 patch check_1.12.1+.patch

Mayjiao avatar Aug 02 '18 07:08 Mayjiao

I once encountered this issue. After apply the patch and add-module of nginx_upstream_check_module, be sure to add compile option -DNGX_HTTP_UPSTREAM_CHECK. Otherwise the patched code won't be compiled. Hope this help.

nginx 1.12.1 patch check_1.12.1+.patch

mutexd avatar Nov 21 '18 04:11 mutexd

I once encountered this issue. After apply the patch and add-module of nginx_upstream_check_module, be sure to add compile option -DNGX_HTTP_UPSTREAM_CHECK. Otherwise the patched code won't be compiled. Hope this help.

nginx 1.12.1 patch check_1.12.1+.patch

这条信息非常的有用,我去测试一下!

iCraneZhou avatar Apr 18 '19 12:04 iCraneZhou

I modify the patch command and resolve the problem, command like this: patch -p0 < /opt/nginx_upstream_check_module-master/check_1.11.1+.patch

reason: The example command(patch -p1) based on check.patch file, the diff file path is different with check_1.11.1+.patch. Look the patch content, the different path is: check.patch: a/src/http/modules/xxxxx check_1.11.1+.patch: src/http/modules/xxxx

Hope this help.

nginx 1.11.2 / openresty 1.11.2.5 patch check_1.11.1+.patch

lukerliu avatar Jun 25 '19 07:06 lukerliu