[GH-ISSUE #4200] Persistent "panic: runtime error: invalid memory address or nil pointer dereference" in management service (loadMgmtConfig) on Debian 11 with Docker #8889

Open
opened 2026-08-05 01:19:55 -04:00 by saavagebueno · 2 comments
Owner

Originally created by @vidking on GitHub (Jul 22, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/4200

Problem description: Explain that the netbird-management container shuts down immediately after starting with the reported panic, and that this occurs even with a very simplified docker-compose.yml configuration (no external TLS, no complex OIDC authentication).

Docker compose

The complete netbird-management logs showing the panic

Originally created by @vidking on GitHub (Jul 22, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/4200 Problem description: Explain that the netbird-management container shuts down immediately after starting with the reported panic, and that this occurs even with a very simplified docker-compose.yml configuration (no external TLS, no complex OIDC authentication). Docker compose The complete netbird-management logs showing the panic
saavagebueno added the triage-needed label 2026-08-05 01:19:55 -04:00
Author
Owner

@stauntonjr commented on GitHub (Sep 25, 2025):

I am experiencing this issue in a docker-compose in an LXC on Proxmox 9 host. I created a debug container with alpine to shell in before it crashes and see the /var/lib/netbird is empty, adding a command to write a file and print it shows nothing in the logs. nothing but panic :(

<!-- gh-comment-id:3336202802 --> @stauntonjr commented on GitHub (Sep 25, 2025): I am experiencing this issue in a docker-compose in an LXC on Proxmox 9 host. I created a debug container with alpine to shell in before it crashes and see the /var/lib/netbird is empty, adding a command to write a file and print it shows nothing in the logs. nothing but panic :(
Author
Owner

@daodevinc commented on GitHub (Mar 25, 2026):

Hey here, same with docker compose :

netbird-management  | panic: runtime error: invalid memory address or nil pointer dereference
netbird-management  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x98 pc=0x1b7c811]
netbird-management  | ach
netbird-management  | goroutine 1 [running]:
netbird-management  | github.com/netbirdio/netbird/management/cmd.ApplyOIDCConfig({0x2608df0?, 0xc0003013e0?}, 0x1f040c0?)
netbird-management  | 	/home/runner/work/netbird/netbird/management/cmd/management.go:242 +0x31
netbird-management  | github.com/netbirdio/netbird/management/cmd.LoadMgmtConfig({0x2608df0, 0xc0003013e0}, {0x22e7804, 0x1c})
netbird-management  | 	/home/runner/work/netbird/netbird/management/cmd/management.go:162 +0x16d
netbird-management  | github.com/netbirdio/netbird/management/cmd.init.func3(0x3618ba0, {0x22b888c?, 0x4?, 0x22b83a8?})
netbird-management  | 	/home/runner/work/netbird/netbird/management/cmd/management.go:60 +0x179
netbird-management  | github.com/spf13/cobra.(*Command).execute(0x3618ba0, {0xc000611320, 0x2, 0x2})
netbird-management  | 	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.10.1/command.go:1000 +0xa7f
netbird-management  | github.com/spf13/cobra.(*Command).ExecuteC(0x3618e80)
netbird-management  | 	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.10.1/command.go:1148 +0x465
netbird-management  | github.com/spf13/cobra.(*Command).Execute(...)
netbird-management  | 	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.10.1/command.go:1071
netbird-management  | github.com/netbirdio/netbird/management/cmd.Execute(...)
netbird-management  | 	/home/runner/work/netbird/netbird/management/cmd/root.go:54
netbird-management  | main.main()
netbird-management  | 	/home/runner/work/netbird/netbird/management/main.go:17 +0x26
netbird-management exited with code 2 (restarting)
<!-- gh-comment-id:4130131029 --> @daodevinc commented on GitHub (Mar 25, 2026): Hey here, same with docker compose : ```log netbird-management | panic: runtime error: invalid memory address or nil pointer dereference netbird-management | [signal SIGSEGV: segmentation violation code=0x1 addr=0x98 pc=0x1b7c811] netbird-management | ach netbird-management | goroutine 1 [running]: netbird-management | github.com/netbirdio/netbird/management/cmd.ApplyOIDCConfig({0x2608df0?, 0xc0003013e0?}, 0x1f040c0?) netbird-management | /home/runner/work/netbird/netbird/management/cmd/management.go:242 +0x31 netbird-management | github.com/netbirdio/netbird/management/cmd.LoadMgmtConfig({0x2608df0, 0xc0003013e0}, {0x22e7804, 0x1c}) netbird-management | /home/runner/work/netbird/netbird/management/cmd/management.go:162 +0x16d netbird-management | github.com/netbirdio/netbird/management/cmd.init.func3(0x3618ba0, {0x22b888c?, 0x4?, 0x22b83a8?}) netbird-management | /home/runner/work/netbird/netbird/management/cmd/management.go:60 +0x179 netbird-management | github.com/spf13/cobra.(*Command).execute(0x3618ba0, {0xc000611320, 0x2, 0x2}) netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.10.1/command.go:1000 +0xa7f netbird-management | github.com/spf13/cobra.(*Command).ExecuteC(0x3618e80) netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.10.1/command.go:1148 +0x465 netbird-management | github.com/spf13/cobra.(*Command).Execute(...) netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.10.1/command.go:1071 netbird-management | github.com/netbirdio/netbird/management/cmd.Execute(...) netbird-management | /home/runner/work/netbird/netbird/management/cmd/root.go:54 netbird-management | main.main() netbird-management | /home/runner/work/netbird/netbird/management/main.go:17 +0x26 netbird-management exited with code 2 (restarting) ```
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#8889