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/05/19 15:04:44 UTC

[GitHub] [apisix-docker] Simolx opened a new pull request #174: change etcd volumes data path in container

Simolx opened a new pull request #174:
URL: https://github.com/apache/apisix-docker/pull/174


   #173 
   Ghange etcd volumes data path in example module.


-- 
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-docker] carlzhao commented on pull request #174: fix: change etcd volumes data path in container

Posted by GitBox <gi...@apache.org>.
carlzhao commented on pull request #174:
URL: https://github.com/apache/apisix-docker/pull/174#issuecomment-877946217


   change etcd version to 3.4.14 solves this problem.
   
     etcd:
       image: bitnami/etcd:3.4.14
       user: root
       restart: always
       environment:
         ALLOW_NONE_AUTHENTICATION: "yes"
         ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
         ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
       ports:
         - "2379:2379/tcp"
       networks:
         apisix:


-- 
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-docker] Yiyiyimu commented on pull request #174: fix: change etcd volumes data path in container

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on pull request #174:
URL: https://github.com/apache/apisix-docker/pull/174#issuecomment-852424955


   @tokers Several users met with this problem, I think we need to fix it now.
   
   And the orinigal error `etcdmain: cannot access data directory: open /bitnami/etcd/data/.touch: permission denied` might result from `ETCD_DATA_DIR: /etcd_data` not effective, so etcd still take the default path `/bitnami/etcd` as data dir.
   
   If we ignore the reason why it's not effective (I failed to find it), we could take this PR to fix the problem


-- 
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-docker] Yiyiyimu merged pull request #174: fix: change etcd volumes data path in container

Posted by GitBox <gi...@apache.org>.
Yiyiyimu merged pull request #174:
URL: https://github.com/apache/apisix-docker/pull/174


   


-- 
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-docker] thomasroshin commented on pull request #174: fix: change etcd volumes data path in container

Posted by GitBox <gi...@apache.org>.
thomasroshin commented on pull request #174:
URL: https://github.com/apache/apisix-docker/pull/174#issuecomment-866226725


   Thank you. I am able to run it. 


-- 
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-docker] duandao1950 commented on pull request #174: fix: change etcd volumes data path in container

Posted by GitBox <gi...@apache.org>.
duandao1950 commented on pull request #174:
URL: https://github.com/apache/apisix-docker/pull/174#issuecomment-872187224


   [root@localhost example]# docker version
   Client: Docker Engine - Community
    Version:           20.10.7
    API version:       1.41
    Go version:        go1.13.15
    Git commit:        f0df350
    Built:             Wed Jun  2 11:58:10 2021
    OS/Arch:           linux/amd64
    Context:           default
    Experimental:      true
   
   Server: Docker Engine - Community
    Engine:
     Version:          20.10.7
     API version:      1.41 (minimum version 1.12)
     Go version:       go1.13.15
     Git commit:       b0f5bc3
     Built:            Wed Jun  2 11:56:35 2021
     OS/Arch:          linux/amd64
     Experimental:     false
    containerd:
     Version:          1.4.6
     GitCommit:        d71fcd7d8303cbf684402823e425e9dd2e99285d
    runc:
     Version:          1.0.0-rc95
     GitCommit:        b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
    docker-init:
     Version:          0.19.0
     GitCommit:        de40ad0
   
   -----------------------------------
   
   etcd_1              | 2021-07-01 11:57:38.007837 I | embed: advertise client URLs = http://0.0.0.0:2379
   etcd_1              | 2021-07-01 11:57:38.007935 C | etcdmain: cannot access data directory: mkdir /bitnami/etcd/data: permission denied
   
   ---------------------------------------------
   
    etcd:
       image: bitnami/etcd:3.4.15
       user: root
       restart: always
       privileged: true
       volumes:
         - ./etcd_data:/bitnami/etcd
       environment:
         ETCD_ENABLE_V2: "true"
         ALLOW_NONE_AUTHENTICATION: "yes"
         ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
         ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
       ports:
         - "2379:2379/tcp"
       networks:
         apisix:
   
   -----------------------
   
   please help!


-- 
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-docker] Yiyiyimu commented on pull request #174: fix: change etcd volumes data path in container

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on pull request #174:
URL: https://github.com/apache/apisix-docker/pull/174#issuecomment-853262266


   @Simolx Thanks for your contribution!


-- 
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-docker] tokers commented on pull request #174: fix: change etcd volumes data path in container

Posted by GitBox <gi...@apache.org>.
tokers commented on pull request #174:
URL: https://github.com/apache/apisix-docker/pull/174#issuecomment-844612240


   > > > @younglifestyle could the method provide by @anyeshe fix your problem
   > 
   > > 
   > 
   > >failed. Etcd can't see the log. the configuration is here
   > 
   > ![image](https://user-images.githubusercontent.com/19261307/117625348-8477d500-b1a8-11eb-9687-a60656395ada.png)
   > 
   > 
   > 
   > >_Originally posted by @younglifestyle in https://github.com/apache/apisix-docker/issues/171#issuecomment-836329780_
   > 
   > 
   > 
   > It seems would be better to change the permission of `./etcd_data` or add docs about it, as #171 suggests, since the fix right now could not work as expected
   
   Agree with that.


-- 
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-docker] tokers commented on pull request #174: fix: change etcd volumes data path in container

Posted by GitBox <gi...@apache.org>.
tokers commented on pull request #174:
URL: https://github.com/apache/apisix-docker/pull/174#issuecomment-852891241


   > @tokers Several users met with this problem, I think we need to fix it now.
   > 
   > And the orinigal error `etcdmain: cannot access data directory: open /bitnami/etcd/data/.touch: permission denied` might result from `ETCD_DATA_DIR: /etcd_data` not effective, so etcd still take the default path `/bitnami/etcd` as data dir.
   > 
   > If we ignore the reason why it's not effective (I failed to find it), we could take this PR to fix the problem
   
   Got it.


-- 
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-docker] Yiyiyimu commented on pull request #174: fix: change etcd volumes data path in container

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on pull request #174:
URL: https://github.com/apache/apisix-docker/pull/174#issuecomment-844313167


   > > @younglifestyle could the method provide by @anyeshe fix your problem
   > 
   >failed. Etcd can't see the log. the configuration is here
   ![image](https://user-images.githubusercontent.com/19261307/117625348-8477d500-b1a8-11eb-9687-a60656395ada.png)
   
   >_Originally posted by @younglifestyle in https://github.com/apache/apisix-docker/issues/171#issuecomment-836329780_
   
   It seems would be better to change the permission of `./etcd_data` or add docs about it, as #171 suggests, since the fix right now could not work as expected


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