Attempt to create a secondary node instead renames the first node (follow-up to #647) #649
-
(following the same environment from #647 ) I am attempting to add a secondary node on a different host - however, when I do, the first node is renamed. So I have two questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I see the following:
And then
And my first diagnostic is that you somehow did copy all your configuration and state files from the first node in the second node. You're not creating a new node from scratch, you're reusing the first node as the second node on a different host, but will all the same pg_autoctl internal files again. Confusing. |
Beta Was this translation helpful? Give feedback.
-
First, thanks to @DimCitus pointing out that the configuration seemed the same, I was actually running the command on the first (primary) node. So I switched to the secondary node. On the secondary node, I encountered another problem where pg_autoctl could not connect to the primary. I solved this second problem by changing a default rule in pg_hba.conf that was requiring all incoming connections to use a password, despite various other rules that set the replicator to trust mode. |
Beta Was this translation helpful? Give feedback.
First, thanks to @DimCitus pointing out that the configuration seemed the same, I was actually running the command on the first (primary) node. So I switched to the secondary node.
On the secondary node, I encountered another problem where pg_autoctl could not connect to the primary. I solved this second problem by changing a default rule in pg_hba.conf that was requiring all incoming connections to use a password, despite various other rules that set the replicator to trust mode.