You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/14 08:04:33 UTC

[GitHub] [apisix] YangHuiFor opened a new issue #4420: request help: failed to set upstream: discovery nacos is uninitialized

YangHuiFor opened a new issue #4420:
URL: https://github.com/apache/apisix/issues/4420


   ### Issue description
   本地使用的apisix 2.6版本, 项配置下使用nacos服务发现。 搜索了之前的Issue没发现有类似的问题
   
   curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
   {
       "uri": "/v1/*",
       "upstream": {
           "service_name": "APISIX-NACOS",
           "type": "roundrobin",
           "discovery_type": "nacos"
       }
   }'
   
   
   请求无法通过,提示
   2021/06/12 07:26:50 [error] 47#47: *213366 [lua] init.lua:470: http_access_phase(): failed to set upstream: discovery nacos is uninitialized, client: 172.20.0.1, server: _, request: "GET /v1/t HTTP/1.1", host: "127.0.0.1:9080"
   
   ### Environment
   使用的Mac docker环境
   ![image](https://user-images.githubusercontent.com/4995476/121768961-98419d00-cb93-11eb-99c0-8a60e40a5c2d.png)
   
   


-- 
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:
users@infra.apache.org



[GitHub] [apisix] Yiyiyimu commented on issue #4420: request help: failed to set upstream: discovery nacos is uninitialized

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on issue #4420:
URL: https://github.com/apache/apisix/issues/4420#issuecomment-860069522


   Hi @YangHuiFor have you configured nacos in apisix config correctly? Could you show `config.yaml` and how you set up nacos


-- 
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:
users@infra.apache.org



[GitHub] [apisix] zemelLeong commented on issue #4420: request help: failed to set upstream: discovery nacos is uninitialized

Posted by GitBox <gi...@apache.org>.
zemelLeong commented on issue #4420:
URL: https://github.com/apache/apisix/issues/4420#issuecomment-927253257


   > > @tokers
   > > error.log
   > > 2021/06/14 02:50:49 [error] 46#46: *2725467 [lua] init.lua:470: http_access_phase(): failed to set upstream: discovery nacos is uninitialized, client: 172.20.0.1, server: _, request: "GET /v1/t HTTP/1.1", host: "127.0.0.1:9080"
   > 
   > Well, I mean are there any log messages that can tell us the reason what the discovery nacos can not be initialized?
   
   I have same issue. I get this `error.log` when I execute command `docker-compose -p docker-apisix up -d` to start apisix.
   ![image](https://user-images.githubusercontent.com/26835087/134798918-0e8ada25-9ea0-45a9-99f8-9ec17b21999e.png)
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #4420: request help: failed to set upstream: discovery nacos is uninitialized

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4420:
URL: https://github.com/apache/apisix/issues/4420#issuecomment-876967884


   Closed as lack of response.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #4420: request help: failed to set upstream: discovery nacos is uninitialized

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #4420:
URL: https://github.com/apache/apisix/issues/4420#issuecomment-860182851






-- 
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:
users@infra.apache.org



[GitHub] [apisix] YangHuiFor commented on issue #4420: request help: failed to set upstream: discovery nacos is uninitialized

Posted by GitBox <gi...@apache.org>.
YangHuiFor commented on issue #4420:
URL: https://github.com/apache/apisix/issues/4420#issuecomment-860150292






-- 
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:
users@infra.apache.org



[GitHub] [apisix] jxljf commented on issue #4420: request help: failed to set upstream: discovery nacos is uninitialized

Posted by GitBox <gi...@apache.org>.
jxljf commented on issue #4420:
URL: https://github.com/apache/apisix/issues/4420#issuecomment-916902094


   please execute 'make reload' after modify conf.yaml


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #4420: request help: failed to set upstream: discovery nacos is uninitialized

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #4420:
URL: https://github.com/apache/apisix/issues/4420


   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] zemelLeong commented on issue #4420: request help: failed to set upstream: discovery nacos is uninitialized

Posted by GitBox <gi...@apache.org>.
zemelLeong commented on issue #4420:
URL: https://github.com/apache/apisix/issues/4420#issuecomment-927258864


   > > > @tokers
   > > > error.log
   > > > 2021/06/14 02:50:49 [error] 46#46: *2725467 [lua] init.lua:470: http_access_phase(): failed to set upstream: discovery nacos is uninitialized, client: 172.20.0.1, server: _, request: "GET /v1/t HTTP/1.1", host: "127.0.0.1:9080"
   > > 
   > > 
   > > Well, I mean are there any log messages that can tell us the reason what the discovery nacos can not be initialized?
   > 
   > I have same issue. I get this `error.log` when I execute command `docker-compose -p docker-apisix up -d` to start apisix.
   > ![image](https://user-images.githubusercontent.com/26835087/134798918-0e8ada25-9ea0-45a9-99f8-9ec17b21999e.png)
   
   never mind. the discovery need in the root.
   https://github.com/apache/apisix/blob/master/conf/config-default.yaml


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org