chelsu opened a new issue, #10189:
URL: https://github.com/apache/apisix/issues/10189

   ### Current Behavior
   
   I am running APISIX docker standlone 3.5 version. It is looking for etcd. 
Below is the log
   
   2023/09/11 15:10:24 [warn] 41#41: *21 [lua] v3.lua:245: _request_uri(): 
invalid response code: 502. Retrying, context: ngx.timer
   2023/09/11 15:10:24 [error] 38#38: *174719 connect() failed (111: Connection 
refused) while connecting to upstream, client: unix:, server: , request: "POST 
/v3/kv/range HTTP/1.1", upstream: "http://127.0.0.1:2379/v3/kv/range";, host: 
"127.0.0.1"
   2023/09/11 15:10:24 [warn] 41#41: *21 [lua] v3.lua:245: _request_uri(): 
invalid response code: 502. Retrying, context: ngx.timer
   2023/09/11 15:10:24 [error] 38#38: *174719 connect() failed (111: Connection 
refused) while connecting to upstream, client: unix:, server: , request: "POST 
/v3/kv/range HTTP/1.1", upstream: "http://127.0.0.1:2379/v3/kv/range";, host: 
"127.0.0.1"
   2023/09/11 15:10:24 [warn] 41#41: *21 [lua] v3.lua:245: _request_uri(): 
invalid response code: 502. Retrying, context: ngx.timer
   2023/09/11 15:10:24 [error] 38#38: *174719 connect() failed (111: Connection 
refused) while connecting to upstream, client: unix:, server: , request: "POST 
/v3/kv/range HTTP/1.1", upstream: "http://127.0.0.1:2379/v3/kv/range";, host: 
"127.0.0.1"
   2023/09/11 15:10:24 [error] 41#41: *21 [lua] config_etcd.lua:159: etcd get: 
invalid response code: 502, context: ngx.timer
   
   ### Expected Behavior
   
   Standalone mode must not look for etcd 
   
   ### Error Logs
   
   2023/09/11 15:10:24 [warn] 41#41: *21 [lua] v3.lua:245: _request_uri(): 
invalid response code: 502. Retrying, context: ngx.timer
   2023/09/11 15:10:24 [error] 38#38: *174719 connect() failed (111: Connection 
refused) while connecting to upstream, client: unix:, server: , request: "POST 
/v3/kv/range HTTP/1.1", upstream: "http://127.0.0.1:2379/v3/kv/range";, host: 
"127.0.0.1"
   2023/09/11 15:10:24 [warn] 41#41: *21 [lua] v3.lua:245: _request_uri(): 
invalid response code: 502. Retrying, context: ngx.timer
   2023/09/11 15:10:24 [error] 38#38: *174719 connect() failed (111: Connection 
refused) while connecting to upstream, client: unix:, server: , request: "POST 
/v3/kv/range HTTP/1.1", upstream: "http://127.0.0.1:2379/v3/kv/range";, host: 
"127.0.0.1"
   2023/09/11 15:10:24 [warn] 41#41: *21 [lua] v3.lua:245: _request_uri(): 
invalid response code: 502. Retrying, context: ngx.timer
   2023/09/11 15:10:24 [error] 38#38: *174719 connect() failed (111: Connection 
refused) while connecting to upstream, client: unix:, server: , request: "POST 
/v3/kv/range HTTP/1.1", upstream: "http://127.0.0.1:2379/v3/kv/range";, host: 
"127.0.0.1"
   2023/09/11 15:10:24 [error] 41#41: *21 [lua] config_etcd.lua:159: etcd get: 
invalid response code: 502, context: ngx.timer
   
   ### Steps to Reproduce
   
   Run the below script
   
   #!/bin/bash
   
   CONTAINER_NAME="apache-apisix-gw"
   HOST_NETWORK_NAME="host"
   NETWORK_NAME="apache-apisix-gw-nw"
   
   sudo docker network rm ${NETWORK_NAME}
   sudo docker network create -d bridge ${NETWORK_NAME}
   
   sudo docker stop ${CONTAINER_NAME}
   
   sudo docker rm -f ${CONTAINER_NAME}
   
   sudo docker run -d --network=${HOST_NETWORK_NAME} \
     --name ${CONTAINER_NAME} \
     -p 9080:9080 \
     -e APISIX_STAND_ALONE=true \
     apache/apisix
   
   sudo docker exec -i ${CONTAINER_NAME} sh -c 'cat > 
/usr/local/apisix/conf/apisix.yaml <<_EOC_
   routes:
     -
       uri: /api/*
       upstream:
         nodes:
             "10.0.0.85:8000": 1
         type: roundrobin  
   
   
   #END
   _EOC_'
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.5
   - Operating system (run `uname -a`):Linux api-gateway 5.15.0-1040-oracle 
#46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):nginx 
version: nginx/1.18.0 (Ubuntu)
   built with OpenSSL 3.0.2 15 Mar 2022
   TLS SNI support enabled
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to