[GH-ISSUE #3184] Runtime error: invalid memory address or nil pointer dereference #6772

Open
opened 2026-08-05 01:10:03 -04:00 by saavagebueno · 12 comments
Owner

Originally created by @coreyh503 on GitHub (Jan 14, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/3184

When starting docker-compose I check the logs to see if Netbird is running correctly and get this runtime error.

docker-compose logs -f
Attaching to netbird-management
netbird-management | panic: runtime error: invalid memory address or nil pointer dereference
netbird-management | [signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0x12d42f9]

Steps to reproduce the behavior:
docker-compose up -d
docker-compose logs -f

Also, when running netstat there is nothing listening on port 443.

I'm running Netbird using a Ubuntu server in the cloud.

NetBird version 0.24.3 and Docker-compose 1.29.2.

This is my correct management.json file that I have changed over and over.

{
"server": {
"proto": "https",
"port": 443,
"grpc_port": 33073,
"domain": "netbird.domain.com",
"log_level": "debug"
},
"store": {
"type": "sqlite",
"sqlite": {
"db_path": "/var/lib/netbird/netbird.db"
},
"encryption_key": "change-me-to-a-unique-strong-key",
"data_dir": "/var/lib/netbird"
},
"auth": {
"type": "none"
}
}

I will be glad to provide any additional information needed.

Originally created by @coreyh503 on GitHub (Jan 14, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/3184 When starting docker-compose I check the logs to see if Netbird is running correctly and get this runtime error. docker-compose logs -f Attaching to netbird-management netbird-management | panic: runtime error: invalid memory address or nil pointer dereference netbird-management | [signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0x12d42f9] Steps to reproduce the behavior: docker-compose up -d docker-compose logs -f Also, when running netstat there is nothing listening on port 443. I'm running Netbird using a Ubuntu server in the cloud. NetBird version 0.24.3 and Docker-compose 1.29.2. This is my correct management.json file that I have changed over and over. { "server": { "proto": "https", "port": 443, "grpc_port": 33073, "domain": "netbird.domain.com", "log_level": "debug" }, "store": { "type": "sqlite", "sqlite": { "db_path": "/var/lib/netbird/netbird.db" }, "encryption_key": "change-me-to-a-unique-strong-key", "data_dir": "/var/lib/netbird" }, "auth": { "type": "none" } } I will be glad to provide any additional information needed.
saavagebueno added the self-hosting label 2026-08-05 01:10:03 -04:00
Author
Owner

@lixmal commented on GitHub (Jan 15, 2025):

Hi @coreyh503,

can you try running a more recent version? v0.24.3 is over a year old.

<!-- gh-comment-id:2592092550 --> @lixmal commented on GitHub (Jan 15, 2025): Hi @coreyh503, can you try running a more recent version? `v0.24.3` is over a year old.
Author
Owner

@coreyh503 commented on GitHub (Jan 16, 2025):

Thank you. I'll try that. I though I was using the most recent version. I would keep retrieving it using the "latest" value but I guess it didn't work. I'm somewhat new to all this. I'll see if that produces a better result.

<!-- gh-comment-id:2596880931 --> @coreyh503 commented on GitHub (Jan 16, 2025): Thank you. I'll try that. I though I was using the most recent version. I would keep retrieving it using the "latest" value but I guess it didn't work. I'm somewhat new to all this. I'll see if that produces a better result.
Author
Owner

@mlsmaycon commented on GitHub (Jan 16, 2025):

@coreyh503 you might need to follow some steps before upgrading since you might still be using a file store.

<!-- gh-comment-id:2596892802 --> @mlsmaycon commented on GitHub (Jan 16, 2025): @coreyh503 you might need to follow some steps before upgrading since you might still be using a file store.
Author
Owner

@mlsmaycon commented on GitHub (Jan 16, 2025):

After backup, see docs:https://docs.netbird.io/selfhosted/selfhosted-guide#backup

You first need to update to the 0.28.0 version and then you can upgrade to the latest version.

<!-- gh-comment-id:2596899355 --> @mlsmaycon commented on GitHub (Jan 16, 2025): After backup, see docs:https://docs.netbird.io/selfhosted/selfhosted-guide#backup You first need to update to the 0.28.0 version and then you can upgrade to the latest version.
Author
Owner

@coreyh503 commented on GitHub (Jan 16, 2025):

What is the latest version of the management service so I know what to look for?

<!-- gh-comment-id:2596955648 --> @coreyh503 commented on GitHub (Jan 16, 2025): What is the latest version of the management service so I know what to look for?
Author
Owner

@coreyh503 commented on GitHub (Jan 17, 2025):

I installed the latest version and still the same error. This has been a nightmare. I've been screwing around with this stuff for 3 weeks. I'm going to look for another VPN product.

<!-- gh-comment-id:2599104631 --> @coreyh503 commented on GitHub (Jan 17, 2025): I installed the latest version and still the same error. This has been a nightmare. I've been screwing around with this stuff for 3 weeks. I'm going to look for another VPN product.
Author
Owner

@lixmal commented on GitHub (Jan 17, 2025):

Can you share the whole log with the panic?

All right. Good luck

<!-- gh-comment-id:2599159655 --> @lixmal commented on GitHub (Jan 17, 2025): Can you share the whole log with the panic? All right. Good luck
Author
Owner

@compumatter commented on GitHub (Feb 17, 2025):

same error here.

docker compose up
[+] Running 4/4
✔ Network netbird-net Created 0.2s
✔ Volume "netbird_netbird-data" Created 0.0s
✔ Container netbird-management Created 1.0s
✔ Container netbird-dashboard Created 0.7s
Attaching to netbird-dashboard, netbird-management
netbird-management | panic: runtime error: invalid memory address or nil pointer dereference
netbird-management | [signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0x15d63be]
netbird-management |
netbird-management | goroutine 1 [running]:
netbird-management | github.com/netbirdio/netbird/management/cmd.loadMgmtConfig({0x1dce8d0, 0xc0002d0ea0}, {0x1b95517, 0x1c})
netbird-management | /home/runner/work/netbird/netbird/management/cmd/management.go:511 +0x17e
netbird-management | github.com/netbirdio/netbird/management/cmd.init.func2(0x2a520c0, {0x1b73875?, 0x4?, 0x1b73735?})
netbird-management | /home/runner/work/netbird/netbird/management/cmd/management.go:104 +0x152
netbird-management | github.com/spf13/cobra.(*Command).execute(0x2a520c0, {0xc000554240, 0x2, 0x2})
netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:925 +0x7d9
netbird-management | github.com/spf13/cobra.(*Command).ExecuteC(0x2a51b00)
netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5
netbird-management | github.com/spf13/cobra.(*Command).Execute(...)
netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
netbird-management | github.com/netbirdio/netbird/management/cmd.Execute(...)
netbird-management | /home/runner/work/netbird/netbird/management/cmd/root.go:51
netbird-management | main.main()
netbird-management | /home/runner/work/netbird/netbird/management/main.go:9 +0x1a
netbird-management exited with code 2
netbird-management | panic: runtime error: invalid memory address or nil pointer dereference
netbird-management | [signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0x15d63be]
netbird-management |
netbird-management | goroutine 1 [running]:
netbird-management | github.com/netbirdio/netbird/management/cmd.loadMgmtConfig({0x1dce8d0, 0xc00028cd50}, {0x1b95517, 0x1c})
netbird-management | /home/runner/work/netbird/netbird/management/cmd/management.go:511 +0x17e
netbird-management | github.com/netbirdio/netbird/management/cmd.init.func2(0x2a520c0, {0x1b73875?, 0x4?, 0x1b73735?})
netbird-management | /home/runner/work/netbird/netbird/management/cmd/management.go:104 +0x152
netbird-management | github.com/spf13/cobra.(*Command).execute(0x2a520c0, {0xc00050b1a0, 0x2, 0x2})
netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:925 +0x7d9
netbird-management | github.com/spf13/cobra.(*Command).ExecuteC(0x2a51b00)
netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5
netbird-management | github.com/spf13/cobra.(*Command).Execute(...)
netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
netbird-management | github.com/netbirdio/netbird/management/cmd.Execute(...)
netbird-management | /home/runner/work/netbird/netbird/management/cmd/root.go:51
netbird-management | main.main()
netbird-management | /home/runner/work/netbird/netbird/management/main.go:9 +0x1a
netbird-dashboard | AUTH_AUTHORITY or AUTH0_DOMAIN environment variable must be set
netbird-dashboard | + LETSENCRYPT_DOMAIN=none
netbird-dashboard | + LETSENCRYPT_EMAIL=example@local
netbird-dashboard | + NGINX_SSL_PORT=443
netbird-dashboard | + '[' none-x == none-x ']'
netbird-dashboard | + exit 0
netbird-dashboard | 2025/02/18 00:03:20 [emerg] 7#7: socket() [::]:80 failed (97: Address family not supported by protocol)
netbird-dashboard | nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
netbird-management exited with code 0
netbird-management | panic: runtime error: invalid memory address or nil pointer dereference

<!-- gh-comment-id:2664257826 --> @compumatter commented on GitHub (Feb 17, 2025): same error here. docker compose up [+] Running 4/4 ✔ Network netbird-net Created 0.2s ✔ Volume "netbird_netbird-data" Created 0.0s ✔ Container netbird-management Created 1.0s ✔ Container netbird-dashboard Created 0.7s Attaching to netbird-dashboard, netbird-management netbird-management | panic: runtime error: invalid memory address or nil pointer dereference netbird-management | [signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0x15d63be] netbird-management | netbird-management | goroutine 1 [running]: netbird-management | github.com/netbirdio/netbird/management/cmd.loadMgmtConfig({0x1dce8d0, 0xc0002d0ea0}, {0x1b95517, 0x1c}) netbird-management | /home/runner/work/netbird/netbird/management/cmd/management.go:511 +0x17e netbird-management | github.com/netbirdio/netbird/management/cmd.init.func2(0x2a520c0, {0x1b73875?, 0x4?, 0x1b73735?}) netbird-management | /home/runner/work/netbird/netbird/management/cmd/management.go:104 +0x152 netbird-management | github.com/spf13/cobra.(*Command).execute(0x2a520c0, {0xc000554240, 0x2, 0x2}) netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:925 +0x7d9 netbird-management | github.com/spf13/cobra.(*Command).ExecuteC(0x2a51b00) netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5 netbird-management | github.com/spf13/cobra.(*Command).Execute(...) netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992 netbird-management | github.com/netbirdio/netbird/management/cmd.Execute(...) netbird-management | /home/runner/work/netbird/netbird/management/cmd/root.go:51 netbird-management | main.main() netbird-management | /home/runner/work/netbird/netbird/management/main.go:9 +0x1a netbird-management exited with code 2 netbird-management | panic: runtime error: invalid memory address or nil pointer dereference netbird-management | [signal SIGSEGV: segmentation violation code=0x1 addr=0x78 pc=0x15d63be] netbird-management | netbird-management | goroutine 1 [running]: netbird-management | github.com/netbirdio/netbird/management/cmd.loadMgmtConfig({0x1dce8d0, 0xc00028cd50}, {0x1b95517, 0x1c}) netbird-management | /home/runner/work/netbird/netbird/management/cmd/management.go:511 +0x17e netbird-management | github.com/netbirdio/netbird/management/cmd.init.func2(0x2a520c0, {0x1b73875?, 0x4?, 0x1b73735?}) netbird-management | /home/runner/work/netbird/netbird/management/cmd/management.go:104 +0x152 netbird-management | github.com/spf13/cobra.(*Command).execute(0x2a520c0, {0xc00050b1a0, 0x2, 0x2}) netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:925 +0x7d9 netbird-management | github.com/spf13/cobra.(*Command).ExecuteC(0x2a51b00) netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5 netbird-management | github.com/spf13/cobra.(*Command).Execute(...) netbird-management | /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992 netbird-management | github.com/netbirdio/netbird/management/cmd.Execute(...) netbird-management | /home/runner/work/netbird/netbird/management/cmd/root.go:51 netbird-management | main.main() netbird-management | /home/runner/work/netbird/netbird/management/main.go:9 +0x1a netbird-dashboard | AUTH_AUTHORITY or AUTH0_DOMAIN environment variable must be set netbird-dashboard | + LETSENCRYPT_DOMAIN=none netbird-dashboard | + LETSENCRYPT_EMAIL=example@local netbird-dashboard | + NGINX_SSL_PORT=443 netbird-dashboard | + '[' none-x == none-x ']' netbird-dashboard | + exit 0 netbird-dashboard | 2025/02/18 00:03:20 [emerg] 7#7: socket() [::]:80 failed (97: Address family not supported by protocol) netbird-dashboard | nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol) netbird-management exited with code 0 netbird-management | panic: runtime error: invalid memory address or nil pointer dereference
Author
Owner

@mlsmaycon commented on GitHub (Feb 17, 2025):

@compumatter can you confirm that your management.json has the HttpConfig block?

<!-- gh-comment-id:2664336226 --> @mlsmaycon commented on GitHub (Feb 17, 2025): @compumatter can you confirm that your management.json has the HttpConfig block?
Author
Owner

@temarusanov commented on GitHub (Apr 3, 2025):

Same error here, running kubernetes-operator

<!-- gh-comment-id:2775282237 --> @temarusanov commented on GitHub (Apr 3, 2025): Same error here, running kubernetes-operator
Author
Owner

@nbyloff commented on GitHub (Jul 17, 2025):

I solved the issue by adding the HttpConfig block in my management.json file. All demos on setting up netbird are based on configs that don't include that block. Here is mine:

"HttpConfig": {
        "LetsEncryptDomain": "",
        "CertFile": "/letsencrypt/fullchain.pem",
        "CertKey": "/letsencrypt/privkey.pem",
        "AuthAudience": "",
        "AuthIssuer": "https://auth.domain.test/application/o/netbird/",
        "AuthUserIDClaim": "",
        "AuthKeysLocation": "https://auth.domain.test/application/o/netbird/jwks/",
        "OIDCConfigEndpoint": "https://auth.domain.test/application/o/netbird/.well-known/openid-configuration",
        "IdpSignKeyRefreshEnabled": false,
        "ExtraAuthAudience": ""
    },

<!-- gh-comment-id:3084844533 --> @nbyloff commented on GitHub (Jul 17, 2025): I solved the issue by adding the `HttpConfig` block in my management.json file. All demos on setting up netbird are based on configs that don't include that block. Here is mine: ```json "HttpConfig": { "LetsEncryptDomain": "", "CertFile": "/letsencrypt/fullchain.pem", "CertKey": "/letsencrypt/privkey.pem", "AuthAudience": "", "AuthIssuer": "https://auth.domain.test/application/o/netbird/", "AuthUserIDClaim": "", "AuthKeysLocation": "https://auth.domain.test/application/o/netbird/jwks/", "OIDCConfigEndpoint": "https://auth.domain.test/application/o/netbird/.well-known/openid-configuration", "IdpSignKeyRefreshEnabled": false, "ExtraAuthAudience": "" }, ```
Author
Owner

@dmpanch commented on GitHub (Feb 2, 2026):

Same here on the fresh install + Google Workspace SSO setup.

2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:237: loading OIDC configuration from the provided IDP configuration endpoint https://accounts.google.com/.well-known/openid-configuration
2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:242: loaded OIDC configuration from the provided IDP configuration endpoint: https://accounts.google.com/.well-known/openid-configuration
2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:244: overriding HttpConfig.AuthIssuer with a new value https://accounts.google.com, previously configured value: https://accounts.google.com
2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:248: overriding HttpConfig.AuthKeysLocation (JWT certs) with a new value https://www.googleapis.com/oauth2/v3/certs, previously configured value: https://www.googleapis.com/oauth2/v3/certs
2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:293: overriding PKCEAuthorizationFlow.TokenEndpoint with a new value: https://oauth2.googleapis.com/token, previously configured value: https://oauth2.googleapis.com/token
2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:297: overriding PKCEAuthorizationFlow.AuthorizationEndpoint with a new value: https://accounts.google.com/o/oauth2/v2/auth, previously configured value: https://accounts.google.com/o/oauth2/v2/auth
2026-02-02T17:48:03Z INFO management/cmd/management.go:308: Relay addresses: [rel://vpn.example.com:33080]
2026-02-02T17:48:03Z INFO management/server/store/store.go:306: using SQLite store engine
2026-02-02T17:48:03Z INFO management/server/store/sql_store.go:99: Setting transaction timeout to 5m0s
2026-02-02T17:48:03Z INFO management/server/store/sql_store.go:113: Set max open db connections to 1, max idle to 1, max lifetime to 1h0m0s, max idle time to 3m0s
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:148: No records in table peers, no migration needed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:148: No records in table peers, no migration needed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:263: No plain setup keys found in table setup_keys, no migration needed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:301: Migration of plain setup key to hashed setup key completed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:344: No rows with empty enabled found in table network_resources, no migration needed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:358: Migration of empty enabled to default value in table network_resources completed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:344: No rows with empty enabled found in table network_routers, no migration needed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:358: Migration of empty enabled to default value in table network_routers completed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:344: No rows with empty name found in table users, no migration needed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:358: Migration of empty name to default value in table users completed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:344: No rows with empty email found in table users, no migration needed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:358: Migration of empty email to default value in table users completed
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:399: index idx_account_ip already exists on table peers
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:399: index idx_account_dnslabel already exists on table peers
2026-02-02T17:48:03Z INFO management/server/migration/migration.go:399: index idx_peers_key_unique already exists on table peers
2026-02-02T17:48:04Z INFO management/internals/server/modules.go:45: geolocation service has been initialized from /var/lib/netbird/
2026-02-02T17:48:04Z INFO management/server/telemetry/app_metrics.go:193: enabled application metrics and exposing on http://0.0.0.0:9090
2026-02-02T17:48:04Z INFO management/server/account_request_buffer.go:45: set account request buffer interval to 100ms
2026-02-02T17:48:04Z INFO management/server/activity/store/sql_store.go:262: using sqlite as activity event store engine
2026-02-02T17:48:04Z INFO management/server/activity/store/sql_store.go:291: Set max open db connections to 1, max idle to 1, max lifetime to 1h0m0s, max idle time to 3m0s
2026-02-02T17:48:04Z INFO management/server/migration/migration.go:344: No rows with empty name found in table deleted_users, no migration needed
2026-02-02T17:48:04Z INFO management/server/migration/migration.go:358: Migration of empty name to default value in table deleted_users completed
2026-02-02T17:48:04Z INFO management/server/migration/migration.go:344: No rows with empty enc_algo found in table deleted_users, no migration needed
2026-02-02T17:48:04Z INFO management/server/migration/migration.go:358: Migration of empty enc_algo to default value in table deleted_users completed
2026-02-02T17:48:04Z 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
2026-02-02T17:48:04Z INFO management/server/account_request_buffer.go:45: set account request buffer interval to 100ms
2026-02-02T17:48:04Z WARN management/internals/controllers/network_map/controller/controller.go:626: failed to parse peer update interval, using default value 1ms: strconv.Atoi: parsing "": invalid syntax
2026-02-02T17:48:04Z INFO management/internals/controllers/network_map/controller/controller.go:642: set peer update buffer interval to 1ms
2026-02-02T17:48:04Z INFO management/server/account.go:239: single account mode enabled, accounts number 0
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1094f5c]

goroutine 76 [running]:
golang.org/x/oauth2/authhandler.authHandlerSource.Token({{0x255faa8, 0x35e1f40}, 0xc000717d40, 0x0, {0x0, 0x0}, 0x0})
	/home/runner/go/pkg/mod/golang.org/x/oauth2@v0.34.0/authhandler/authhandler.go:80 +0x17c
golang.org/x/oauth2.(*reuseTokenSource).Token(0xc00072ce70)
	/home/runner/go/pkg/mod/golang.org/x/oauth2@v0.34.0/oauth2.go:314 +0xb6
cloud.google.com/go/auth/oauth2adapt.(*tokenProviderAdapter).Token(0x3f7f0254225410d8?, {0x63086fdaf2ccd0?, 0x2?})
	/home/runner/go/pkg/mod/cloud.google.com/go/auth/oauth2adapt@v0.2.8/oauth2adapt.go:49 +0x1f
cloud.google.com/go/auth.(*cachedTokenProvider).tokenBlocking(0xc000030240, {0x255faa8, 0x35e1f40})
	/home/runner/go/pkg/mod/cloud.google.com/go/auth@v0.17.0/auth.go:392 +0x110
cloud.google.com/go/auth.(*cachedTokenProvider).tokenNonBlocking(0xc000030240, {0x255faa8, 0x35e1f40})
	/home/runner/go/pkg/mod/cloud.google.com/go/auth@v0.17.0/auth.go:334 +0x185
cloud.google.com/go/auth.(*cachedTokenProvider).Token(0xc000030240?, {0x255faa8?, 0x35e1f40?})
	/home/runner/go/pkg/mod/cloud.google.com/go/auth@v0.17.0/auth.go:316 +0x30
cloud.google.com/go/auth/httptransport.(*authTransport).RoundTrip(0xc00072d140, 0xc0004a4280)
	/home/runner/go/pkg/mod/cloud.google.com/go/auth@v0.17.0/httptransport/transport.go:218 +0xd0
net/http.send(0xc0004a4280, {0x2554680, 0xc00072d140}, {0x7e0001?, 0xc000077658?, 0x0?})
	/opt/hostedtoolcache/go/1.25.6/x64/src/net/http/client.go:259 +0x5e2
net/http.(*Client).send(0xc00072d170, 0xc0004a4280, {0x10600c0000776c8?, 0x7f30cd647240?, 0x0?})
	/opt/hostedtoolcache/go/1.25.6/x64/src/net/http/client.go:180 +0x91
net/http.(*Client).do(0xc00072d170, 0xc0004a4280)
	/opt/hostedtoolcache/go/1.25.6/x64/src/net/http/client.go:729 +0x9c9
net/http.(*Client).Do(...)
	/opt/hostedtoolcache/go/1.25.6/x64/src/net/http/client.go:587
google.golang.org/api/internal/gensupport.SendRequest({0x0, 0x0}, 0xc00072d170, 0xc0004a4280)
	/home/runner/go/pkg/mod/google.golang.org/api@v0.257.0/internal/gensupport/send.go:80 +0x11a
google.golang.org/api/admin/directory/v1.(*UsersListCall).doRequest(0xc000077d00, {0x2226d36, 0x4})
	/home/runner/go/pkg/mod/google.golang.org/api@v0.257.0/admin/directory/v1/admin-gen.go:18022 +0x4ca
google.golang.org/api/admin/directory/v1.(*UsersListCall).Do(0xc0004c9d00, {0x0?, 0x223094b?, 0xa?})
	/home/runner/go/pkg/mod/google.golang.org/api@v0.257.0/admin/directory/v1/admin-gen.go:18032 +0x6d
github.com/netbirdio/netbird/management/server/idp.(*GoogleWorkspaceManager).getAllUsers(0xc0000d5140)
	/home/runner/work/netbird/netbird/management/server/idp/google_workspace.go:161 +0x350
github.com/netbirdio/netbird/management/server/idp.(*GoogleWorkspaceManager).GetAllAccounts(0xc0000d5140, {0x19?, 0x35e1f40?})
	/home/runner/work/netbird/netbird/management/server/idp/google_workspace.go:136 +0x1f
github.com/netbirdio/netbird/management/server.(*DefaultAccountManager).warmupIDPCache(0xc0002e4c80, {0x255faa8, 0x35e1f40}, {0x2568d30?, 0xc00072d7d0?})
	/home/runner/work/netbird/netbird/management/server/account.go:618 +0xee
github.com/netbirdio/netbird/management/server.BuildManager.func2()
	/home/runner/work/netbird/netbird/management/server/account.go:253 +0x35
created by github.com/netbirdio/netbird/management/server.BuildManager in goroutine 25
	/home/runner/work/netbird/netbird/management/server/account.go:252 +0xaf0
<!-- gh-comment-id:3836744509 --> @dmpanch commented on GitHub (Feb 2, 2026): Same here on the fresh install + Google Workspace SSO setup. ``` 2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:237: loading OIDC configuration from the provided IDP configuration endpoint https://accounts.google.com/.well-known/openid-configuration 2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:242: loaded OIDC configuration from the provided IDP configuration endpoint: https://accounts.google.com/.well-known/openid-configuration 2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:244: overriding HttpConfig.AuthIssuer with a new value https://accounts.google.com, previously configured value: https://accounts.google.com 2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:248: overriding HttpConfig.AuthKeysLocation (JWT certs) with a new value https://www.googleapis.com/oauth2/v3/certs, previously configured value: https://www.googleapis.com/oauth2/v3/certs 2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:293: overriding PKCEAuthorizationFlow.TokenEndpoint with a new value: https://oauth2.googleapis.com/token, previously configured value: https://oauth2.googleapis.com/token 2026-02-02T17:48:03Z INFO [context: SYSTEM] management/cmd/management.go:297: overriding PKCEAuthorizationFlow.AuthorizationEndpoint with a new value: https://accounts.google.com/o/oauth2/v2/auth, previously configured value: https://accounts.google.com/o/oauth2/v2/auth 2026-02-02T17:48:03Z INFO management/cmd/management.go:308: Relay addresses: [rel://vpn.example.com:33080] 2026-02-02T17:48:03Z INFO management/server/store/store.go:306: using SQLite store engine 2026-02-02T17:48:03Z INFO management/server/store/sql_store.go:99: Setting transaction timeout to 5m0s 2026-02-02T17:48:03Z INFO management/server/store/sql_store.go:113: Set max open db connections to 1, max idle to 1, max lifetime to 1h0m0s, max idle time to 3m0s 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:148: No records in table peers, no migration needed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:148: No records in table peers, no migration needed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:263: No plain setup keys found in table setup_keys, no migration needed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:301: Migration of plain setup key to hashed setup key completed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:344: No rows with empty enabled found in table network_resources, no migration needed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:358: Migration of empty enabled to default value in table network_resources completed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:344: No rows with empty enabled found in table network_routers, no migration needed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:358: Migration of empty enabled to default value in table network_routers completed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:344: No rows with empty name found in table users, no migration needed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:358: Migration of empty name to default value in table users completed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:344: No rows with empty email found in table users, no migration needed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:358: Migration of empty email to default value in table users completed 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:399: index idx_account_ip already exists on table peers 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:399: index idx_account_dnslabel already exists on table peers 2026-02-02T17:48:03Z INFO management/server/migration/migration.go:399: index idx_peers_key_unique already exists on table peers 2026-02-02T17:48:04Z INFO management/internals/server/modules.go:45: geolocation service has been initialized from /var/lib/netbird/ 2026-02-02T17:48:04Z INFO management/server/telemetry/app_metrics.go:193: enabled application metrics and exposing on http://0.0.0.0:9090 2026-02-02T17:48:04Z INFO management/server/account_request_buffer.go:45: set account request buffer interval to 100ms 2026-02-02T17:48:04Z INFO management/server/activity/store/sql_store.go:262: using sqlite as activity event store engine 2026-02-02T17:48:04Z INFO management/server/activity/store/sql_store.go:291: Set max open db connections to 1, max idle to 1, max lifetime to 1h0m0s, max idle time to 3m0s 2026-02-02T17:48:04Z INFO management/server/migration/migration.go:344: No rows with empty name found in table deleted_users, no migration needed 2026-02-02T17:48:04Z INFO management/server/migration/migration.go:358: Migration of empty name to default value in table deleted_users completed 2026-02-02T17:48:04Z INFO management/server/migration/migration.go:344: No rows with empty enc_algo found in table deleted_users, no migration needed 2026-02-02T17:48:04Z INFO management/server/migration/migration.go:358: Migration of empty enc_algo to default value in table deleted_users completed 2026-02-02T17:48:04Z 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 2026-02-02T17:48:04Z INFO management/server/account_request_buffer.go:45: set account request buffer interval to 100ms 2026-02-02T17:48:04Z WARN management/internals/controllers/network_map/controller/controller.go:626: failed to parse peer update interval, using default value 1ms: strconv.Atoi: parsing "": invalid syntax 2026-02-02T17:48:04Z INFO management/internals/controllers/network_map/controller/controller.go:642: set peer update buffer interval to 1ms 2026-02-02T17:48:04Z INFO management/server/account.go:239: single account mode enabled, accounts number 0 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1094f5c] goroutine 76 [running]: golang.org/x/oauth2/authhandler.authHandlerSource.Token({{0x255faa8, 0x35e1f40}, 0xc000717d40, 0x0, {0x0, 0x0}, 0x0}) /home/runner/go/pkg/mod/golang.org/x/oauth2@v0.34.0/authhandler/authhandler.go:80 +0x17c golang.org/x/oauth2.(*reuseTokenSource).Token(0xc00072ce70) /home/runner/go/pkg/mod/golang.org/x/oauth2@v0.34.0/oauth2.go:314 +0xb6 cloud.google.com/go/auth/oauth2adapt.(*tokenProviderAdapter).Token(0x3f7f0254225410d8?, {0x63086fdaf2ccd0?, 0x2?}) /home/runner/go/pkg/mod/cloud.google.com/go/auth/oauth2adapt@v0.2.8/oauth2adapt.go:49 +0x1f cloud.google.com/go/auth.(*cachedTokenProvider).tokenBlocking(0xc000030240, {0x255faa8, 0x35e1f40}) /home/runner/go/pkg/mod/cloud.google.com/go/auth@v0.17.0/auth.go:392 +0x110 cloud.google.com/go/auth.(*cachedTokenProvider).tokenNonBlocking(0xc000030240, {0x255faa8, 0x35e1f40}) /home/runner/go/pkg/mod/cloud.google.com/go/auth@v0.17.0/auth.go:334 +0x185 cloud.google.com/go/auth.(*cachedTokenProvider).Token(0xc000030240?, {0x255faa8?, 0x35e1f40?}) /home/runner/go/pkg/mod/cloud.google.com/go/auth@v0.17.0/auth.go:316 +0x30 cloud.google.com/go/auth/httptransport.(*authTransport).RoundTrip(0xc00072d140, 0xc0004a4280) /home/runner/go/pkg/mod/cloud.google.com/go/auth@v0.17.0/httptransport/transport.go:218 +0xd0 net/http.send(0xc0004a4280, {0x2554680, 0xc00072d140}, {0x7e0001?, 0xc000077658?, 0x0?}) /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/client.go:259 +0x5e2 net/http.(*Client).send(0xc00072d170, 0xc0004a4280, {0x10600c0000776c8?, 0x7f30cd647240?, 0x0?}) /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/client.go:180 +0x91 net/http.(*Client).do(0xc00072d170, 0xc0004a4280) /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/client.go:729 +0x9c9 net/http.(*Client).Do(...) /opt/hostedtoolcache/go/1.25.6/x64/src/net/http/client.go:587 google.golang.org/api/internal/gensupport.SendRequest({0x0, 0x0}, 0xc00072d170, 0xc0004a4280) /home/runner/go/pkg/mod/google.golang.org/api@v0.257.0/internal/gensupport/send.go:80 +0x11a google.golang.org/api/admin/directory/v1.(*UsersListCall).doRequest(0xc000077d00, {0x2226d36, 0x4}) /home/runner/go/pkg/mod/google.golang.org/api@v0.257.0/admin/directory/v1/admin-gen.go:18022 +0x4ca google.golang.org/api/admin/directory/v1.(*UsersListCall).Do(0xc0004c9d00, {0x0?, 0x223094b?, 0xa?}) /home/runner/go/pkg/mod/google.golang.org/api@v0.257.0/admin/directory/v1/admin-gen.go:18032 +0x6d github.com/netbirdio/netbird/management/server/idp.(*GoogleWorkspaceManager).getAllUsers(0xc0000d5140) /home/runner/work/netbird/netbird/management/server/idp/google_workspace.go:161 +0x350 github.com/netbirdio/netbird/management/server/idp.(*GoogleWorkspaceManager).GetAllAccounts(0xc0000d5140, {0x19?, 0x35e1f40?}) /home/runner/work/netbird/netbird/management/server/idp/google_workspace.go:136 +0x1f github.com/netbirdio/netbird/management/server.(*DefaultAccountManager).warmupIDPCache(0xc0002e4c80, {0x255faa8, 0x35e1f40}, {0x2568d30?, 0xc00072d7d0?}) /home/runner/work/netbird/netbird/management/server/account.go:618 +0xee github.com/netbirdio/netbird/management/server.BuildManager.func2() /home/runner/work/netbird/netbird/management/server/account.go:253 +0x35 created by github.com/netbirdio/netbird/management/server.BuildManager in goroutine 25 /home/runner/work/netbird/netbird/management/server/account.go:252 +0xaf0 ```
Sign in to join this conversation.
No Label self-hosting
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#6772