Comments (9)
git-version was introduced in 5a99c5a. But I do not see where it is created.
from pg_auto_failover.
Hi @lgammo ; the only build system supported for the project is the Makefile. Please see about using the Makefile to drive your work there, or at least to create the git version files. See make version
for instance.
from pg_auto_failover.
Thanks for the reply.
- I was following the tutorial, which did not mention anything about building anything.
- I commented out the line that copies git-version.h in the top Dockerfile. That seems to get things to compile and build.
- I did build using make at the top of the repo.
- The build system expects postgres to be installed natively for some reason.
- Once I disabled the copy of git-version.h in the Dockerfile, the tutorial did build and I got the images and contains and I managed to get them started.
- HOWEVER, the monitor container failed. When I did this step:
- docker compose exec app psql' from the tutorial, I got:
psql: error: connection to server at "node1" (172.21.0.3), port 5432 failed: FATAL: no pg_hba.conf entry for host "172.21.0.2", user "tutorial", database "tutorial", SSL encryption
Any ideas?
from pg_auto_failover.
- I was following the tutorial, which did not mention anything about building anything.
Oh I see. That's where the docker-compose build
comes from. Did you run that command from the docs/tutorial
sub-directory of the source checkout like the tutorial sayth you should? It seems to me that the errors you had could be explained easily if you mistakenly ran that command at the top-level directory from the checkout.
- The build system expects postgres to be installed natively for some reason.
Sure, the source code for pg_auto_failover has some build-time dependencies with PostgreSQL development headers and libs. Depending on your packaging system and OS of choice, that might mean installing all of the Postgres packages is required.
- docker compose exec app psql' from the tutorial, I got:
psql: error: connection to server at "node1" (172.21.0.3), port 5432 failed: FATAL: no pg_hba.conf entry for host "172.21.0.2", user "tutorial", database "tutorial", SSL encryption
I will need more information to be able to debug that one. First, let's make sure you are running the actual tutorial commands from the right place.
from pg_auto_failover.
I am running the tutorial from pg_auto_failover/docs/tutorial. In one terminal I do ' docker compose up app monitor node1 node2
', and in an other terminal I do ' docker compose exec app psql' and that's when I get:
psql: error: connection to server at "node1" (172.21.0.4), port 5432 failed: FATAL: no pg_hba.conf entry for host "172.21.0.2", user "tutorial", database "tutorial", SSL encryption
from pg_auto_failover.
Logs from the 'docker compose up app monitor node1 node2' command.
from pg_auto_failover.
node2.log
monitor.log
node1.log
from pg_auto_failover.
I put the logs from the entire set of dockers images in the hope they are useful. The logs from the 'docker logs tutorial-app-1' container are like this:
...logs removed...
2023-01-26 12:52:19.060851
2023-01-26 13:02:19.121722
2023-01-26 13:12:19.210549
2023-01-26 13:22:19.264046
2023-01-26 13:32:19.293530
2023-01-26 13:42:19.342018
2023-01-26 13:52:19.432689
2023-01-26 14:02:19.513564
2023-01-26 14:12:19.613798
2023-01-26 14:22:19.714192
2023-01-26 14:32:19.787126
2023-01-26 14:42:19.887374
2023-01-26 14:52:19.959306
2023-01-26 15:02:20.026578
2023-01-26 15:12:20.037634
2023-01-26 15:22:20.119609
2023-01-26 15:32:20.189649
2023-01-26 15:42:20.289967
And it stopped after that.
from pg_auto_failover.
The tutorial docker images appear to be fine and I am able to perform switchover and other tests.
Thanks.
from pg_auto_failover.
Related Issues (20)
- Barman should automatically ignore primary_conninfo if running as primary HOT 2
- question: Multiple Standbys Architecture with 3 standby nodes, one async HOT 3
- Can't we use databases other than citus to achieve high availability? HOT 1
- pg_autoctl version does not mention Postgres 15 compatibility HOT 1
- About Reset Node ID and pg_auto_failover to initial state. HOT 5
- default_transaction_read_only is not set to on for standbys
- Failover for Citus doesn't support pg_dist_poolinfo (connection pooling)
- Primary Server not Push pg_wal to Standby Server HOT 2
- Version 2 and Ubuntu 18.04
- pg_auto_failover tunes postgres parameters based on the VM size instead of the container resources HOT 1
- Create Second database with pg_auto_failover & citus HOT 1
- Docker Swarm - XDG_CONFIG_HOME and XDG_DATA_HOME needs to be persistent? HOT 2
- "pg_autoctl create monitor" fails with multiple errors HOT 1
- "pg_autoctl show state --json" provides an invalid json output if a connection retry takes place HOT 1
- pg_autoctl disable maintenance twice HOT 1
- e
- ERROR history file "00000202.history" contains 1024 lines, pg_autoctl only supports up to 1023 lines HOT 1
- all pg_autoctl file under /tmp directory is Cleanup HOT 1
- pg_autoctl.state of Standby site is removed accidentally
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg_auto_failover.