goauthentik / goauthentik/authentik

PostgreSQL: WARNING: you don't own a lock of type ExclusiveLock

Open
#24,155 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 1h
Merged PRs (30d)
644

Description

### Describe the bug

Postgres Log getting spammed with following error which caused /var to fill up and postgres/authentik to halt:

WARNING: you don't own a lock of type ExclusiveLock

This seems to be a re-ocurrence of #17770 / #17993

### How to reproduce

Use authentik 2026.5.5 on docker with postgresql

### Expected behavior

Not spam the log

### Screenshots

_No response_

### Additional context

_No response_

### Deployment Method

Docker

### Version

2026.5.5

### Relevant log output

```shell
2026-07-17 07:45:05.151 CEST [3320107] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.157 CEST [3320086] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.162 CEST [3320114] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.216 CEST [3320091] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.216 CEST [3320097] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.218 CEST [3320109] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.220 CEST [3320092] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.221 CEST [3320106] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.227 CEST [3320113] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.228 CEST [3320101] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.240 CEST [3320105] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.267 CEST [3320082] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
2026-07-17 07:45:05.285 CEST [3320093] authentik@authentik WARNING: you don't own a lock of type ExclusiveLock
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the warning with authentik 2026.5.5 in Docker using PostgreSQL, then compare the behavior with issues #17770 and #17993. Trace the operation that produces the ExclusiveLock warnings; done means the warning no longer floods the PostgreSQL log or causes /var and authentik to halt.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, postgresql, python
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.