Skip to content

pgwatch uses inactive session #816

@michael-zhasil-pfx

Description

@michael-zhasil-pfx

Describe the bug
In some scenarios, there is a loss of connection between database and pgwatch.
In that time in both pgwatch and database logs there is a log variant on FATAL: password authentication failed for user "pgwatch"
While investigating I've checked DNS, IPs, password etc.
I've fond idle pgwatch connection in db and removed it but the problem still remained.
pgwatch restart fixed the issue at least for a while

To Reproduce
I am unable to tell how exactly the error occurs

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Version pgwatch: 3.5.0
  • Version db: 15, 16, 17

Additional context
pgwatch seems to try to use and old connection from it's memmory, that does not exists in the database no more.
Creating new connection fixes the issue

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions