[GH-ISSUE #1470] Slow login for new users #2485

Open
opened 2026-08-05 00:47:25 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @TSJasonH on GitHub (Jan 15, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1470

Describe the problem
Netbird interface is slow to load for new users logging in for the first time. (4-5 minutes)

To Reproduce
Launch Netbird from Authentik.

Expected behavior
The netbird gui will load promptly for the user

Additional context
Based on the logs from the management docker I believe this is a problem with the sqlite database.

These entries flood the management server logs:

management-1  | 2024-01-15T21:23:00Z ERRO management/server/event.go:53: received an error while storing an activity event, error: database is locked
management-1  | 2024-01-15T21:23:00Z ERRO management/server/event.go:53: received an error while storing an activity event, error: database is locked
management-1  | 2024-01-15T21:23:00Z ERRO management/server/event.go:53: received an error while storing an activity event, error: database is locked

If I had to guess there may be too many groups in the token for the sqlite db to deal with.
I am sending the user's groups with the claim (include claims in id_token).

Originally created by @TSJasonH on GitHub (Jan 15, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1470 **Describe the problem** Netbird interface is slow to load for new users logging in for the first time. (4-5 minutes) **To Reproduce** Launch Netbird from Authentik. **Expected behavior** The netbird gui will load promptly for the user **Additional context** Based on the logs from the management docker I believe this is a problem with the sqlite database. These entries flood the management server logs: ``` management-1 | 2024-01-15T21:23:00Z ERRO management/server/event.go:53: received an error while storing an activity event, error: database is locked management-1 | 2024-01-15T21:23:00Z ERRO management/server/event.go:53: received an error while storing an activity event, error: database is locked management-1 | 2024-01-15T21:23:00Z ERRO management/server/event.go:53: received an error while storing an activity event, error: database is locked ``` If I had to guess there may be too many groups in the token for the sqlite db to deal with. I am sending the user's groups with the claim (include claims in id_token).
saavagebueno added the bugmanagement-serviceself-hostingstore labels 2026-08-05 00:47:25 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#2485