You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "TTsWorld (via GitHub)" <gi...@apache.org> on 2023/03/06 01:05:36 UTC

[GitHub] [apisix] TTsWorld opened a new issue, #9006: help request: mac m1 can not run apisix with docker-compose-arm64.yml

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

   ### Description
   
   i'm new person apisix/etcd, i  try run apisix on my mac use docker ,  all the required ports (default: 9080, 9180, 9443 and 2379) are available and not used by other system processes. but when apisix run success, i can not create router in apisix, the erros msg is :
   
   2023-03-06 08:56:52 {"level":"warn","ts":"2023-03-06T00:56:52.404Z","logger":"etcd-client","caller":"v3@v3.5.5/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0x400047efc0/etcd:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp 0.0.0.0:2379: connect: connection refused\""}
   
   ps: 
      i use default docker-compose-arm64.yml
   
   ### Environment
   
   - APISIX version (run `apisix version`): i use default docker config docker-compose-arm64.yml
   - Operating system (run `uname -a`):Darwin- 22.3.0 Darwin Kernel Version 22.3.0: arm64
   
   
   


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

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


[GitHub] [apisix] monkeyDluffy6017 commented on issue #9006: help request: mac m1 can not run apisix with docker-compose-arm64.yml

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 commented on issue #9006:
URL: https://github.com/apache/apisix/issues/9006#issuecomment-1455377615

   Why is your etcd IP `0.0.0.0` ?


-- 
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] mscb402 commented on issue #9006: help request: mac m1 can not run apisix with docker-compose-arm64.yml

Posted by "mscb402 (via GitHub)" <gi...@apache.org>.
mscb402 commented on issue #9006:
URL: https://github.com/apache/apisix/issues/9006#issuecomment-1455372387

   Are your Etcd instance starting successfully?


-- 
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] shreemaan-abhishek commented on issue #9006: help request: mac m1 can not run apisix with docker-compose-arm64.yml

Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #9006:
URL: https://github.com/apache/apisix/issues/9006#issuecomment-1455452661

   Hi, you can [install etcdctl](https://etcd.io/docs/v3.2/install/) and run this command to check if etcd is running properly:
   
   `etcdctl get /apisix --prefix --endpoints 127.0.0.1:2379`
   `2379` being the port on which etcd is listening (the default port is `2379`)
   
   The output would be something like this:
   
   ```bash
   /apisix/consumer_groups/
   init_dir
   /apisix/consumers/
   init_dir
   /apisix/consumers/chen
   {"update_time":1673614214,"plugins":{"jwt-auth":{"base64_secret":false,"lifetime_grace_period":0,"secret":"chen-key","algorithm":"HS256","key":"chen-key","exp":86400}},"username":"chen","create_time":1673614212}
   /apisix/consumers/foo
   {"create_time":1673614799,"plugins":{"basic-auth":{"username":"foo","password":"$secret:\/\/vault\/test1\/foo\/passwd"}},"username":"foo","update_time":1673614807}
   /apisix/consumers/jack
   {"username":"jack","create_time":1673614215,"update_time":1673614870,"plugins":{"key-auth":{"key":"auth-one"}}}
   /apisix/consumers/jack1
   {"username":"jack1","create_time":1673614294,"plugins":{"basic-auth":{"username":"jack2019","password":"123456"}},"update_time":1673614294}
   /apisix/consumers/jack2
   ```


-- 
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] TTsWorld commented on issue #9006: help request: mac m1 can not run apisix with docker-compose-arm64.yml

Posted by "TTsWorld (via GitHub)" <gi...@apache.org>.
TTsWorld commented on issue #9006:
URL: https://github.com/apache/apisix/issues/9006#issuecomment-1459844635

   > @TTsWorld Hi, maybe it is an issue of `apisix-docker`, you can try this diff
   > 
   > ```diff
   > diff --git a/example/docker-compose-arm64.yml b/example/docker-compose-arm64.yml
   > index 81f13ed..8b19cab 100644
   > --- a/example/docker-compose-arm64.yml
   > +++ b/example/docker-compose-arm64.yml
   > @@ -54,7 +54,7 @@ services:
   >        ETCD_UNSUPPORTED_ARCH: "arm64"
   >        ETCD_ENABLE_V2: "true"
   >        ALLOW_NONE_AUTHENTICATION: "yes"
   > -      ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
   > +      ETCD_ADVERTISE_CLIENT_URLS: "http://etcd:2379"
   >        ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
   >        ETCD_DATA_DIR: "/etcd-data"
   >      ports:
   > ```
   
   Hello, in this way of yours, solved the problem of etcd, thank you very much.


-- 
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] TTsWorld commented on issue #9006: help request: mac m1 can not run apisix with docker-compose-arm64.yml

Posted by "TTsWorld (via GitHub)" <gi...@apache.org>.
TTsWorld commented on issue #9006:
URL: https://github.com/apache/apisix/issues/9006#issuecomment-1459847046

   > Hi, you can [install etcdctl](https://etcd.io/docs/v3.2/install/) and run this command to check if etcd is running properly:
   > 
   > `etcdctl get /apisix --prefix --endpoints 127.0.0.1:2379` `2379` being the port on which etcd is listening (the default port is `2379`)
   > 
   > The output would be something like this:
   > 
   > ```shell
   > /apisix/consumer_groups/
   > init_dir
   > /apisix/consumers/
   > init_dir
   > /apisix/consumers/chen
   > {"update_time":1673614214,"plugins":{"jwt-auth":{"base64_secret":false,"lifetime_grace_period":0,"secret":"chen-key","algorithm":"HS256","key":"chen-key","exp":86400}},"username":"chen","create_time":1673614212}
   > /apisix/consumers/foo
   > {"create_time":1673614799,"plugins":{"basic-auth":{"username":"foo","password":"$secret:\/\/vault\/test1\/foo\/passwd"}},"username":"foo","update_time":1673614807}
   > /apisix/consumers/jack
   > {"username":"jack","create_time":1673614215,"update_time":1673614870,"plugins":{"key-auth":{"key":"auth-one"}}}
   > /apisix/consumers/jack1
   > {"username":"jack1","create_time":1673614294,"plugins":{"basic-auth":{"username":"jack2019","password":"123456"}},"update_time":1673614294}
   > /apisix/consumers/jack2
   > ```
   
   Thank you very much for solving my problem through the answer of the friend above
   


-- 
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] ronething commented on issue #9006: help request: mac m1 can not run apisix with docker-compose-arm64.yml

Posted by "ronething (via GitHub)" <gi...@apache.org>.
ronething commented on issue #9006:
URL: https://github.com/apache/apisix/issues/9006#issuecomment-1455380278

   @TTsWorld Hi, maybe it is an issue of `apisix-docker`, you can try this diff 
   
   ```diff
   diff --git a/example/docker-compose-arm64.yml b/example/docker-compose-arm64.yml
   index 81f13ed..8b19cab 100644
   --- a/example/docker-compose-arm64.yml
   +++ b/example/docker-compose-arm64.yml
   @@ -54,7 +54,7 @@ services:
          ETCD_UNSUPPORTED_ARCH: "arm64"
          ETCD_ENABLE_V2: "true"
          ALLOW_NONE_AUTHENTICATION: "yes"
   -      ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
   +      ETCD_ADVERTISE_CLIENT_URLS: "http://etcd:2379"
          ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
          ETCD_DATA_DIR: "/etcd-data"
        ports:
   ```


-- 
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] TTsWorld commented on issue #9006: help request: mac m1 can not run apisix with docker-compose-arm64.yml

Posted by "TTsWorld (via GitHub)" <gi...@apache.org>.
TTsWorld commented on issue #9006:
URL: https://github.com/apache/apisix/issues/9006#issuecomment-1459856746

   > Are your Etcd instance starting successfully? You can check out this in `docker ps`. And please share your Etcd log with us.
   
   my etcd  started normal


-- 
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] TTsWorld closed issue #9006: help request: mac m1 can not run apisix with docker-compose-arm64.yml

Posted by "TTsWorld (via GitHub)" <gi...@apache.org>.
TTsWorld closed issue #9006: help request: mac m1 can not run apisix with docker-compose-arm64.yml
URL: https://github.com/apache/apisix/issues/9006


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