Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimplement Patroni support in new anydbver impl #20

Closed
guriandoro opened this issue Nov 7, 2023 · 1 comment
Closed

Reimplement Patroni support in new anydbver impl #20

guriandoro opened this issue Nov 7, 2023 · 1 comment

Comments

@guriandoro
Copy link
Contributor

We used to be able to have Patroni deployments:

./anydbver deploy \
node0 pg:13 patroni \
node1 pg:13 master:node0 patroni etcd-ip:node0 \
node2 pg:13 master:node0 patroni etcd-ip:node0 

But it seems after the migration to the new script, we are having issues:

[root@node1 ~]# patronictl -c /etc/patroni/cluster1-1.yml list
+ Cluster: stampede (7298832024534509405) ---------+----+-----------+-----------------+
| Member     | Host       | Role    | State        | TL | Lag in MB | Pending restart |
+------------+------------+---------+--------------+----+-----------+-----------------+
| cluster1-0 | 172.28.0.2 | Leader  | running      |  1 |           | *               |
| cluster1-1 | 172.28.0.3 | Replica | start failed |    |   unknown |                 |
+------------+------------+---------+--------------+----+-----------+-----------------+

The errors are due to:

[root@node1 ~]# cat /var/lib/pgsql/13/data/log/postgresql-Tue.log
...
2023-11-07 21:17:27.884 UTC [2848] ERROR:  cannot execute CREATE ROLE in a read-only transaction
2023-11-07 21:17:27.884 UTC [2848] STATEMENT:  CREATE USER replicator WITH REPLICATION ENCRYPTED PASSWORD 'verysecretpassword1^';
2023-11-07 21:17:28.750 UTC [2045] LOG:  received fast shutdown request
2023-11-07 21:17:28.752 UTC [2045] LOG:  aborting any active transactions
2023-11-07 21:17:28.752 UTC [2882] FATAL:  terminating connection due to administrator command
2023-11-07 21:17:28.752 UTC [2051] FATAL:  terminating walreceiver process due to administrator command
2023-11-07 21:17:28.754 UTC [2048] LOG:  shutting down
2023-11-07 21:17:28.839 UTC [2045] LOG:  database system is shut down

Let me know if I can help with anything.

@guriandoro
Copy link
Contributor Author

Correction, I was able to start one using implicit latest (15) versions:

./anydbver deploy node0 pg patroni node1 pg master:node0 patroni etcd-ip:node0 node2 pg master:node0 patroni etcd-ip:node0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant