[GH-ISSUE #5318] Hangs on save the custom network range option #11131

Closed
opened 2026-08-05 01:28:36 -04:00 by saavagebueno · 11 comments
Owner

Originally created by @graphixillusion on GitHub (Feb 13, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5318

Describe the problem

Server hangs on network range change

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Settings ---> Network ---> Network Range'
  2. Enter the new range ex '10.10.10.0/24'
  3. Click on 'Save'
  4. Server hangs until you restart the container

Expected behavior

Change and save custom network range from web ui

Are you using NetBird Cloud?

Self-host control plane

NetBird version

0.65.0

Debug output

In the log i have this message:

management/server/account.go:2121: successfully re-allocated IPs for 1 peers in account xxxxxxxxxxxxxxxxxxxxxxxxxxx to network range 10.10.10.0/24

Originally created by @graphixillusion on GitHub (Feb 13, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5318 **Describe the problem** Server hangs on network range change **To Reproduce** Steps to reproduce the behavior: 1. Go to 'Settings ---> Network ---> Network Range' 2. Enter the new range ex '10.10.10.0/24' 3. Click on 'Save' 4. Server hangs until you restart the container **Expected behavior** Change and save custom network range from web ui **Are you using NetBird Cloud?** Self-host control plane **NetBird version** `0.65.0` **Debug output** In the log i have this message: management/server/account.go:2121: successfully re-allocated IPs for 1 peers in account xxxxxxxxxxxxxxxxxxxxxxxxxxx to network range 10.10.10.0/24
saavagebueno added the triage-needed label 2026-08-05 01:28:36 -04:00
Author
Owner

@prohand commented on GitHub (Feb 14, 2026):

Hello, same problem for me

<!-- gh-comment-id:3901599029 --> @prohand commented on GitHub (Feb 14, 2026): Hello, same problem for me
Author
Owner

@rolikeusch commented on GitHub (Feb 14, 2026):

hi, also same here.

<!-- gh-comment-id:3901715704 --> @rolikeusch commented on GitHub (Feb 14, 2026): hi, also same here.
Author
Owner

@TheOhan815 commented on GitHub (Feb 14, 2026):

Having the same issue here as well

<!-- gh-comment-id:3901926298 --> @TheOhan815 commented on GitHub (Feb 14, 2026): Having the same issue here as well
Author
Owner

@pascal-fischer commented on GitHub (Feb 14, 2026):

Hey guys, I am trying to reproduce this. Can you give me a bit more information about how your environments are configured? Did you do an upgrade? did you switch to the combined version? did you already use a proxy? what DB engine are you using? etc.?

Is there anything else in logs? Can you share e.g. the last 100 lines?

<!-- gh-comment-id:3901988154 --> @pascal-fischer commented on GitHub (Feb 14, 2026): Hey guys, I am trying to reproduce this. Can you give me a bit more information about how your environments are configured? Did you do an upgrade? did you switch to the combined version? did you already use a proxy? what DB engine are you using? etc.? Is there anything else in logs? Can you share e.g. the last 100 lines?
Author
Owner

@prohand commented on GitHub (Feb 14, 2026):

Hello,

I haven't attempted the upgrade, but I tried it on a fresh installation with the following command:

curl -fsSL https://github.com/netbirdio/netbird/releases/latest/download/getting-started.sh | bash

I've reverted to my old installation, so I can't provide any more logs.

<!-- gh-comment-id:3902010656 --> @prohand commented on GitHub (Feb 14, 2026): Hello, I haven't attempted the upgrade, but I tried it on a fresh installation with the following command: `curl -fsSL https://github.com/netbirdio/netbird/releases/latest/download/getting-started.sh | bash` I've reverted to my old installation, so I can't provide any more logs.
Author
Owner

@graphixillusion commented on GitHub (Feb 14, 2026):

I did a clean install too with the official getting-started script, leaving everything at default so traefik + proxy

<!-- gh-comment-id:3902014431 --> @graphixillusion commented on GitHub (Feb 14, 2026): I did a clean install too with the official getting-started script, leaving everything at default so traefik + proxy
Author
Owner

@pri11er commented on GitHub (Feb 14, 2026):

It is happening with a fresh installation, defaults + proxy. When you make the change the UI hangs; the logs appear to indicate the change is successful. However, when you you exit the UI and go back in, the change is not reflected.


netbird-server | 2026-02-14T14:33:22Z WARN management/internals/controllers/network_map/controller/controller.go:84: failed to parse NB_EXPERIMENT_NETWORK_MAP, using default value false: strconv.ParseBool: parsing "": invalid syntax

netbird-server | 2026-02-14T14:33:40Z INFO [context: HTTP, requestID: d688fh3eflic73afomvg] management/server/http/handlers/instance/instance_handler.go:49: instance setup status: false

netbird-server | 2026-02-14T14:34:22Z INFO [context: HTTP, requestID: d688frjeflic73afon60, accountID: d686cdjeflic7397tjk0, userID:
CiQ4ZGYxYWMxMS1hMmUyLTQ4NmEtOTRmMy01NNlMTVmZTkSHXBvY2tldGlkLWQ2ODZlcDNlZmxpYzczOTd0a21n] management/server/account.go:2121: successfully re-allocated IPs for 0 peers in account d686cdjeflic8397tjk0 to network range 10.10.0.0/24


Note: No peers have been configured at this point. Also, the network range itself does not seem to be a factor.

<!-- gh-comment-id:3902023810 --> @pri11er commented on GitHub (Feb 14, 2026): It is happening with a fresh installation, defaults + proxy. When you make the change the UI hangs; the logs appear to indicate the change is successful. However, when you you exit the UI and go back in, the change is not reflected. ----- netbird-server | 2026-02-14T14:33:22Z WARN management/internals/controllers/network_map/controller/controller.go:84: failed to parse NB_EXPERIMENT_NETWORK_MAP, using default value false: strconv.ParseBool: parsing "": invalid syntax netbird-server | 2026-02-14T14:33:40Z INFO [context: HTTP, requestID: d688fh3eflic73afomvg] management/server/http/handlers/instance/instance_handler.go:49: instance setup status: false netbird-server | 2026-02-14T14:34:22Z INFO [context: HTTP, requestID: d688frjeflic73afon60, accountID: d686cdjeflic7397tjk0, userID: CiQ4ZGYxYWMxMS1hMmUyLTQ4NmEtOTRmMy01NNlMTVmZTkSHXBvY2tldGlkLWQ2ODZlcDNlZmxpYzczOTd0a21n] management/server/account.go:2121: successfully re-allocated IPs for 0 peers in account d686cdjeflic8397tjk0 to network range 10.10.0.0/24 ---- Note: No peers have been configured at this point. Also, the network range itself does not seem to be a factor.
Author
Owner

@graphixillusion commented on GitHub (Feb 14, 2026):

I would like to add that i need to restart the container itself to make it works again: until then it hangs forever.

<!-- gh-comment-id:3902032688 --> @graphixillusion commented on GitHub (Feb 14, 2026): I would like to add that i need to restart the container itself to make it works again: until then it hangs forever.
Author
Owner

@TheOhan815 commented on GitHub (Feb 14, 2026):

Mine was a fresh install in a VPS (Ubuntu 24.04) used the install script from
the documentation. 

-------- Original Message --------
On Saturday, 02/14/26 at 08:18 Pascal Fischer @.***> wrote:

pascal-fischer left a comment (netbirdio/netbird#5318)

Hey guys, I am trying to reproduce this. Can you give me a bit more
information about how your environments are configured? Did you do an upgrade?
did you switch to the combined version? did you already use a proxy? what DB
engine are you using? etc.?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID:
@.***>

<!-- gh-comment-id:3902037873 --> @TheOhan815 commented on GitHub (Feb 14, 2026): Mine was a fresh install in a VPS (Ubuntu 24.04) used the install script from the documentation.  -------- Original Message -------- On Saturday, 02/14/26 at 08:18 Pascal Fischer ***@***.***> wrote: > **pascal-fischer** left a comment (netbirdio/netbird#5318) > > Hey guys, I am trying to reproduce this. Can you give me a bit more > information about how your environments are configured? Did you do an upgrade? > did you switch to the combined version? did you already use a proxy? what DB > engine are you using? etc.? > > — > Reply to this email directly, view it on GitHub, or unsubscribe. > You are receiving this because you commented.Message ID: > ***@***.***>
Author
Owner

@mlsmaycon commented on GitHub (Feb 14, 2026):

Thanks for reporting the issue folks. We will have to investigate and issue a fix ASAP.

<!-- gh-comment-id:3902072091 --> @mlsmaycon commented on GitHub (Feb 14, 2026): Thanks for reporting the issue folks. We will have to investigate and issue a fix ASAP.
Author
Owner

@doubleoh13 commented on GitHub (Feb 14, 2026):

If you allow for the timeout after 5 minutes, you get the following errors in the log:

netbird-server  | 2026-02-14T16:48:08Z ERRO [context: HTTP, requestID: d68ac74f8pqc73bo15qg, accountID: d688sjcf8pqc73b52d4g, userID: CgE3Eh5hdXRoZW50aWstZDY4OWw1NGY4cHFjNzNhdWtkbmc] management/server/store/sql_store.go:4030: failed to save account settings to store: context deadline exceeded
netbird-server  | 2026-02-14T16:48:08Z WARN [requestID: d68ac74f8pqc73bo15qg, accountID: d688sjcf8pqc73b52d4g, userID: CgE3Eh5hdXRoZW50aWstZDY4OWw1NGY4cHFjNzNhdWtkbmc, context: HTTP] management/server/store/sql_store.go:3369: transaction exceeded 5m0s timeout after 5m0.107225498s, stack: goroutine 860 [running]:
netbird-server  | runtime/debug.Stack()
netbird-server  |       /opt/hostedtoolcache/go/1.25.6/x64/src/runtime/debug/stack.go:26 +0x5e
netbird-server  | github.com/netbirdio/netbird/management/server/store.(*SqlStore).ExecuteInTransaction(0xc000713e50, {0x2ad66c8, 0xc000d7c390}, 0xc00020c1c0)
netbird-server  |       /home/runner/work/netbird/netbird/management/server/store/sql_store.go:3369 +0x9c5
netbird-server  | github.com/netbirdio/netbird/management/server.(*DefaultAccountManager).UpdateAccountSettings(0xc00056c160, {0x2ad66c8, 0xc000d7c390}, {0xc000dc8e22, 0x14}, {0xc000dc8ea0, 0x2f}, 0xc000d92630)
netbird-server  |       /home/runner/work/netbird/netbird/management/server/account.go:301 +0x2cc
netbird-server  | github.com/netbirdio/netbird/management/server/http/handlers/accounts.(*handler).updateAccount(0xc00007d480, {0x2ad2630, 0xc000ade620}, 0xc000227680)
netbird-server  |       /home/runner/work/netbird/netbird/management/server/http/handlers/accounts/accounts_handler.go:281 +0x7ea
netbird-server  | net/http.HandlerFunc.ServeHTTP(0xc000499780?, {0x2ad2630?, 0xc000ade620?}, 0xc000259f40?)
netbird-server  |       /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2322 +0x29
netbird-server  | github.com/netbirdio/netbird/management/server/http/middleware.(*AuthMiddleware).Handler-fm.(*AuthMiddleware).Handler.func1({0x2ad2630, 0xc000ade620}, 0xc000227400)
netbird-server  |       /home/runner/work/netbird/netbird/management/server/http/middleware/auth_middleware.go:97 +0x36d
netbird-server  | net/http.HandlerFunc.ServeHTTP(0xc00017db80?, {0x2ad2630?, 0xc000ade620?}, 0xc000227400?)
netbird-server  |       /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2322 +0x29
netbird-server  | github.com/rs/cors.(*Cors).Handler-fm.(*Cors).Handler.func1({0x2ad2630, 0xc000ade620}, 0xc000227400)
netbird-server  |       /home/runner/go/pkg/mod/github.com/rs/cors@v1.8.0/cors.go:219 +0x164
netbird-server  | net/http.HandlerFunc.ServeHTTP(0xc000227040?, {0x2ad2630?, 0xc000ade620?}, 0x1?)
netbird-server  |       /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2322 +0x29
netbird-server  | github.com/netbirdio/netbird/management/server/telemetry.(*HTTPMiddleware).Handler-fm.(*HTTPMiddleware).Handler.func1({0x2ad1c00, 0xc000db6780}, 0xc000227040)
netbird-server  |       /home/runner/work/netbird/netbird/management/server/telemetry/http_api_metrics.go:186 +0x53a
netbird-server  | net/http.HandlerFunc.ServeHTTP(0xc000226f00?, {0x2ad1c00?, 0xc000db6780?}, 0x3?)
netbird-server  |       /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2322 +0x29
netbird-server  | github.com/gorilla/mux.(*Router).ServeHTTP(0xc00065a840, {0x2ad1c00, 0xc000db6780}, 0xc000226c80)
netbird-server  |       /home/runner/go/pkg/mod/github.com/gorilla/mux@v1.8.1/mux.go:212 +0x1e2
netbird-server  | github.com/netbirdio/netbird/combined/cmd.createCombinedHandler.func1({0x2ad1c00, 0xc000db6780}, 0xc000226c80)
netbird-server  |       /home/runner/work/netbird/netbird/combined/cmd/root.go:543 +0x246
netbird-server  | net/http.HandlerFunc.ServeHTTP(0xc000c46570?, {0x2ad1c00?, 0xc000db6780?}, 0xc000e2d988?)
netbird-server  |       /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2322 +0x29
netbird-server  | golang.org/x/net/http2/h2c.h2cHandler.ServeHTTP({{0x2ab96c0?, 0xc0005e8f40?}, 0xc00065faa0?}, {0x2ad1c00, 0xc000db6780}, 0xc000226c80)
netbird-server  |       /home/runner/go/pkg/mod/golang.org/x/net@v0.47.0/http2/h2c/h2c.go:125 +0x673
netbird-server  | net/http.serverHandler.ServeHTTP({0x2ac78b8?}, {0x2ad1c00?, 0xc000db6780?}, 0x6?)
netbird-server  |       /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:3340 +0x8e
netbird-server  | net/http.(*conn).serve(0xc000a602d0, {0x2ad66c8, 0xc000644420})
netbird-server  |       /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2109 +0x665
netbird-server  | created by net/http.(*Server).Serve in goroutine 89
netbird-server  |       /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:3493 +0x485
netbird-server  |
netbird-server  | 2026-02-14T16:48:08Z ERRO [context: HTTP, requestID: d68ac74f8pqc73bo15qg, accountID: d688sjcf8pqc73b52d4g, userID: CgE3Eh5hdXRoZW50aWstZDY4OWw1NGY4cHFjNzNhdWtkbmc] shared/management/http/util/util.go:85: got a handler error: failed to save account settings to store
netbird-server  | 2026-02-14T16:48:08Z ERRO [context: HTTP, requestID: d68ac74f8pqc73bo15qg] management/server/telemetry/http_api_metrics.go:201: HTTP response d68ac74f8pqc73bo15qg: PUT /api/accounts/d688sjcf8pqc73b52d4g status 500
<!-- gh-comment-id:3902167924 --> @doubleoh13 commented on GitHub (Feb 14, 2026): If you allow for the timeout after 5 minutes, you get the following errors in the log: ``` netbird-server | 2026-02-14T16:48:08Z ERRO [context: HTTP, requestID: d68ac74f8pqc73bo15qg, accountID: d688sjcf8pqc73b52d4g, userID: CgE3Eh5hdXRoZW50aWstZDY4OWw1NGY4cHFjNzNhdWtkbmc] management/server/store/sql_store.go:4030: failed to save account settings to store: context deadline exceeded netbird-server | 2026-02-14T16:48:08Z WARN [requestID: d68ac74f8pqc73bo15qg, accountID: d688sjcf8pqc73b52d4g, userID: CgE3Eh5hdXRoZW50aWstZDY4OWw1NGY4cHFjNzNhdWtkbmc, context: HTTP] management/server/store/sql_store.go:3369: transaction exceeded 5m0s timeout after 5m0.107225498s, stack: goroutine 860 [running]: netbird-server | runtime/debug.Stack() netbird-server | /opt/hostedtoolcache/go/1.25.6/x64/src/runtime/debug/stack.go:26 +0x5e netbird-server | github.com/netbirdio/netbird/management/server/store.(*SqlStore).ExecuteInTransaction(0xc000713e50, {0x2ad66c8, 0xc000d7c390}, 0xc00020c1c0) netbird-server | /home/runner/work/netbird/netbird/management/server/store/sql_store.go:3369 +0x9c5 netbird-server | github.com/netbirdio/netbird/management/server.(*DefaultAccountManager).UpdateAccountSettings(0xc00056c160, {0x2ad66c8, 0xc000d7c390}, {0xc000dc8e22, 0x14}, {0xc000dc8ea0, 0x2f}, 0xc000d92630) netbird-server | /home/runner/work/netbird/netbird/management/server/account.go:301 +0x2cc netbird-server | github.com/netbirdio/netbird/management/server/http/handlers/accounts.(*handler).updateAccount(0xc00007d480, {0x2ad2630, 0xc000ade620}, 0xc000227680) netbird-server | /home/runner/work/netbird/netbird/management/server/http/handlers/accounts/accounts_handler.go:281 +0x7ea netbird-server | net/http.HandlerFunc.ServeHTTP(0xc000499780?, {0x2ad2630?, 0xc000ade620?}, 0xc000259f40?) netbird-server | /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2322 +0x29 netbird-server | github.com/netbirdio/netbird/management/server/http/middleware.(*AuthMiddleware).Handler-fm.(*AuthMiddleware).Handler.func1({0x2ad2630, 0xc000ade620}, 0xc000227400) netbird-server | /home/runner/work/netbird/netbird/management/server/http/middleware/auth_middleware.go:97 +0x36d netbird-server | net/http.HandlerFunc.ServeHTTP(0xc00017db80?, {0x2ad2630?, 0xc000ade620?}, 0xc000227400?) netbird-server | /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2322 +0x29 netbird-server | github.com/rs/cors.(*Cors).Handler-fm.(*Cors).Handler.func1({0x2ad2630, 0xc000ade620}, 0xc000227400) netbird-server | /home/runner/go/pkg/mod/github.com/rs/cors@v1.8.0/cors.go:219 +0x164 netbird-server | net/http.HandlerFunc.ServeHTTP(0xc000227040?, {0x2ad2630?, 0xc000ade620?}, 0x1?) netbird-server | /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2322 +0x29 netbird-server | github.com/netbirdio/netbird/management/server/telemetry.(*HTTPMiddleware).Handler-fm.(*HTTPMiddleware).Handler.func1({0x2ad1c00, 0xc000db6780}, 0xc000227040) netbird-server | /home/runner/work/netbird/netbird/management/server/telemetry/http_api_metrics.go:186 +0x53a netbird-server | net/http.HandlerFunc.ServeHTTP(0xc000226f00?, {0x2ad1c00?, 0xc000db6780?}, 0x3?) netbird-server | /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2322 +0x29 netbird-server | github.com/gorilla/mux.(*Router).ServeHTTP(0xc00065a840, {0x2ad1c00, 0xc000db6780}, 0xc000226c80) netbird-server | /home/runner/go/pkg/mod/github.com/gorilla/mux@v1.8.1/mux.go:212 +0x1e2 netbird-server | github.com/netbirdio/netbird/combined/cmd.createCombinedHandler.func1({0x2ad1c00, 0xc000db6780}, 0xc000226c80) netbird-server | /home/runner/work/netbird/netbird/combined/cmd/root.go:543 +0x246 netbird-server | net/http.HandlerFunc.ServeHTTP(0xc000c46570?, {0x2ad1c00?, 0xc000db6780?}, 0xc000e2d988?) netbird-server | /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2322 +0x29 netbird-server | golang.org/x/net/http2/h2c.h2cHandler.ServeHTTP({{0x2ab96c0?, 0xc0005e8f40?}, 0xc00065faa0?}, {0x2ad1c00, 0xc000db6780}, 0xc000226c80) netbird-server | /home/runner/go/pkg/mod/golang.org/x/net@v0.47.0/http2/h2c/h2c.go:125 +0x673 netbird-server | net/http.serverHandler.ServeHTTP({0x2ac78b8?}, {0x2ad1c00?, 0xc000db6780?}, 0x6?) netbird-server | /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:3340 +0x8e netbird-server | net/http.(*conn).serve(0xc000a602d0, {0x2ad66c8, 0xc000644420}) netbird-server | /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:2109 +0x665 netbird-server | created by net/http.(*Server).Serve in goroutine 89 netbird-server | /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/server.go:3493 +0x485 netbird-server | netbird-server | 2026-02-14T16:48:08Z ERRO [context: HTTP, requestID: d68ac74f8pqc73bo15qg, accountID: d688sjcf8pqc73b52d4g, userID: CgE3Eh5hdXRoZW50aWstZDY4OWw1NGY4cHFjNzNhdWtkbmc] shared/management/http/util/util.go:85: got a handler error: failed to save account settings to store netbird-server | 2026-02-14T16:48:08Z ERRO [context: HTTP, requestID: d68ac74f8pqc73bo15qg] management/server/telemetry/http_api_metrics.go:201: HTTP response d68ac74f8pqc73bo15qg: PUT /api/accounts/d688sjcf8pqc73b52d4g status 500 ```
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#11131