Date: Wed, 24 Jun 2020 16:27:22 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 247523] www/nginx: module ngx_http_upstream_check stopped working after migrating to dynamic in 1.18.0_12,2 Message-ID: <bug-247523-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247523 Bug ID: 247523 Summary: www/nginx: module ngx_http_upstream_check stopped working after migrating to dynamic in 1.18.0_12,2 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: joneum@FreeBSD.org Reporter: fzipitria@perceptyx.com Flags: maintainer-feedback?(joneum@FreeBSD.org) Assignee: joneum@FreeBSD.org Hi joneum, Yesterday we upgraded to 1.18.0_15, and the module upstream_check stopped working properly. You can do a test using a simple config file: <begin config file> worker_processes 1; worker_rlimit_nofile 262144; load_module "/usr/local/libexec/nginx/ngx_http_upstream_check_module.so"; error_log /tmp/test/error.log debug; events { worker_connections 16384; use kqueue; kqueue_changes 2048; } http { upstream cluster { # simple round-robin server 192.168.0.1:80; server 192.168.0.2:80; check interval=3D5000 rise=3D1 fall=3D3 timeout=3D4000; } server { listen 50080; location / { proxy_pass http://cluster; } location /status { check_status; access_log off; } } } <end config file> <begin commands> nginx -p /tmp/test -c test.conf curl http://localhost:50080/status <end commands> And logs show: <begin logs> 2020/06/23 12:35:00 [debug] 20275#101354: worker cycle 2020/06/23 12:35:00 [debug] 20275#101354: kevent timer: 60000, changes: 1 2020/06/23 12:35:00 [debug] 20275#101354: kevent events: 1 2020/06/23 12:35:00 [debug] 20275#101354: kevent: 3: ft:-1 fl:0020 ff:00000= 000 d:85 ud:000000080680D111 2020/06/23 12:35:00 [debug] 20275#101354: *3 http wait request handler 2020/06/23 12:35:00 [debug] 20275#101354: *3 malloc: 0000000802270000:1024 2020/06/23 12:35:00 [debug] 20275#101354: *3 recv: eof:0, avail:85, err:0 2020/06/23 12:35:00 [debug] 20275#101354: *3 recv: fd:3 85 of 1024 2020/06/23 12:35:00 [debug] 20275#101354: *3 reusable connection: 0 2020/06/23 12:35:00 [debug] 20275#101354: *3 posix_memalign: 000000080227F000:4096 @16 2020/06/23 12:35:00 [debug] 20275#101354: *3 http process request line 2020/06/23 12:35:00 [debug] 20275#101354: *3 http request line: "GET /status HTTP/1.1" 2020/06/23 12:35:00 [debug] 20275#101354: *3 http uri: "/status" 2020/06/23 12:35:00 [debug] 20275#101354: *3 http args: "" 2020/06/23 12:35:00 [debug] 20275#101354: *3 http exten: "" 2020/06/23 12:35:00 [debug] 20275#101354: *3 posix_memalign: 000000080227B000:4096 @16 2020/06/23 12:35:00 [debug] 20275#101354: *3 http process request header li= ne 2020/06/23 12:35:00 [debug] 20275#101354: *3 http header: "Host: localhost:50080" 2020/06/23 12:35:00 [debug] 20275#101354: *3 http header: "User-Agent: curl/7.67.0" 2020/06/23 12:35:00 [debug] 20275#101354: *3 http header: "Accept: */*" 2020/06/23 12:35:00 [debug] 20275#101354: *3 http header done 2020/06/23 12:35:00 [debug] 20275#101354: *3 event timer del: 3: 7021985672 2020/06/23 12:35:00 [debug] 20275#101354: *3 generic phase: 0 2020/06/23 12:35:00 [debug] 20275#101354: *3 rewrite phase: 1 2020/06/23 12:35:00 [debug] 20275#101354: *3 test location: "/" 2020/06/23 12:35:00 [debug] 20275#101354: *3 test location: "status" 2020/06/23 12:35:00 [debug] 20275#101354: *3 using configuration "/status" 2020/06/23 12:35:00 [debug] 20275#101354: *3 http cl:-1 max:1048576 2020/06/23 12:35:00 [debug] 20275#101354: *3 rewrite phase: 3 2020/06/23 12:35:00 [debug] 20275#101354: *3 rewrite phase: 4 2020/06/23 12:35:00 [debug] 20275#101354: *3 post rewrite phase: 5 2020/06/23 12:35:00 [debug] 20275#101354: *3 generic phase: 6 2020/06/23 12:35:00 [debug] 20275#101354: *3 generic phase: 7 2020/06/23 12:35:00 [debug] 20275#101354: *3 generic phase: 8 2020/06/23 12:35:00 [debug] 20275#101354: *3 generic phase: 9 2020/06/23 12:35:00 [debug] 20275#101354: *3 access phase: 10 2020/06/23 12:35:00 [debug] 20275#101354: *3 access phase: 11 2020/06/23 12:35:00 [debug] 20275#101354: *3 access phase: 12 2020/06/23 12:35:00 [debug] 20275#101354: *3 post access phase: 13 2020/06/23 12:35:00 [debug] 20275#101354: *3 generic phase: 14 2020/06/23 12:35:00 [debug] 20275#101354: *3 generic phase: 15 2020/06/23 12:35:00 [debug] 20275#101354: *3 http set discard body 2020/06/23 12:35:00 [error] 20275#101354: *3 http upstream check module can= not find any check server, make sure you've added the check servers, client: 127.0.0.1, server: , request: "GET /status HTTP/1.1", host: "localhost:5008= 0" 2020/06/23 12:35:00 [debug] 20275#101354: *3 http finalize request: 500, "/status?" a:1, c:1 2020/06/23 12:35:00 [debug] 20275#101354: *3 http special response: 500, "/status?" 2020/06/23 12:35:00 [debug] 20275#101354: *3 http set discard body 2020/06/23 12:35:00 [debug] 20275#101354: *3 HTTP/1.1 500 Internal Server E= rror Server: nginx/1.18.0 Date: Tue, 23 Jun 2020 19:35:00 GMT Content-Type: text/html Content-Length: 177 Connection: close <end logs> Looks as if it wasn't installed properly. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247523-7788>