[GH-ISSUE #2400] (Re)Loading the page take so much time #4877

Closed
opened 2026-08-05 01:00:10 -04:00 by saavagebueno · 9 comments
Owner

Originally created by @EmbeddedAndMore on GitHub (Aug 6, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2400

Describe the problem

whenever I log in and try to open the peers/users page for the first time it sometimes takes more than 45 seconds. After that wen if I don't refresh the page and just go between pages using the left menu everything seems fast. in the attached log file you can see the logs generated by refreshing the page. using timestamp you can see it took 35sec to be loaded completely.

To Reproduce

I am using the self-hosted version with CockroachDB as a database and (Azure IntraID + Zitadel) as an IDP.
To reproduce (I have 17 peers and 12 users)

  1. log out
  2. close the tab
  3. login
  4. go to domain/peers

Expected behavior

Have the peers with latest known state as soon as possible

Are you using NetBird Cloud?

Self-hosted

NetBird version

v0.28.4

netbird.management.log

Originally created by @EmbeddedAndMore on GitHub (Aug 6, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2400 **Describe the problem** whenever I log in and try to open the peers/users page for the first time it sometimes takes more than **45** seconds. After that wen if I don't refresh the page and just go between pages using the left menu everything seems fast. in the attached log file you can see the logs generated by refreshing the page. using timestamp you can see it took **35sec** to be loaded completely. **To Reproduce** I am using the self-hosted version with CockroachDB as a database and (Azure IntraID + Zitadel) as an IDP. To reproduce (I have 17 peers and 12 users) 1. log out 2. close the tab 3. login 4. go to `domain/peers` **Expected behavior** Have the peers with latest known state as soon as possible **Are you using NetBird Cloud?** Self-hosted **NetBird version** v0.28.4 [netbird.management.log](https://github.com/user-attachments/files/16515614/netbird.management.log)
saavagebueno added the dashboardwaiting-feedback labels 2026-08-05 01:00:10 -04:00
Author
Owner

@svardie commented on GitHub (Aug 12, 2024):

I'm too facing very slow web-ui after recent update.

<!-- gh-comment-id:2283404428 --> @svardie commented on GitHub (Aug 12, 2024): I'm too facing very slow web-ui after recent update.
Author
Owner

@svardie commented on GitHub (Aug 14, 2024):

Describe the problem

Very slow admin panel web-ui.

To Reproduce

Do anything on web-ui.

Expected behavior

It was working fine and suddenly became very slow.

Are you using NetBird Cloud?

Self-hosted

NetBird version

v0.28.7. Latest server containers pulled.

<!-- gh-comment-id:2290221976 --> @svardie commented on GitHub (Aug 14, 2024): **Describe the problem** Very slow admin panel web-ui. **To Reproduce** Do anything on web-ui. **Expected behavior** It was working fine and suddenly became very slow. **Are you using NetBird Cloud?** Self-hosted **NetBird version** v0.28.7. Latest server containers pulled.
Author
Owner

@svardie commented on GitHub (Aug 15, 2024):

Снимок экрана 2024-08-16 093700
Problem solved. It was bad users, which caused errors in cache retrieve attempts.

<!-- gh-comment-id:2292540042 --> @svardie commented on GitHub (Aug 15, 2024): ![Снимок экрана 2024-08-16 093700](https://github.com/user-attachments/assets/6f9ea963-5e0c-463c-a0d4-62d560d19bbe) Problem solved. It was bad users, which caused errors in cache retrieve attempts.
Author
Owner

@EmbeddedAndMore commented on GitHub (Aug 29, 2024):

@svardie could you elaborate a little? what exactly are "Bad Users"?
I now have 16 users and 25 Peers and it takes 2 min for the first loading. and Netbird Management is hammering the CochroachDB. don't know exactly if it is CRDB's fault or Netbird's.

<!-- gh-comment-id:2317039305 --> @EmbeddedAndMore commented on GitHub (Aug 29, 2024): @svardie could you elaborate a little? what exactly are "Bad Users"? I now have 16 users and 25 Peers and it takes 2 min for the first loading. and Netbird Management is hammering the CochroachDB. don't know exactly if it is CRDB's fault or Netbird's.
Author
Owner

@svardie commented on GitHub (Aug 29, 2024):

@EmbeddedAndMore I relaunched netbird containers on server without -d key, and watched in realtime what was happening when i'm doing something on web-ui. That's how i noticed some error messages on screenshot, which says that something wrong with users "186" and "187" in my case. Then i deleted that users from netbird and errors are gone.

I recommend doing same and watch realtime logs of containers. There are should be more convenient way to trace logs, but i don't know how.

<!-- gh-comment-id:2317557507 --> @svardie commented on GitHub (Aug 29, 2024): @EmbeddedAndMore I relaunched netbird containers on server without -d key, and watched in realtime what was happening when i'm doing something on web-ui. That's how i noticed some error messages on screenshot, which says that something wrong with users "186" and "187" in my case. Then i deleted that users from netbird and errors are gone. I recommend doing same and watch realtime logs of containers. There are should be more convenient way to trace logs, but i don't know how.
Author
Owner

@EmbeddedAndMore commented on GitHub (Aug 30, 2024):

@svardie What DB are you using? What Identity provider are you using?
Could you please tell, me how many users/peers you have and how long do its takes for the "peers" page to be loaded after logging in?

<!-- gh-comment-id:2321004211 --> @EmbeddedAndMore commented on GitHub (Aug 30, 2024): @svardie What DB are you using? What Identity provider are you using? Could you please tell, me how many users/peers you have and how long do its takes for the "peers" page to be loaded after logging in?
Author
Owner

@EmbeddedAndMore commented on GitHub (Oct 8, 2024):

FIY, It got much better when I migrated from CockroachDB to Postgres cluster
For all Benchmarks that I did on CockroachDB, the performance was worse than Postgres and the difference in the Schema made everything so hard. so I moved to Postgres once and for all to fix all my issues.

Zitadel also moved away from CRDB to Postgres.

<!-- gh-comment-id:2399792491 --> @EmbeddedAndMore commented on GitHub (Oct 8, 2024): FIY, It got much better when I migrated from CockroachDB to [Postgres cluster](https://github.com/vitabaks/postgresql_cluster) For all Benchmarks that I did on CockroachDB, the performance was worse than Postgres and the difference in the Schema made everything so hard. so I moved to Postgres once and for all to fix all my issues. [Zitadel also moved away from CRDB to Postgres. ](https://zitadel.com/blog/move-to-postgresql)
Author
Owner

@nazarewk commented on GitHub (Apr 28, 2025):

Hello @EmbeddedAndMore,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

<!-- gh-comment-id:2835663465 --> @nazarewk commented on GitHub (Apr 28, 2025): Hello @EmbeddedAndMore, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@mlsmaycon commented on GitHub (Jun 1, 2025):

closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.

<!-- gh-comment-id:2927892029 --> @mlsmaycon commented on GitHub (Jun 1, 2025): closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#4877