Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556716 - www-servers/nginx-1.8.0 : upstream_check module don't work
Summary: www-servers/nginx-1.8.0 : upstream_check module don't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-05 05:46 UTC by Chris Yu
Modified: 2016-01-22 13:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Yu 2015-08-05 05:46:52 UTC
Updated from 1.7.6 to 1.8.0, upstream_check module stop working.

check_status page return error 500.

nginx error_log says 

2015/08/05 11:09:09 [error] 31278#0: *1 http upstream check module can not find any check server, make sure you've added the check servers, client: 192.168.2.xx, server: localhost, request: "GET /upstream_status HTTP/1.1", host: "192.168.2.xx"

I found ebuild still uses check_1.7.2+.patch, so I downloaded check_1.7.5+.patch from project page to files dir, and changed epatch line.
https://github.com/yaoweibin/nginx_upstream_check_module/blob/master/check_1.7.5%2B.patch

Which patched with no problem and check_status page works again.



Reproducible: Always




related nginx config :

    upstream servers {
        server server1:82;
        check interval=3000 rise=2 fall=5 timeout=1000 type=http;
    }

    server {
        .....
        location /upstream_status {
            check_status;
            access_log off;
            allow 127.0.0.1/32;
            allow 192.168.2.0/24;
            deny all;
        }
        .....
    }

Nginx USE :

[ebuild   R    ] www-servers/nginx-1.8.0::gentoo USE="http http-cache pcre ssl vim-syntax -aio -debug -ipv6 -libatomic -luajit -pcre-jit -rtmp (-selinux)" NGINX_MODULES_HTTP="access auth_basic browser charset empty_gif gzip limit_conn limit_req map memcached proxy referer rewrite secure_link sticky stub_status upload_progress upstream_check upstream_ip_hash userid -addition -ajp -auth_pam -auth_request -autoindex -cache_purge -dav -dav_ext -degradation -echo -fancyindex -fastcgi -flv -geo -geoip -gunzip -gzip_static -headers_more -image_filter -lua -metrics -mogilefs -mp4 -naxsi -perl -push_stream -random_index -realip -scgi -security -slowfs_cache -spdy -split_clients -ssi -sub -uwsgi -xslt" NGINX_MODULES_MAIL="-imap -pop3 -smtp" 0 KiB
Comment 1 Tomáš Mózes 2015-08-25 11:18:37 UTC
Works again in 1.9.3.
Comment 2 Chris Yu 2015-08-25 12:39:30 UTC
It should only affects version >=1.7.5 and <=1.8.0 .
These versions should be patched with check_1.7.5+.patch, not check_1.7.2+.patch .

Version >1.9.2 patched with check-1.9.2.patch, so it's fine.
Comment 3 Johan Bergström 2016-01-22 13:13:06 UTC
This is fixed (I rebaked patch upstream).