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 2020/04/14 06:54:30 UTC
[GitHub] [incubator-apisix-docker] to2false opened a new issue #42:
etcd-server could not be resolved (3: Host not found)
to2false opened a new issue #42: etcd-server could not be resolved (3: Host not found)
URL: https://github.com/apache/incubator-apisix-docker/issues/42
I created a network named gateway, then let ectd-server and test-api-gateway joined this network.
```
docker exec -it test-api-gateway sh
```
```
/usr/local/apisix # ping etcd-server
PING etcd-server (172.19.0.2): 56 data bytes
64 bytes from 172.19.0.2: seq=0 ttl=64 time=0.272 ms
64 bytes from 172.19.0.2: seq=1 ttl=64 time=0.071 ms
64 bytes from 172.19.0.2: seq=2 ttl=64 time=0.068 ms
64 bytes from 172.19.0.2: seq=3 ttl=64 time=0.116 ms
64 bytes from 172.19.0.2: seq=4 ttl=64 time=0.078 ms
64 bytes from 172.19.0.2: seq=5 ttl=64 time=0.066 ms
```
But got error as the title after request
```
curl http://127.0.0.1:8080/apisix/admin/services/1 -X PUT -d '
{
"upstream": {
"type": "roundrobin",
"nodes": {
"127.0.0.1:9081": 1
}
}
}'
{"error_msg":"etcd-server could not be resolved (3: Host not found)"}
```
-------
**Specify ip works**
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [incubator-apisix-docker] to2false closed issue #42: etcd-server
could not be resolved (3: Host not found)
Posted by GitBox <gi...@apache.org>.
to2false closed issue #42: etcd-server could not be resolved (3: Host not found)
URL: https://github.com/apache/incubator-apisix-docker/issues/42
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [incubator-apisix-docker] to2false commented on issue #42:
etcd-server could not be resolved (3: Host not found)
Posted by GitBox <gi...@apache.org>.
to2false commented on issue #42: etcd-server could not be resolved (3: Host not found)
URL: https://github.com/apache/incubator-apisix-docker/issues/42#issuecomment-613280697
@linsir I changed it, If not, I won't get this error
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [incubator-apisix-docker] to2false commented on issue #42:
etcd-server could not be resolved (3: Host not found)
Posted by GitBox <gi...@apache.org>.
to2false commented on issue #42: etcd-server could not be resolved (3: Host not found)
URL: https://github.com/apache/incubator-apisix-docker/issues/42#issuecomment-613334543
it works, thx
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [incubator-apisix-docker] linsir commented on issue #42:
etcd-server could not be resolved (3: Host not found)
Posted by GitBox <gi...@apache.org>.
linsir commented on issue #42: etcd-server could not be resolved (3: Host not found)
URL: https://github.com/apache/incubator-apisix-docker/issues/42#issuecomment-613324796
Try add 127.0.0.11 to `dns_resolver` in [config.yaml](https://github.com/apache/incubator-apisix/blob/master/conf/config.yaml#L83)
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [incubator-apisix-docker] linsir commented on issue #42:
etcd-server could not be resolved (3: Host not found)
Posted by GitBox <gi...@apache.org>.
linsir commented on issue #42: etcd-server could not be resolved (3: Host not found)
URL: https://github.com/apache/incubator-apisix-docker/issues/42#issuecomment-613278962
You should change the etcd address to `etcd-server` in [config.yaml](https://github.com/apache/incubator-apisix/blob/master/conf/config.yaml#L117)
----------------------------------------------------------------
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
With regards,
Apache Git Services