-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
deploy_pgcluster.yml stucks at Wait for port 8008 to become open on the host job #747
Comments
Hello Please attache Patroni log.
|
in the attachment |
Full log please.
|
Are there logs in the /var/log/postgresql directory? |
Yes, two files postgresql-16-main.log: postgresql-Wed.log - in the attachment |
Check your inventory file for ip addresses
See example https://github.com/vitabaks/postgresql_cluster/blob/master/automation/inventory |
Inventory file looks like that:
Addresses and cluster name has been changed |
Please attach /etc/postgresql/16/main/pg_hba.conf |
Hmm, the pg_hba.conf file that you sent does not really contain obvious errors related to specifying the hostname and CIDR mask, as indicated in the logs:
|
Ok, should i use remove_cluster.yml playbook to delete all installations and reinstall cluster again? |
Try stop the patroni service and execute initdb manually.
Or
|
Yes, IP only |
After command
After restarting patroni:
|
OK, delete the cluster entry from DCS and postgres
then run the playbook again. |
Playbook stuck at the same job. full output of
postgresql logs are empty |
|
|
|
This command helped to remove existed patroni installation. Thanks so much for help |
Hello.
I'm new to patroni cluster, and trying to install cluster on 3 local VM with existing consul cluster without balancer.
I have 3 VMs, one is in master state and two is replicas.
All VMs has same variable:
postgresql_exists: false
Almost all variables are default, excluding postgresql_data_dir:
postgresql_data_dir: "/data/{{ postgresql_version }}/{{ postgresql_cluster_name }}"
When I run deploy_pgcluster.yml playbook, play stucks at Wait for port 8008 to become open on the host job.
I see 8008 port opened on host:
tcp LISTEN 0 5 0.0.0.0:8008 0.0.0.0:* users:(("patroni",pid=52434,fd=4))
but postgresql is not started properly, I see such error in journalctl
As i get it suggests that postgresql wasn't initialized, so /data/16/main directory is empty.
How to fix this? Maybe I've missed any variables?
The text was updated successfully, but these errors were encountered: