From ffb879c6e61f672bbea8fb93d547cc64cc85a20c Mon Sep 17 00:00:00 2001 From: Takashi Idobe Date: Wed, 13 May 2020 05:35:42 -0500 Subject: [PATCH] Adding --enable-v2=true flag to README.md (#1537) Without supplying the --enable-v2=true flag to etcd on startup, patroni cannot find etcd to run. after running `etcd --data-dir=data/etcd` in one terminal and `patroni postgres0.yaml` in another terminal, etcd starts fine, but the postgres instance cannot find etcd. ``` patroni postgres0.yaml 2020-05-09 15:58:48,560 ERROR: Failed to get list of machines from http://127.0.0.1:2379/v2: EtcdException('Bad response : 404 page not found\n') 2020-05-09 15:58:48,560 INFO: waiting on etcd ``` If etcd is passed the flag `--enable-v2=true` on startup, everything works fine. --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 0cc2baaf..d305f8ba 100644 --- a/README.rst +++ b/README.rst @@ -124,7 +124,7 @@ Running and Configuring To get started, do the following from different terminals: :: - > etcd --data-dir=data/etcd + > etcd --data-dir=data/etcd --enable-v2=true > ./patroni.py postgres0.yml > ./patroni.py postgres1.yml