-
Notifications
You must be signed in to change notification settings - Fork 820
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
3.2.2 throwing unexpected exception #3066
Comments
Something is really strange here, according to the stack trace this node is running in a |
@einhverfr please provide Patroni logs from the moment it started and also postgres logs from exactly this moment. |
mea culpa! I sent the show-config from the wrong cluster!
|
(working on getting the logs) |
2024-05-16 04:10:10,618 INFO: Selected new etcd server[redacted] |
@einhverfr I would also like to see postgres logs. |
ok will do |
What happened?
This often happens when Patroni 3.2.2 starts.
establishing a new patroni heartbeat connection to postgres
2024-05-10 05:27:26,921 INFO: PostgreSQL is still starting up, 87 seconds until timeout
2024-05-10 05:27:32,038 INFO: Lock owner: DRS-INDBPG-01; I am DRS-INDBPG-01
2024-05-10 05:27:32,108 ERROR: Unexpected exception
Traceback (most recent call last):
File "C:\PES\patroni\patroni\ha.py", line 1972, in run_cycle
info = self._run_cycle()
^^^^^^^^^^^^^^^^^
File "C:\PES\patroni\patroni\ha.py", line 1886, in _run_cycle
msg = self.process_healthy_cluster()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PES\patroni\patroni\ha.py", line 1427, in process_healthy_cluster
return self.enforce_follow_remote_member(msg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PES\patroni\patroni\ha.py", line 821, in enforce_follow_remote_member
return self.follow(demote_reason, message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PES\patroni\patroni\ha.py", line 671, in follow
change_required, restart_required = self.state_handler.config.check_recovery_conf(node_to_follow)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\PES\patroni\patroni\postgresql\config.py", line 797, in check_recovery_conf
primary_conninfo = params['primary_conninfo']
~~~~~~^^^^^^^^^^^^^^^^^^^^
File "C:\PES\patroni\patroni\collections.py", line 150, in getitem
return self._values[key.lower()][1]
~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'primary_conninfo'
2024-05-10 05:27:32,117 INFO: Unexpected exception raised, please report it as a BUG
The same stack trace happens when the connection fails. Environment is on Windows using the Patroni Environment Setup package from Cybertec with their bundled Python libraries
How can we reproduce it (as minimally and precisely as possible)?
My best guess is to install on Windows the PES and Python dependencies as bundled. Then set up Patroni without passwords but require them in the pg_hba.conf. The stack trace will follow the fe_sendauth no password supplied messages.
What did you expect to happen?
I didn't expect this message in the logs.... The message seems harmless. It looks like a problem handling bad connections but the recovery seems fine.
Patroni/PostgreSQL/DCS version
Patroni configuration file
patronictl show-config
Patroni log files
PostgreSQL log files
Nothing relevant in the PostgreSQL log files. This sometimes appears to happen more consistently when PostgreSQL cannot be connected to.
Have you tried to use GitHub issue search?
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: