Project

General

Profile

Actions

Architecture #16051

open

Re-authentication error in postgres doesn't kill existing pool

Architecture #16051: Re-authentication error in postgres doesn't kill existing pool

Added by Elaad FURREEDAN about 6 years ago. Updated 5 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Server components
Target version:
Effort required:
Name check:
To do
Fix check:
To do
Regression:

Files

thread_jvm.log (125 KB) thread_jvm.log Elaad FURREEDAN, 2019-10-24 14:30

Related issues 2 (0 open2 closed)

Related to Rudder - Bug #16055: java.lang.Error null in PooledConnectionProviderRejectedActions
Related to Rudder - Bug #12489: Cannot login into 2 different Rudder with the same URL - apocalypse ensuesRejectedActions

Updated by Nicolas CHARLES about 6 years ago Actions #1

there are no obvious locking there

Updated by Elaad FURREEDAN about 6 years ago Actions #2

  • File before_error.log added

Updated by Elaad FURREEDAN about 6 years ago Actions #3

  • File deleted (before_error.log)

Updated by François ARMAND about 6 years ago Actions #4

  • Related to Bug #16055: java.lang.Error null in PooledConnectionProvider added

Updated by François ARMAND about 6 years ago Actions #5

  • Subject changed from Rudder is very slow to Authentication error to postgres cause major slowdown
  • Category set to System integration
  • Target version changed from 6.0.0~beta1 to 6.0.0

The problem is linked to Postgres DB connexion dying and the pool does not seems to notice. We can see it very clearly in the log here: https://issues.rudder.io/attachments/1549

So we have the connexion starting to fails around 2019-10-24 12:35:38+0200 - most likely rudder agent is running and reconfigured something on pg, restarting the db after that.
Then, at 2019-10-24 14:16:20+0200 we finaly have:

ERROR com.normation.rudder.rest.v1.RestTechniqueReload - Root exception cause was:
org.postgresql.util.PSQLException: FATAL: password authentication failed for user "rudder" 
    at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:520)
    at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:141)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:192)

And then, everything related to PG fails. It's as if PG was restarted to take care of new auth info, but the connexion didn't noticed the pb. Moreover, Rudder should have been restarted to get the new info, but wasn't.

Updated by Elaad FURREEDAN about 6 years ago Actions #6

  • Related to Bug #12489: Cannot login into 2 different Rudder with the same URL - apocalypse ensues added

Updated by Elaad FURREEDAN about 6 years ago Actions #7

When I have two Rudder's env running, after ~10mins the bug occurs

Updated by Elaad FURREEDAN about 6 years ago Actions #8

  • Category changed from System integration to Web - Technique editor

Updated by Alexis Mousset almost 6 years ago Actions #9

  • Target version changed from 6.0.0 to 6.0.1

Updated by Vincent MEMBRÉ almost 6 years ago Actions #10

  • Target version changed from 6.0.1 to 6.0.2

Updated by Vincent MEMBRÉ almost 6 years ago Actions #11

  • Target version changed from 6.0.2 to 6.0.3

Updated by Vincent MEMBRÉ over 5 years ago Actions #12

  • Target version changed from 6.0.3 to 6.0.4

Updated by Vincent MEMBRÉ over 5 years ago Actions #13

  • Target version changed from 6.0.4 to 6.0.5

Updated by Vincent MEMBRÉ over 5 years ago Actions #14

  • Target version changed from 6.0.5 to 6.0.6

Updated by Vincent MEMBRÉ over 5 years ago Actions #15

  • Target version changed from 6.0.6 to 6.0.7

Updated by Vincent MEMBRÉ over 5 years ago Actions #16

  • Target version changed from 6.0.7 to 6.0.8

Updated by François ARMAND over 5 years ago Actions #17

  • Subject changed from Authentication error to postgres cause major slowdown to Re-authentication error in postgres doesn't kill existing pool
  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins
  • Priority changed from 0 to 46

Updated by Vincent MEMBRÉ over 5 years ago Actions #18

  • Target version changed from 6.0.8 to 6.0.9
  • Priority changed from 46 to 45

Updated by Vincent MEMBRÉ about 5 years ago Actions #19

  • Target version changed from 6.0.9 to 6.0.10
  • Priority changed from 45 to 44

Updated by Vincent MEMBRÉ about 5 years ago Actions #20

  • Target version changed from 6.0.10 to 798
  • Priority changed from 44 to 43

Updated by Benoît PECCATTE over 4 years ago Actions #21

  • Target version changed from 798 to 6.1.14

Updated by Vincent MEMBRÉ over 4 years ago Actions #22

  • Target version changed from 6.1.14 to 6.1.15

Updated by Vincent MEMBRÉ over 4 years ago Actions #23

  • Target version changed from 6.1.15 to 6.1.16

Updated by Vincent MEMBRÉ about 4 years ago Actions #24

  • Target version changed from 6.1.16 to 6.1.17

Updated by Vincent MEMBRÉ about 4 years ago Actions #25

  • Target version changed from 6.1.17 to 6.1.18

Updated by Vincent MEMBRÉ almost 4 years ago Actions #26

  • Target version changed from 6.1.18 to 6.1.19

Updated by Alexis Mousset almost 4 years ago Actions #27

  • Category changed from Web - Technique editor to Server components

Updated by François ARMAND almost 4 years ago Actions #28

  • Tracker changed from Bug to Architecture
  • Severity deleted (Major - prevents use of part of Rudder | no simple workaround)
  • User visibility deleted (Operational - other Techniques | Rudder settings | Plugins)
  • Priority deleted (43)

Updated by Vincent MEMBRÉ over 3 years ago Actions #29

  • Target version changed from 6.1.19 to 6.1.20

Updated by Vincent MEMBRÉ over 3 years ago Actions #30

  • Target version changed from 6.1.20 to 6.1.21

Updated by Vincent MEMBRÉ over 3 years ago Actions #31

  • Target version changed from 6.1.21 to old 6.1 issues to relocate

Updated by Alexis Mousset over 2 years ago Actions #32

  • Target version changed from old 6.1 issues to relocate to 8.0.0~alpha1

Updated by Vincent MEMBRÉ over 2 years ago Actions #33

  • Target version changed from 8.0.0~alpha1 to 8.0.0~beta1

Updated by Alexis Mousset over 2 years ago Actions #34

  • Target version changed from 8.0.0~beta1 to 8.1.0~alpha1

Updated by Vincent MEMBRÉ almost 2 years ago Actions #35

  • Target version changed from 8.1.0~alpha1 to 8.1.0~beta1

Updated by Vincent MEMBRÉ over 1 year ago Actions #36

  • Target version changed from 8.1.0~beta1 to 8.1.0~beta2

Updated by Vincent MEMBRÉ over 1 year ago Actions #37

  • Target version changed from 8.1.0~beta2 to 8.1.0~rc1

Updated by Vincent MEMBRÉ over 1 year ago Actions #38

  • Target version changed from 8.1.0~rc1 to 8.1.0

Updated by Vincent MEMBRÉ over 1 year ago Actions #39

  • Target version changed from 8.1.0 to 8.1.1

Updated by Vincent MEMBRÉ over 1 year ago Actions #40

  • Target version changed from 8.1.1 to 8.1.2

Updated by Vincent MEMBRÉ over 1 year ago Actions #41

  • Target version changed from 8.1.2 to 8.1.3

Updated by Vincent MEMBRÉ over 1 year ago Actions #42

  • Target version changed from 8.1.3 to 8.1.4

Updated by Vincent MEMBRÉ over 1 year ago Actions #43

  • Target version changed from 8.1.4 to 8.1.5

Updated by Vincent MEMBRÉ over 1 year ago Actions #44

  • Target version changed from 8.1.5 to 8.1.6

Updated by Vincent MEMBRÉ over 1 year ago Actions #45

  • Target version changed from 8.1.6 to 8.1.7

Updated by Vincent MEMBRÉ about 1 year ago Actions #46

  • Target version changed from 8.1.7 to 8.1.8

Updated by Vincent MEMBRÉ about 1 year ago Actions #47

  • Target version changed from 8.1.8 to 8.1.9

Updated by Vincent MEMBRÉ 12 months ago Actions #48

  • Target version changed from 8.1.9 to 8.1.10

Updated by Vincent MEMBRÉ 12 months ago Actions #49

  • Target version changed from 8.1.10 to 8.1.11

Updated by Vincent MEMBRÉ 10 months ago Actions #50

  • Target version changed from 8.1.11 to 8.1.12

Updated by Vincent MEMBRÉ 9 months ago Actions #51

  • Target version changed from 8.1.12 to 8.1.13

Updated by Vincent MEMBRÉ 7 months ago Actions #52

  • Target version changed from 8.1.13 to 8.2.6

Updated by Vincent MEMBRÉ 6 months ago Actions #53

  • Target version changed from 8.2.6 to 8.2.7

Updated by Vincent MEMBRÉ 6 months ago Actions #54

  • Target version changed from 8.2.7 to 8.2.8

Updated by Félix DALLIDET 4 months ago Actions #55

  • Target version changed from 8.2.8 to 8.2.9

Updated by Vincent MEMBRÉ 2 months ago Actions #56

  • Target version changed from 8.2.9 to 1133

Updated by Alexis Mousset 24 days ago Actions #57

  • Target version changed from 1133 to 8.3.6

Updated by Vincent MEMBRÉ 5 days ago Actions #58

  • Target version changed from 8.3.6 to 8.3.7
Actions

Also available in: PDF Atom