netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
11.21k stars 517 forks source link

Netbird docker does not work on unirad #1678

Open bolavefasfas opened 8 months ago

bolavefasfas commented 8 months ago

Describe the problem

Netbird Client docker docker run or the template available both does not work gives error

 docker run --rm \
 --cap-add=NET_ADMIN \
 -e NB_SETUP_KEY=mykey \
 -v /mnt/user/appdata/netbird:/etc/netbird \
 netbirdio/netbird:latest
Unable to find image 'netbirdio/netbird:latest' locally
latest: Pulling from netbirdio/netbird
c926b61bad3b: Pull complete 
3d46ac1fd1d3: Pull complete 
d57cae2809a3: Pull complete 
Digest: sha256:fc1bfc2f7ee07b3fe80033638813a08eb675068257ac82dec0c43284f7273333
Status: Downloaded newer image for netbirdio/netbird:latest
2024-03-07T11:35:34Z INFO client/internal/config.go:125: generating new config /etc/netbird/config.json
2024-03-07T11:35:42Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2024-03-07T11:35:42Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.netbird.io:443 context deadline exceeded
2024-03-07T11:35:42Z WARN client/cmd/root.go:204: retrying Login to the Management service in 920.058846ms due to error context deadline exceeded
2024-03-07T11:35:48Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2024-03-07T11:35:48Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.netbird.io:443 context deadline exceeded
2024-03-07T11:35:48Z WARN client/cmd/root.go:204: retrying Login to the Management service in 867.674703ms due to error context deadline exceeded
2024-03-07T11:35:54Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2024-03-07T11:35:54Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.netbird.io:443 context deadline exceeded
2024-03-07T11:35:54Z WARN client/cmd/root.go:204: retrying Login to the Management service in 2.214475885s due to error context deadline exceeded
2024-03-07T11:36:01Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2024-03-07T11:36:01Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.netbird.io:443 context deadline exceeded
2024-03-07T11:36:01Z WARN client/cmd/root.go:204: retrying Login to the Management service in 3.002547213s due to error context deadline exceeded
2024-03-07T11:36:09Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2024-03-07T11:36:09Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.netbird.io:443 context deadline exceeded
Error: foreground login failed: backoff cycle failed: context deadline exceeded

To Reproduce

Steps to reproduce the behavior:

  1. Go to unraid ssh terminal top right of unraid header bar
  2. Click on paste
    docker run --rm \
    --cap-add=NET_ADMIN \
    -e NB_SETUP_KEY=mykey \
    -v /mnt/user/appdata/netbird:/etc/netbird \
    netbirdio/netbird:latest
  3. Scroll down to see logs
  4. See error

Expected behavior

It should just connect automatically and show a green dot in admin portal https://app.netbird.io/peers Its howing for my windows device but not for unriad.

Are you using NetBird Cloud?

Yes I am usng your hosted version I am not selfhosting it.

Add any other context about the problem here.

I tried the default template by image

And the offical docker run command both produced same result Though I had noticed one diffrence https://api.wiretrustee.com:33073 https://api.netbird.io:443 These were the urls it was tring to access and failed I even tried priviledged for the container in addition to cap add nothing worked.

mlsmaycon commented 8 months ago

Hello @bolavefasfas , can you run with the following variables:

GRPC_GO_LOG_VERBOSITY_LEVEL=99
GRPC_GO_LOG_SEVERITY_LEVEL=info
NB_LOG_LEVEL=debug
bolavefasfas commented 8 months ago
debug
image
text  error  warn  system  array  login  

      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Type": 0,
      "Metadata": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/03/09 06:33:11 INFO: [core] [Channel #3] Channel switches to new LB policy "pick_first"
2024/03/09 06:33:11 INFO: [core] [Channel #3 SubChannel #4] Subchannel created
2024/03/09 06:33:11 INFO: [core] [Channel #3] Channel Connectivity change to CONNECTING
2024/03/09 06:33:11 INFO: [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to CONNECTING
2024/03/09 06:33:11 INFO: [core] [Channel #3 SubChannel #4] Subchannel picks a new address "api.wiretrustee.com:33073" to connect
2024/03/09 06:33:11 INFO: [core] pickfirstBalancer: UpdateSubConnState: 0xc00071c960, {CONNECTING <nil>}
2024/03/09 06:33:16 INFO: [core] [Channel #3] Channel Connectivity change to SHUTDOWN
2024/03/09 06:33:16 INFO: [core] [Channel #3] ccBalancerWrapper: closing
2024/03/09 06:33:16 INFO: [core] [Channel #3] Closing the name resolver
2024/03/09 06:33:16 INFO: [core] [Channel #3 SubChannel #4] Subchannel Connectivity change to SHUTDOWN
2024/03/09 06:33:16 INFO: [core] [Channel #3 SubChannel #4] Subchannel deleted
2024/03/09 06:33:16 INFO: [core] [Channel #3] Channel deleted
2024/03/09 06:33:16 INFO: [core] Creating new client transport to "{Addr: \"api.wiretrustee.com:33073\", ServerName: \"api.wiretrustee.com:33073\", }": connection error: desc = "transport: Error while dialing: dial tcp 35.186.199.111:33073: operation was canceled"
2024/03/09 06:33:16 WARNING: [core] [Channel #3 SubChannel #4] grpc: addrConn.createTransport failed to connect to {Addr: "api.wiretrustee.com:33073", ServerName: "api.wiretrustee.com:33073", }. Err: connection error: desc = "transport: Error while dialing: dial tcp 35.186.199.111:33073: operation was canceled"
2024-03-09T06:33:16Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2024-03-09T06:33:16Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.wiretrustee.com:33073 context deadline exceeded
2024-03-09T06:33:16Z WARN client/cmd/root.go:204: retrying Login to the Management service in 1.258611906s due to error context deadline exceeded
2024/03/09 06:33:18 INFO: [core] [Channel #5] Channel created
2024/03/09 06:33:18 INFO: [core] [Channel #5] original dial target is: "api.wiretrustee.com:33073"
2024/03/09 06:33:18 INFO: [core] [Channel #5] parsed dial target is: {Scheme:api.wiretrustee.com Authority: URL:{Scheme:api.wiretrustee.com Opaque:33073 User: Host: Path: RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
2024/03/09 06:33:18 INFO: [core] [Channel #5] fallback to scheme "passthrough"
2024/03/09 06:33:18 INFO: [core] [Channel #5] parsed dial target is: {Scheme:passthrough Authority: URL:{Scheme:passthrough Opaque: User: Host: Path:/api.wiretrustee.com:33073 RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
2024/03/09 06:33:18 INFO: [core] [Channel #5] Channel authority set to "api.wiretrustee.com:33073"
2024/03/09 06:33:18 INFO: [core] [Channel #5] Resolver state updated: {
  "Addresses": [
    {
      "Addr": "api.wiretrustee.com:33073",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Type": 0,
      "Metadata": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/03/09 06:33:18 INFO: [core] [Channel #5] Channel switches to new LB policy "pick_first"
2024/03/09 06:33:18 INFO: [core] [Channel #5 SubChannel #6] Subchannel created
2024/03/09 06:33:18 INFO: [core] [Channel #5] Channel Connectivity change to CONNECTING
2024/03/09 06:33:18 INFO: [core] [Channel #5 SubChannel #6] Subchannel Connectivity change to CONNECTING
2024/03/09 06:33:18 INFO: [core] [Channel #5 SubChannel #6] Subchannel picks a new address "api.wiretrustee.com:33073" to connect
2024/03/09 06:33:18 INFO: [core] pickfirstBalancer: UpdateSubConnState: 0xc000594108, {CONNECTING <nil>}
2024/03/09 06:33:23 INFO: [core] [Channel #5] Channel Connectivity change to SHUTDOWN
2024/03/09 06:33:23 INFO: [core] [Channel #5] ccBalancerWrapper: closing
2024/03/09 06:33:23 INFO: [core] [Channel #5] Closing the name resolver
2024/03/09 06:33:23 INFO: [core] [Channel #5 SubChannel #6] Subchannel Connectivity change to SHUTDOWN
2024/03/09 06:33:23 INFO: [core] [Channel #5 SubChannel #6] Subchannel deleted
2024/03/09 06:33:23 INFO: [core] [Channel #5] Channel deleted
2024-03-09T06:33:23Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2024-03-09T06:33:23Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.wiretrustee.com:33073 context deadline exceeded
2024-03-09T06:33:23Z WARN client/cmd/root.go:204: retrying Login to the Management service in 1.071374876s due to error context deadline exceeded
2024/03/09 06:33:23 INFO: [core] Creating new client transport to "{Addr: \"api.wiretrustee.com:33073\", ServerName: \"api.wiretrustee.com:33073\", }": connection error: desc = "transport: Error while dialing: dial tcp: lookup api.wiretrustee.com: operation was canceled"
2024/03/09 06:33:23 WARNING: [core] [Channel #5 SubChannel #6] grpc: addrConn.createTransport failed to connect to {Addr: "api.wiretrustee.com:33073", ServerName: "api.wiretrustee.com:33073", }. Err: connection error: desc = "transport: Error while dialing: dial tcp: lookup api.wiretrustee.com: operation was canceled"
2024/03/09 06:33:24 INFO: [core] [Channel #7] Channel created
2024/03/09 06:33:24 INFO: [core] [Channel #7] original dial target is: "api.wiretrustee.com:33073"
2024/03/09 06:33:24 INFO: [core] [Channel #7] parsed dial target is: {Scheme:api.wiretrustee.com Authority: URL:{Scheme:api.wiretrustee.com Opaque:33073 User: Host: Path: RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
2024/03/09 06:33:24 INFO: [core] [Channel #7] fallback to scheme "passthrough"
2024/03/09 06:33:24 INFO: [core] [Channel #7] parsed dial target is: {Scheme:passthrough Authority: URL:{Scheme:passthrough Opaque: User: Host: Path:/api.wiretrustee.com:33073 RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
2024/03/09 06:33:24 INFO: [core] [Channel #7] Channel authority set to "api.wiretrustee.com:33073"
2024/03/09 06:33:24 INFO: [core] [Channel #7] Resolver state updated: {
  "Addresses": [
    {
      "Addr": "api.wiretrustee.com:33073",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Type": 0,
      "Metadata": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/03/09 06:33:24 INFO: [core] [Channel #7] Channel switches to new LB policy "pick_first"
2024/03/09 06:33:24 INFO: [core] [Channel #7 SubChannel #8] Subchannel created
2024/03/09 06:33:24 INFO: [core] [Channel #7] Channel Connectivity change to CONNECTING
2024/03/09 06:33:24 INFO: [core] [Channel #7 SubChannel #8] Subchannel Connectivity change to CONNECTING
2024/03/09 06:33:24 INFO: [core] [Channel #7 SubChannel #8] Subchannel picks a new address "api.wiretrustee.com:33073" to connect
2024/03/09 06:33:24 INFO: [core] pickfirstBalancer: UpdateSubConnState: 0xc000594150, {CONNECTING <nil>}
2024/03/09 06:33:29 INFO: [core] [Channel #7] Channel Connectivity change to SHUTDOWN
2024/03/09 06:33:29 INFO: [core] [Channel #7] ccBalancerWrapper: closing
2024/03/09 06:33:29 INFO: [core] [Channel #7] Closing the name resolver
2024/03/09 06:33:29 INFO: [core] [Channel #7 SubChannel #8] Subchannel Connectivity change to SHUTDOWN
2024/03/09 06:33:29 INFO: [core] [Channel #7 SubChannel #8] Subchannel deleted
2024/03/09 06:33:29 INFO: [core] [Channel #7] Channel deleted
2024-03-09T06:33:29Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2024-03-09T06:33:29Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.wiretrustee.com:33073 context deadline exceeded
2024-03-09T06:33:29Z WARN client/cmd/root.go:204: retrying Login to the Management service in 2.669250094s due to error context deadline exceeded
2024/03/09 06:33:29 INFO: [core] Creating new client transport to "{Addr: \"api.wiretrustee.com:33073\", ServerName: \"api.wiretrustee.com:33073\", }": connection error: desc = "transport: Error while dialing: dial tcp: lookup api.wiretrustee.com: operation was canceled"
2024/03/09 06:33:29 WARNING: [core] [Channel #7 SubChannel #8] grpc: addrConn.createTransport failed to connect to {Addr: "api.wiretrustee.com:33073", ServerName: "api.wiretrustee.com:33073", }. Err: connection error: desc = "transport: Error while dialing: dial tcp: lookup api.wiretrustee.com: operation was canceled"
2024/03/09 06:33:31 INFO: [core] [Channel #9] Channel created
2024/03/09 06:33:31 INFO: [core] [Channel #9] original dial target is: "api.wiretrustee.com:33073"
2024/03/09 06:33:31 INFO: [core] [Channel #9] parsed dial target is: {Scheme:api.wiretrustee.com Authority: URL:{Scheme:api.wiretrustee.com Opaque:33073 User: Host: Path: RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
2024/03/09 06:33:31 INFO: [core] [Channel #9] fallback to scheme "passthrough"
2024/03/09 06:33:31 INFO: [core] [Channel #9] parsed dial target is: {Scheme:passthrough Authority: URL:{Scheme:passthrough Opaque: User: Host: Path:/api.wiretrustee.com:33073 RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
2024/03/09 06:33:31 INFO: [core] [Channel #9] Channel authority set to "api.wiretrustee.com:33073"
2024/03/09 06:33:31 INFO: [core] [Channel #9] Resolver state updated: {
  "Addresses": [
    {
      "Addr": "api.wiretrustee.com:33073",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Type": 0,
      "Metadata": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/03/09 06:33:31 INFO: [core] [Channel #9] Channel switches to new LB policy "pick_first"
2024/03/09 06:33:31 INFO: [core] [Channel #9 SubChannel #10] Subchannel created
2024/03/09 06:33:31 INFO: [core] [Channel #9] Channel Connectivity change to CONNECTING
2024/03/09 06:33:31 INFO: [core] [Channel #9 SubChannel #10] Subchannel Connectivity change to CONNECTING
2024/03/09 06:33:31 INFO: [core] [Channel #9 SubChannel #10] Subchannel picks a new address "api.wiretrustee.com:33073" to connect
2024/03/09 06:33:31 INFO: [core] pickfirstBalancer: UpdateSubConnState: 0xc000882060, {CONNECTING <nil>}
^P2024/03/09 06:33:36 INFO: [core] [Channel #9] Channel Connectivity change to SHUTDOWN
2024/03/09 06:33:36 INFO: [core] [Channel #9] ccBalancerWrapper: closing
2024/03/09 06:33:36 INFO: [core] [Channel #9] Closing the name resolver
2024/03/09 06:33:36 INFO: [core] [Channel #9 SubChannel #10] Subchannel Connectivity change to SHUTDOWN
2024/03/09 06:33:36 INFO: [core] [Channel #9 SubChannel #10] Subchannel deleted
2024/03/09 06:33:36 INFO: [core] [Channel #9] Channel deleted
2024-03-09T06:33:36Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2024-03-09T06:33:36Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.wiretrustee.com:33073 context deadline exceeded
2024-03-09T06:33:36Z WARN client/cmd/root.go:204: retrying Login to the Management service in 3.761655657s due to error context deadline exceeded
2024/03/09 06:33:36 INFO: [core] Creating new client transport to "{Addr: \"api.wiretrustee.com:33073\", ServerName: \"api.wiretrustee.com:33073\", }": connection error: desc = "transport: Error while dialing: dial tcp: lookup api.wiretrustee.com: operation was canceled"
2024/03/09 06:33:36 WARNING: [core] [Channel #9 SubChannel #10] grpc: addrConn.createTransport failed to connect to {Addr: "api.wiretrustee.com:33073", ServerName: "api.wiretrustee.com:33073", }. Err: connection error: desc = "transport: Error while dialing: dial tcp: lookup api.wiretrustee.com: operation was canceled"
^P2024/03/09 06:33:40 INFO: [core] [Channel #11] Channel created
2024/03/09 06:33:40 INFO: [core] [Channel #11] original dial target is: "api.wiretrustee.com:33073"
2024/03/09 06:33:40 INFO: [core] [Channel #11] parsed dial target is: {Scheme:api.wiretrustee.com Authority: URL:{Scheme:api.wiretrustee.com Opaque:33073 User: Host: Path: RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
2024/03/09 06:33:40 INFO: [core] [Channel #11] fallback to scheme "passthrough"
2024/03/09 06:33:40 INFO: [core] [Channel #11] parsed dial target is: {Scheme:passthrough Authority: URL:{Scheme:passthrough Opaque: User: Host: Path:/api.wiretrustee.com:33073 RawPath: OmitHost:false ForceQuery:false RawQuery: Fragment: RawFragment:}}
2024/03/09 06:33:40 INFO: [core] [Channel #11] Channel authority set to "api.wiretrustee.com:33073"
2024/03/09 06:33:40 INFO: [core] [Channel #11] Resolver state updated: {
  "Addresses": [
    {
      "Addr": "api.wiretrustee.com:33073",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Type": 0,
      "Metadata": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/03/09 06:33:40 INFO: [core] [Channel #11] Channel switches to new LB policy "pick_first"
2024/03/09 06:33:40 INFO: [core] [Channel #11 SubChannel #12] Subchannel created
2024/03/09 06:33:40 INFO: [core] [Channel #11] Channel Connectivity change to CONNECTING
2024/03/09 06:33:40 INFO: [core] [Channel #11 SubChannel #12] Subchannel Connectivity change to CONNECTING
2024/03/09 06:33:40 INFO: [core] [Channel #11 SubChannel #12] Subchannel picks a new address "api.wiretrustee.com:33073" to connect
2024/03/09 06:33:40 INFO: [core] pickfirstBalancer: UpdateSubConnState: 0xc00071ca80, {CONNECTING <nil>}

The key is still active image

Plozano94 commented 7 months ago

Same in Ubuntu here...

bolavefasfas commented 7 months ago

Same in Ubuntu here...

Attach your detailed logs also