ngau66 opened a new issue #2609:
URL: https://github.com/apache/apisix/issues/2609
### Issue description
I wanna test the health monitoring of a https backend, so I set the
apisix.yaml like this:
`routes:
- uri: /get
# priority: 100
plugins:
proxy-rewrite:
scheme: "https"
upstream:
checks:
active:
type: "https"
timeout: 5
http_path: /get
healthy:
interval: 5
successes: 1
unhealthy:
interval: 5
http_failures: 2
nodes:
"httpbin.org:443": 1
"127.0.0.1:8080": 2
type: roundrobin
ssl:
...`
The node 127.0.0.1:8080 does not provide service.
I execute `curl -k --resolve httpbin.org:9443:127.0.0.1
https://httpbin.org:9443/get?asdf=asdf`
Although I can get the reply from httpbin.org, there are still a brunch of
error:
`2020/11/03 12:38:20 [error] 1277#1277: *859 connect() failed (111:
Connection refused) while connecting to upstream, client: 192.168.50.16,
server: , request: "GET /get?asdf=asdf HTTP/2.0", upstream:
"https://127.0.0.1:8080/get?asdf=asdf", host: "httpbin.org:9443"
2020/11/03 12:38:20 [warn] 1277#1277: *859 [lua] healthcheck.lua:1107:
log(): [healthcheck] (upstream#/routes/arr_1) unhealthy TCP increment (1/2) for
'(127.0.0.1:8080)' while connecting to upstream, client: 192.168.50.16, server:
, request: "GET /get?asdf=asdf HTTP/2.0", upstream:
"https://127.0.0.1:8080/get?asdf=asdf", host: "httpbin.org:9443"
2020/11/03 12:38:20 [warn] 1277#1277: *869 [lua] healthcheck.lua:1107:
log(): [healthcheck] (upstream#/routes/arr_1) unhealthy TCP increment (2/2) for
'(127.0.0.1:8080)', context: ngx.timer, client: 192.168.50.16, server:
0.0.0.0:9443
2020/11/03 12:38:20 [error] 1277#1277: *859 connect() failed (111:
Connection refused) while connecting to upstream, client: 192.168.50.16,
server: , request: "GET /get?asdf=asdf HTTP/2.0", upstream:
"https://127.0.0.1:8080/get?asdf=asdf", host: "httpbin.org:9443"
2020/11/03 12:38:22 [error] 1277#1277: *869 [lua] healthcheck.lua:1107:
log(): [healthcheck] (upstream#/routes/arr_1) failed SSL handshake with 'nil
(18.208.255.250:443)': 20: unable to get local issuer certificate, context:
ngx.timer, client: 192.168.50.16, server: 0.0.0.0:9443
2020/11/03 12:38:22 [warn] 1277#1277: *869 [lua] healthcheck.lua:1107:
log(): [healthcheck] (upstream#/routes/arr_1) unhealthy TCP increment (1/2) for
'(18.208.255.250:443)', context: ngx.timer, client: 192.168.50.16, server:
0.0.0.0:9443
2020/11/03 12:38:25 [error] 1277#1277: *1597 [lua] healthcheck.lua:1107:
log(): [healthcheck] (upstream#/routes/arr_1) failed SSL handshake with 'nil
(18.208.255.250:443)': 20: unable to get local issuer certificate, context:
ngx.timer, client: 192.168.50.16, server: 0.0.0.0:9443
2020/11/03 12:38:25 [warn] 1277#1277: *1597 [lua] healthcheck.lua:1107:
log(): [healthcheck] (upstream#/routes/arr_1) unhealthy TCP increment (2/2) for
'(18.208.255.250:443)', context: ngx.timer, client: 192.168.50.16, server:
0.0.0.0:9443
2020/11/03 12:38:31 [error] 1277#1277: *2248 [lua] healthcheck.lua:1107:
log(): [healthcheck] (upstream#/routes/arr_1) failed SSL handshake with 'nil
(18.208.255.250:443)': 20: unable to get local issuer certificate, context:
ngx.timer, client: 192.168.50.16, server: 0.0.0.0:9443
2020/11/03 12:38:35 [error] 1277#1277: *2976 [lua] healthcheck.lua:1107:
log(): [healthcheck] (upstream#/routes/arr_1) failed SSL handshake with 'nil
(18.208.255.250:443)': 20: unable to get local issuer certificate, context:
ngx.timer, client: 192.168.50.16, server: 0.0.0.0:9443
2020/11/03 12:38:40 [error] 1277#1277: *3634 [lua] healthcheck.lua:1107:
log(): [healthcheck] (upstream#/routes/arr_1) failed SSL handshake with 'nil
(18.208.255.250:443)': 20: unable to get local issuer certificate, context:
ngx.timer, client: 192.168.50.16, server: 0.0.0.0:9443
2020/11/03 12:38:46 [error] 1277#1277: *4361 [lua] healthcheck.lua:1107:
log(): [healthcheck] (upstream#/routes/arr_1) failed SSL handshake with 'nil
(18.208.255.250:443)': 20: unable to get local issuer certificate, context:
ngx.timer, client: 192.168.50.16, server: 0.0.0.0:9443
`
Are there something wrong of configuration?
### Environment
* apisix version: 2.0 (pull at oct 28)
* OS: ubuntu 18.04 (wsl2)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]