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 2019/11/12 02:29:50 UTC
[GitHub] [incubator-apisix-docker] lgd8069465 commented on issue #25:
/usr/bin/apisix:520: in function
lgd8069465 commented on issue #25: /usr/bin/apisix:520: in function </usr/bin/apisix:497>
URL: https://github.com/apache/incubator-apisix-docker/issues/25#issuecomment-552705968
~~~
[root@docker example]# docker run --name test-api-gateway -v /opt/apisix/example/apisix_conf/config.yaml:/usr/local/apisix/conf/config.yml -v /opt/apisix/example/apisix_log:/usr/local/apisix/logs -p 8080:9080 -p 8083:9443 -d iresty/apisix
7751e953f74d5c79f423e00f35183b7f3227112fd648b8b2db885fbb0fe5ea11
[root@docker example]# docker logs -f 77
/usr/local/openresty/luajit/bin/luajit: /usr/bin/apisix:520: curl http://127.0.0.1:2379/v2/keys/apisix/routes?prev_exist=false -X PUT -d dir=true --connect-timeout 1 --max-time 2 --retry 1 2>&1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 127.0.0.1 port 2379: Connection refused
stack traceback:
[C]: in function 'error'
/usr/bin/apisix:520: in function </usr/bin/apisix:497>
/usr/bin/apisix:575: in main chunk
[C]: at 0x55a1837742c0
[root@docker example]# curl http://127.0.0.1:2379/v2/keys/apisix/routes?prev_exist=false -X PUT -d dir=true --connect-timeout 1 --max-time 2 --retry 1 2>&1
{"action":"set","node":{"key":"/apisix/routes","dir":true,"modifiedIndex":5,"createdIndex":5}}
[root@docker example]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7751e953f74d iresty/apisix "sh -c '/usr/bin/apiā¦" 6 minutes ago Exited (1) 6 minutes ago test-api-gateway
ccb740f719a2 bitnami/etcd:3.3.13-r80 "/entrypoint.sh etcd" 41 minutes ago Up 40 minutes 0.0.0.0:2379-2380->2379-2380/tcp etcd-server
~~~
config.yml , 192.168.192.128 is my host
~~~
etcd:
host: "http://192.168.192.128:2379" # etcd address
~~~
why?
----------------------------------------------------------------
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