{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/6984","repository_url":"https://api.github.com/repos/coreos/etcd","labels_url":"https://api.github.com/repos/coreos/etcd/issues/6984/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/6984/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/6984/events","html_url":"https://github.com/coreos/etcd/issues/6984","id":194886544,"number":6984,"title":"Failed to initialize wal on Azure File Storage","user":{"login":"alanchchen","id":18523012,"avatar_url":"https://avatars.githubusercontent.com/u/18523012?v=3","gravatar_id":"","url":"https://api.github.com/users/alanchchen","html_url":"https://github.com/alanchchen","followers_url":"https://api.github.com/users/alanchchen/followers","following_url":"https://api.github.com/users/alanchchen/following{/other_user}","gists_url":"https://api.github.com/users/alanchchen/gists{/gist_id}","starred_url":"https://api.github.com/users/alanchchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanchchen/subscriptions","organizations_url":"https://api.github.com/users/alanchchen/orgs","repos_url":"https://api.github.com/users/alanchchen/repos","events_url":"https://api.github.com/users/alanchchen/events{/privacy}","received_events_url":"https://api.github.com/users/alanchchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-12T04:03:16Z","updated_at":"2016-12-12T17:59:26Z","closed_at":null,"body":"I got initialization error when using `etcd` with Azure File Storage\r\n`etcd` was deployed in my Kubernetes cluster and it mounted a persistent volume as data directory.\r\n\r\nThe container logs from Kubernetes dashboard:\r\n```\r\n2016-12-12T03:45:25.460712973Z 2016-12-12 03:45:25.460620 W | flags: unrecognized environment variable ETCD_PORT_2379_TCP=tcp://10.0.84.255:2379\r\n2016-12-12T03:45:25.460744973Z 2016-12-12 03:45:25.460688 W | flags: unrecognized environment variable ETCD_PORT_2379_TCP_ADDR=10.0.84.255\r\n2016-12-12T03:45:25.460750173Z 2016-12-12 03:45:25.460714 W | flags: unrecognized environment variable ETCD_SERVICE_PORT=2379\r\n2016-12-12T03:45:25.460753273Z 2016-12-12 03:45:25.460724 W | flags: unrecognized environment variable ETCD_SERVICE_HOST=10.0.84.255\r\n2016-12-12T03:45:25.460756173Z 2016-12-12 03:45:25.460732 W | flags: unrecognized environment variable ETCD_PORT_2379_TCP_PORT=2379\r\n2016-12-12T03:45:25.460761973Z 2016-12-12 03:45:25.460741 W | flags: unrecognized environment variable ETCD_PORT=tcp://10.0.84.255:2379\r\n2016-12-12T03:45:25.460768773Z 2016-12-12 03:45:25.460759 W | flags: unrecognized environment variable ETCD_PORT_2379_TCP_PROTO=tcp\r\n2016-12-12T03:45:25.460796173Z 2016-12-12 03:45:25.460769 W | flags: unrecognized environment variable ETCD_SERVICE_PORT_ETCD_CLIENT=2379\r\n2016-12-12T03:45:25.460820373Z 2016-12-12 03:45:25.460801 I | etcdmain: etcd Version: 3.0.15\r\n2016-12-12T03:45:25.460826973Z 2016-12-12 03:45:25.460816 I | etcdmain: Git SHA: fc00305\r\n2016-12-12T03:45:25.460861773Z 2016-12-12 03:45:25.460824 I | etcdmain: Go Version: go1.6.3\r\n2016-12-12T03:45:25.460884272Z 2016-12-12 03:45:25.460853 I | etcdmain: Go OS/Arch: linux/amd64\r\n2016-12-12T03:45:25.460942272Z 2016-12-12 03:45:25.460905 I | etcdmain: setting maximum number of CPUs to 2, total number of available CPUs is 2\r\n2016-12-12T03:45:25.471510026Z 2016-12-12 03:45:25.471446 N | etcdmain: the server is already initialized as member before, starting as etcd member...\r\n2016-12-12T03:45:25.473523217Z 2016-12-12 03:45:25.473482 I | etcdmain: listening for peers on http://0.0.0.0:2380\r\n2016-12-12T03:45:25.473606616Z 2016-12-12 03:45:25.473566 I | etcdmain: listening for client requests on 0.0.0.0:2379\r\n2016-12-12T03:45:25.739378943Z 2016-12-12 03:45:25.739272 I | etcdserver: name = etcd\r\n2016-12-12T03:45:25.739404243Z 2016-12-12 03:45:25.739294 I | etcdserver: data dir = /mnt/data\r\n2016-12-12T03:45:25.739408543Z 2016-12-12 03:45:25.739301 I | etcdserver: member dir = /mnt/data/member\r\n2016-12-12T03:45:25.739411643Z 2016-12-12 03:45:25.739305 I | etcdserver: heartbeat = 100ms\r\n2016-12-12T03:45:25.739414643Z 2016-12-12 03:45:25.739308 I | etcdserver: election = 1000ms\r\n2016-12-12T03:45:25.739417543Z 2016-12-12 03:45:25.739311 I | etcdserver: snapshot count = 10000\r\n2016-12-12T03:45:25.739420643Z 2016-12-12 03:45:25.739319 I | etcdserver: advertise client URLs = http://127.0.0.1:2379\r\n2016-12-12T03:45:25.739437943Z 2016-12-12 03:45:25.739323 I | etcdserver: initial advertise peer URLs = http://localhost:2380\r\n2016-12-12T03:45:25.739442243Z 2016-12-12 03:45:25.739376 I | etcdserver: initial cluster = etcd=http://localhost:2380\r\n2016-12-12T03:45:25.981901373Z 2016-12-12 03:45:25.981795 C | etcdserver: create wal error: rename /mnt/data/member/wal.tmp /mnt/data/member/wal: permission denied\r\n```\r\n\r\nI don't understand why `etcd` got permission denied error as the directories under `/mnt/data` are created by `etcd` itself."},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/266503064","html_url":"https://github.com/coreos/etcd/issues/6984#issuecomment-266503064","issue_url":"https://api.github.com/repos/coreos/etcd/issues/6984","id":266503064,"user":{"login":"gyuho","id":6799218,"avatar_url":"https://avatars.githubusercontent.com/u/6799218?v=3","gravatar_id":"","url":"https://api.github.com/users/gyuho","html_url":"https://github.com/gyuho","followers_url":"https://api.github.com/users/gyuho/followers","following_url":"https://api.github.com/users/gyuho/following{/other_user}","gists_url":"https://api.github.com/users/gyuho/gists{/gist_id}","starred_url":"https://api.github.com/users/gyuho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyuho/subscriptions","organizations_url":"https://api.github.com/users/gyuho/orgs","repos_url":"https://api.github.com/users/gyuho/repos","events_url":"https://api.github.com/users/gyuho/events{/privacy}","received_events_url":"https://api.github.com/users/gyuho/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T17:59:26Z","updated_at":"2016-12-12T17:59:26Z","body":"It depends on your linux user setup. The process that runs etcd should be able to read, write the data directory. etcd doesn't have control over it."}}
{"actor":{"display_login":"gyuho"}}