Обсуждение: Patroni issue

Поиск
Список
Период
Сортировка

Patroni issue

От
Deepak tyagi
Дата:
Hi,

I am getting below highlighted issue while starting the patroni, so i need an advice, how to resolve it?

 
 
 Error :
image.png
 #systemctl status patroni
patroni.service - Runners to orchestrate a high-availability PostgreSQL
   Loaded: loaded (/etc/systemd/system/patroni.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-12-29 17:34:55 EST; 3s ago
 Main PID: 9658 (patroni)
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/patroni.service
           └─9658 /usr/bin/python3 /usr/bin/patroni /etc/patroni.yml

Dec 29 17:34:55  systemd[1]: Started Runners to orchestrate a high-availability PostgreSQL.
Dec 29 17:34:55  patroni[9658]: 2020-12-29 17:34:55,743 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=0, statu>
Dec 29 17:34:55  patroni[9658]: 2020-12-29 17:34:55,743 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=0, statu>
Dec 29 17:34:55  patroni[9658]: 2020-12-29 17:34:55,744 ERROR: Failed to get list of machines from http://localhost:80/v2: MaxRetry>
Dec 29 17:34:55  patroni[9658]: 2020-12-29 17:34:55,744 INFO: waiting on etcd

ETCD status:

  systemctl status etcd
● etcd.service - Etcd Server
   Loaded: loaded (/usr/lib/systemd/system/etcd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-12-29 17:01:58 EST; 4s ago
 Main PID: 10826 (etcd)
    Tasks: 13 (limit: 4915)
   CGroup: /system.slice/etcd.service
           └─10826 /usr/sbin/etcd

Dec 29 17:01:57 vtststmost3 etcd[10826]: listening for peers on 127.0.0.1:2380
Dec 29 17:01:58 vtststmost3 bash[10826]: raft2020/12/29 17:01:58 INFO: 8e9e05c52164694d is starting a new election at term 5
Dec 29 17:01:58 vtststmost3 bash[10826]: raft2020/12/29 17:01:58 INFO: 8e9e05c52164694d became candidate at term 6
Dec 29 17:01:58 vtststmost3 bash[10826]: raft2020/12/29 17:01:58 INFO: 8e9e05c52164694d received MsgVoteResp from 8e9e05c52164694d at term 6
Dec 29 17:01:58 vtststmost3 bash[10826]: raft2020/12/29 17:01:58 INFO: 8e9e05c52164694d became leader at term 6
Dec 29 17:01:58 vtststmost3 bash[10826]: raft2020/12/29 17:01:58 INFO: raft.node: 8e9e05c52164694d elected leader 8e9e05c52164694d at term 6
Dec 29 17:01:58 vtststmost3 etcd[10826]: published {Name:default ClientURLs:[http://localhost:2379]} to cluster cdf818194e3a8c32
Dec 29 17:01:58 vtststmost3 etcd[10826]: ready to serve client requests
Dec 29 17:01:58 vtststmost3 systemd[1]: Started Etcd Server.
Dec 29 17:01:58 vtststmost3 etcd[10826]: serving insecure client requests on 127.0.0.1:2379, this is strongly discouraged!  

Thanks & Regards,
Deepak Tyagi
Вложения

Re: Patroni issue

От
Tom Lane
Дата:
Deepak tyagi <deepaktyagi454@gmail.com> writes:
> I am getting below highlighted issue while starting the patroni, so i need
> an advice, how to resolve it?

I know zero about Patroni, but I can't help noticing that this:

> Dec 29 17:34:55  patroni[9658]: 2020-12-29 17:34:55,744 ERROR: Failed to
> get list of machines from http://localhost:80/v2: MaxRetry>

suggests that patroni is trying to contact a server on port 80,
while this:

> Dec 29 17:01:58 vtststmost3 etcd[10826]: serving insecure client requests
> on 127.0.0.1:2379, this is strongly discouraged!

suggests that the server is listening on port 2379.  So it'd seem
that one or the other is misconfigured.

In any case, this problem has got basically nothing to do with
Postgres.  Try asking in a patroni-related forum.

            regards, tom lane