Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to self hosted netbird - ERRO management/client/grpc.go:278: failed while getting Management Service public key: rpc error: code = Unimplemented desc = unknown service management.ManagementService #2831

Open
VitorNilson opened this issue Nov 1, 2024 · 0 comments

Comments

@VitorNilson
Copy link

VitorNilson commented Nov 1, 2024

Describe the problem

I have installed netbird using Jaconi's Helm chart.

I have running:

My dashboard is working perfectly, I can create users/keys and etc... the management looks working good aswell.

The problem looks like to be on the signal.

This is the error that I get when I try to connect:

vitor@vitor-Latitude-3410:~/examples/vpn/helm-charts$ sudo bash -c 'GRPC_GO_LOG_VERBOSITY_LEVEL=99 GRPC_GO_LOG_SEVERITY_LEVEL=info netbird up -F -l debug  -m netbird up --management-url https://netbird-signal.my-host.me'
2024-11-01T18:20:59-03:00 INFO client/internal/config.go:235: new Management URL provided, updated to "https://netbird-signal.my-host.me" (old value "https://netbird-signal.my-host.me:443")
2024-11-01T18:20:59-03:00 DEBG client/internal/login.go:93: connecting to the Management service https://netbird-signal.my-host.me:443
2024/11/01 18:20:59 INFO: [core] [Channel #1]Channel created
2024/11/01 18:20:59 INFO: [core] [Channel #1]original dial target is: "netbird-signal.my-host.me:443"
2024/11/01 18:20:59 INFO: [core] [Channel #1]parsed dial target is: resolver.Target{URL:url.URL{Scheme:"netbird-signal.my-host.me", Opaque:"443", User:(*url.Userinfo)(nil), Host:"", Path:"", RawPath:"", OmitHost:false, ForceQuery:false, RawQuery:"", Fragment:"", RawFragment:""}}
2024/11/01 18:20:59 INFO: [core] [Channel #1]fallback to scheme "passthrough"
2024/11/01 18:20:59 INFO: [core] [Channel #1]parsed dial target is: passthrough:///netbird-signal.my-host.me:443
2024/11/01 18:20:59 INFO: [core] [Channel #1]Channel authority set to "netbird-signal.my-host.me:443"
2024/11/01 18:20:59 INFO: [core] [Channel #1]Resolver state updated: {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/11/01 18:20:59 INFO: [core] [Channel #1]Channel switches to new LB policy "pick_first"
2024/11/01 18:20:59 INFO: [core] [pick-first-lb 0xc0003a38c0] Received new config {
  "shuffleAddressList": false
}, resolver state {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
}
2024/11/01 18:20:59 INFO: [core] [Channel #1 SubChannel #2]Subchannel created
2024/11/01 18:20:59 INFO: [core] [Channel #1]Channel Connectivity change to CONNECTING
2024/11/01 18:20:59 INFO: [core] [Channel #1]Channel exiting idle mode
2024/11/01 18:20:59 INFO: [core] [Channel #1 SubChannel #2]Subchannel Connectivity change to CONNECTING
2024/11/01 18:20:59 INFO: [core] [Channel #1 SubChannel #2]Subchannel picks a new address "netbird-signal.my-host.me:443" to connect
2024/11/01 18:20:59 INFO: [core] [pick-first-lb 0xc0003a38c0] Received SubConn state update: 0xc0003a3950, {ConnectivityState:CONNECTING ConnectionError:<nil>}
2024-11-01T18:20:59-03:00 DEBG util/net/dialer_nonios.go:52: Dialing tcp netbird-signal.my-host.me:443
2024/11/01 18:20:59 INFO: [core] [Channel #1 SubChannel #2]Subchannel Connectivity change to READY
2024/11/01 18:20:59 INFO: [core] [pick-first-lb 0xc0003a38c0] Received SubConn state update: 0xc0003a3950, {ConnectivityState:READY ConnectionError:<nil>}
2024/11/01 18:20:59 INFO: [core] [Channel #1]Channel Connectivity change to READY
2024-11-01T18:20:59-03:00 DEBG client/internal/login.go:63: connected to the Management service https://netbird-signal.my-host.me:443
2024-11-01T18:20:59-03:00 ERRO management/client/grpc.go:278: failed while getting Management Service public key: rpc error: code = Unimplemented desc = unknown service management.ManagementService
2024-11-01T18:20:59-03:00 ERRO client/internal/login.go:105: failed while getting Management Service public key: failed while getting Management Service public key
2024/11/01 18:20:59 INFO: [core] [Channel #1]Channel Connectivity change to SHUTDOWN
2024/11/01 18:20:59 INFO: [core] [Channel #1]Closing the name resolver
2024/11/01 18:20:59 INFO: [core] [Channel #1]ccBalancerWrapper: closing
2024/11/01 18:20:59 INFO: [core] [Channel #1 SubChannel #2]Subchannel Connectivity change to SHUTDOWN
2024/11/01 18:20:59 INFO: [core] [Channel #1 SubChannel #2]Subchannel deleted
2024/11/01 18:20:59 INFO: [transport] [client-transport 0xc0000c8248] Closing: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:20:59 INFO: [transport] [client-transport 0xc0000c8248] loopyWriter exiting with error: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:20:59 INFO: [core] [Channel #1]Channel deleted
2024-11-01T18:20:59-03:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 732.480693ms due to error failed while getting Management Service public key
2024-11-01T18:21:00-03:00 DEBG client/internal/login.go:93: connecting to the Management service https://netbird-signal.my-host.me:443
2024/11/01 18:21:00 INFO: [core] [Channel #4]Channel created
2024/11/01 18:21:00 INFO: [core] [Channel #4]original dial target is: "netbird-signal.my-host.me:443"
2024/11/01 18:21:00 INFO: [core] [Channel #4]parsed dial target is: resolver.Target{URL:url.URL{Scheme:"netbird-signal.my-host.me", Opaque:"443", User:(*url.Userinfo)(nil), Host:"", Path:"", RawPath:"", OmitHost:false, ForceQuery:false, RawQuery:"", Fragment:"", RawFragment:""}}
2024/11/01 18:21:00 INFO: [core] [Channel #4]fallback to scheme "passthrough"
2024/11/01 18:21:00 INFO: [core] [Channel #4]parsed dial target is: passthrough:///netbird-signal.my-host.me:443
2024/11/01 18:21:00 INFO: [core] [Channel #4]Channel authority set to "netbird-signal.my-host.me:443"
2024/11/01 18:21:00 INFO: [core] [Channel #4]Resolver state updated: {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/11/01 18:21:00 INFO: [core] [Channel #4]Channel switches to new LB policy "pick_first"
2024/11/01 18:21:00 INFO: [core] [pick-first-lb 0xc000831dd0] Received new config {
  "shuffleAddressList": false
}, resolver state {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
}
2024/11/01 18:21:00 INFO: [core] [Channel #4 SubChannel #5]Subchannel created
2024/11/01 18:21:00 INFO: [core] [Channel #4]Channel Connectivity change to CONNECTING
2024/11/01 18:21:00 INFO: [core] [Channel #4]Channel exiting idle mode
2024/11/01 18:21:00 INFO: [core] [Channel #4 SubChannel #5]Subchannel Connectivity change to CONNECTING
2024/11/01 18:21:00 INFO: [core] [Channel #4 SubChannel #5]Subchannel picks a new address "netbird-signal.my-host.me:443" to connect
2024-11-01T18:21:00-03:00 DEBG util/net/dialer_nonios.go:52: Dialing tcp netbird-signal.my-host.me:443
2024/11/01 18:21:00 INFO: [core] [pick-first-lb 0xc000831dd0] Received SubConn state update: 0xc000831e30, {ConnectivityState:CONNECTING ConnectionError:<nil>}
2024/11/01 18:21:00 INFO: [core] [Channel #4 SubChannel #5]Subchannel Connectivity change to READY
2024/11/01 18:21:00 INFO: [core] [pick-first-lb 0xc000831dd0] Received SubConn state update: 0xc000831e30, {ConnectivityState:READY ConnectionError:<nil>}
2024/11/01 18:21:00 INFO: [core] [Channel #4]Channel Connectivity change to READY
2024-11-01T18:21:00-03:00 DEBG client/internal/login.go:63: connected to the Management service https://netbird-signal.my-host.me:443
2024-11-01T18:21:00-03:00 ERRO management/client/grpc.go:278: failed while getting Management Service public key: rpc error: code = Unimplemented desc = unknown service management.ManagementService
2024-11-01T18:21:00-03:00 ERRO client/internal/login.go:105: failed while getting Management Service public key: failed while getting Management Service public key
2024/11/01 18:21:00 INFO: [core] [Channel #4]Channel Connectivity change to SHUTDOWN
2024/11/01 18:21:00 INFO: [core] [Channel #4]Closing the name resolver
2024/11/01 18:21:00 INFO: [core] [Channel #4]ccBalancerWrapper: closing
2024/11/01 18:21:00 INFO: [core] [Channel #4 SubChannel #5]Subchannel Connectivity change to SHUTDOWN
2024/11/01 18:21:00 INFO: [core] [Channel #4 SubChannel #5]Subchannel deleted
2024/11/01 18:21:00 INFO: [transport] [client-transport 0xc0000c86c8] Closing: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:00 INFO: [transport] [client-transport 0xc0000c86c8] loopyWriter exiting with error: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:00 INFO: [core] [Channel #4]Channel deleted
2024-11-01T18:21:00-03:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 1.266017876s due to error failed while getting Management Service public key
2024-11-01T18:21:02-03:00 DEBG client/internal/login.go:93: connecting to the Management service https://netbird-signal.my-host.me:443
2024/11/01 18:21:02 INFO: [core] [Channel #7]Channel created
2024/11/01 18:21:02 INFO: [core] [Channel #7]original dial target is: "netbird-signal.my-host.me:443"
2024/11/01 18:21:02 INFO: [core] [Channel #7]parsed dial target is: resolver.Target{URL:url.URL{Scheme:"netbird-signal.my-host.me", Opaque:"443", User:(*url.Userinfo)(nil), Host:"", Path:"", RawPath:"", OmitHost:false, ForceQuery:false, RawQuery:"", Fragment:"", RawFragment:""}}
2024/11/01 18:21:02 INFO: [core] [Channel #7]fallback to scheme "passthrough"
2024/11/01 18:21:02 INFO: [core] [Channel #7]parsed dial target is: passthrough:///netbird-signal.my-host.me:443
2024/11/01 18:21:02 INFO: [core] [Channel #7]Channel authority set to "netbird-signal.my-host.me:443"
2024/11/01 18:21:02 INFO: [core] [Channel #7]Resolver state updated: {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/11/01 18:21:02 INFO: [core] [Channel #7]Channel switches to new LB policy "pick_first"
2024/11/01 18:21:02 INFO: [core] [pick-first-lb 0xc00040cdb0] Received new config {
  "shuffleAddressList": false
}, resolver state {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
}
2024/11/01 18:21:02 INFO: [core] [Channel #7 SubChannel #8]Subchannel created
2024/11/01 18:21:02 INFO: [core] [Channel #7]Channel Connectivity change to CONNECTING
2024/11/01 18:21:02 INFO: [core] [Channel #7]Channel exiting idle mode
2024/11/01 18:21:02 INFO: [core] [Channel #7 SubChannel #8]Subchannel Connectivity change to CONNECTING
2024/11/01 18:21:02 INFO: [core] [Channel #7 SubChannel #8]Subchannel picks a new address "netbird-signal.my-host.me:443" to connect
2024-11-01T18:21:02-03:00 DEBG util/net/dialer_nonios.go:52: Dialing tcp netbird-signal.my-host.me:443
2024/11/01 18:21:02 INFO: [core] [pick-first-lb 0xc00040cdb0] Received SubConn state update: 0xc00040ce10, {ConnectivityState:CONNECTING ConnectionError:<nil>}
2024/11/01 18:21:02 INFO: [core] [Channel #7 SubChannel #8]Subchannel Connectivity change to READY
2024/11/01 18:21:02 INFO: [core] [pick-first-lb 0xc00040cdb0] Received SubConn state update: 0xc00040ce10, {ConnectivityState:READY ConnectionError:<nil>}
2024/11/01 18:21:02 INFO: [core] [Channel #7]Channel Connectivity change to READY
2024-11-01T18:21:02-03:00 DEBG client/internal/login.go:63: connected to the Management service https://netbird-signal.my-host.me:443
2024-11-01T18:21:02-03:00 ERRO management/client/grpc.go:278: failed while getting Management Service public key: rpc error: code = Unimplemented desc = unknown service management.ManagementService
2024-11-01T18:21:02-03:00 ERRO client/internal/login.go:105: failed while getting Management Service public key: failed while getting Management Service public key
2024/11/01 18:21:02 INFO: [core] [Channel #7]Channel Connectivity change to SHUTDOWN
2024/11/01 18:21:02 INFO: [core] [Channel #7]Closing the name resolver
2024/11/01 18:21:02 INFO: [core] [Channel #7]ccBalancerWrapper: closing
2024/11/01 18:21:02 INFO: [core] [Channel #7 SubChannel #8]Subchannel Connectivity change to SHUTDOWN
2024/11/01 18:21:02 INFO: [core] [Channel #7 SubChannel #8]Subchannel deleted
2024/11/01 18:21:02 INFO: [transport] [client-transport 0xc0009ba488] Closing: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:02 INFO: [transport] [client-transport 0xc0009ba488] loopyWriter exiting with error: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:02 INFO: [core] [Channel #7]Channel deleted
2024-11-01T18:21:02-03:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 2.892509164s due to error failed while getting Management Service public key
2024-11-01T18:21:05-03:00 DEBG client/internal/login.go:93: connecting to the Management service https://netbird-signal.my-host.me:443
2024/11/01 18:21:05 INFO: [core] [Channel #10]Channel created
2024/11/01 18:21:05 INFO: [core] [Channel #10]original dial target is: "netbird-signal.my-host.me:443"
2024/11/01 18:21:05 INFO: [core] [Channel #10]parsed dial target is: resolver.Target{URL:url.URL{Scheme:"netbird-signal.my-host.me", Opaque:"443", User:(*url.Userinfo)(nil), Host:"", Path:"", RawPath:"", OmitHost:false, ForceQuery:false, RawQuery:"", Fragment:"", RawFragment:""}}
2024/11/01 18:21:05 INFO: [core] [Channel #10]fallback to scheme "passthrough"
2024/11/01 18:21:05 INFO: [core] [Channel #10]parsed dial target is: passthrough:///netbird-signal.my-host.me:443
2024/11/01 18:21:05 INFO: [core] [Channel #10]Channel authority set to "netbird-signal.my-host.me:443"
2024/11/01 18:21:05 INFO: [core] [Channel #10]Resolver state updated: {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/11/01 18:21:05 INFO: [core] [Channel #10]Channel switches to new LB policy "pick_first"
2024/11/01 18:21:05 INFO: [core] [pick-first-lb 0xc00040d230] Received new config {
  "shuffleAddressList": false
}, resolver state {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
}
2024/11/01 18:21:05 INFO: [core] [Channel #10 SubChannel #11]Subchannel created
2024/11/01 18:21:05 INFO: [core] [Channel #10]Channel Connectivity change to CONNECTING
2024/11/01 18:21:05 INFO: [core] [Channel #10]Channel exiting idle mode
2024/11/01 18:21:05 INFO: [core] [Channel #10 SubChannel #11]Subchannel Connectivity change to CONNECTING
2024/11/01 18:21:05 INFO: [core] [Channel #10 SubChannel #11]Subchannel picks a new address "netbird-signal.my-host.me:443" to connect
2024-11-01T18:21:05-03:00 DEBG util/net/dialer_nonios.go:52: Dialing tcp netbird-signal.my-host.me:443
2024/11/01 18:21:05 INFO: [core] [pick-first-lb 0xc00040d230] Received SubConn state update: 0xc00040d290, {ConnectivityState:CONNECTING ConnectionError:<nil>}
2024/11/01 18:21:05 INFO: [core] [Channel #10 SubChannel #11]Subchannel Connectivity change to READY
2024/11/01 18:21:05 INFO: [core] [pick-first-lb 0xc00040d230] Received SubConn state update: 0xc00040d290, {ConnectivityState:READY ConnectionError:<nil>}
2024/11/01 18:21:05 INFO: [core] [Channel #10]Channel Connectivity change to READY
2024-11-01T18:21:05-03:00 DEBG client/internal/login.go:63: connected to the Management service https://netbird-signal.my-host.me:443
2024-11-01T18:21:05-03:00 ERRO management/client/grpc.go:278: failed while getting Management Service public key: rpc error: code = Unimplemented desc = unknown service management.ManagementService
2024-11-01T18:21:05-03:00 ERRO client/internal/login.go:105: failed while getting Management Service public key: failed while getting Management Service public key
2024/11/01 18:21:05 INFO: [core] [Channel #10]Channel Connectivity change to SHUTDOWN
2024/11/01 18:21:05 INFO: [core] [Channel #10]Closing the name resolver
2024/11/01 18:21:05 INFO: [core] [Channel #10]ccBalancerWrapper: closing
2024/11/01 18:21:05 INFO: [core] [Channel #10 SubChannel #11]Subchannel Connectivity change to SHUTDOWN
2024/11/01 18:21:05 INFO: [core] [Channel #10 SubChannel #11]Subchannel deleted
2024/11/01 18:21:05 INFO: [transport] [client-transport 0xc0009ba908] Closing: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:05 INFO: [transport] [client-transport 0xc0009ba908] loopyWriter exiting with error: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:05 INFO: [core] [Channel #10]Channel deleted
2024-11-01T18:21:05-03:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 4.838232102s due to error failed while getting Management Service public key
2024-11-01T18:21:10-03:00 DEBG client/internal/login.go:93: connecting to the Management service https://netbird-signal.my-host.me:443
2024/11/01 18:21:10 INFO: [core] [Channel #13]Channel created
2024/11/01 18:21:10 INFO: [core] [Channel #13]original dial target is: "netbird-signal.my-host.me:443"
2024/11/01 18:21:10 INFO: [core] [Channel #13]parsed dial target is: resolver.Target{URL:url.URL{Scheme:"netbird-signal.my-host.me", Opaque:"443", User:(*url.Userinfo)(nil), Host:"", Path:"", RawPath:"", OmitHost:false, ForceQuery:false, RawQuery:"", Fragment:"", RawFragment:""}}
2024/11/01 18:21:10 INFO: [core] [Channel #13]fallback to scheme "passthrough"
2024/11/01 18:21:10 INFO: [core] [Channel #13]parsed dial target is: passthrough:///netbird-signal.my-host.me:443
2024/11/01 18:21:10 INFO: [core] [Channel #13]Channel authority set to "netbird-signal.my-host.me:443"
2024/11/01 18:21:10 INFO: [core] [Channel #13]Resolver state updated: {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/11/01 18:21:10 INFO: [core] [Channel #13]Channel switches to new LB policy "pick_first"
2024/11/01 18:21:10 INFO: [core] [pick-first-lb 0xc000924000] Received new config {
  "shuffleAddressList": false
}, resolver state {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
}
2024/11/01 18:21:10 INFO: [core] [Channel #13 SubChannel #14]Subchannel created
2024/11/01 18:21:10 INFO: [core] [Channel #13]Channel Connectivity change to CONNECTING
2024/11/01 18:21:10 INFO: [core] [Channel #13]Channel exiting idle mode
2024/11/01 18:21:10 INFO: [core] [Channel #13 SubChannel #14]Subchannel Connectivity change to CONNECTING
2024/11/01 18:21:10 INFO: [core] [Channel #13 SubChannel #14]Subchannel picks a new address "netbird-signal.my-host.me:443" to connect
2024/11/01 18:21:10 INFO: [core] [pick-first-lb 0xc000924000] Received SubConn state update: 0xc000924060, {ConnectivityState:CONNECTING ConnectionError:<nil>}
2024-11-01T18:21:10-03:00 DEBG util/net/dialer_nonios.go:52: Dialing tcp netbird-signal.my-host.me:443
2024/11/01 18:21:10 INFO: [core] [Channel #13 SubChannel #14]Subchannel Connectivity change to READY
2024/11/01 18:21:10 INFO: [core] [pick-first-lb 0xc000924000] Received SubConn state update: 0xc000924060, {ConnectivityState:READY ConnectionError:<nil>}
2024/11/01 18:21:10 INFO: [core] [Channel #13]Channel Connectivity change to READY
2024-11-01T18:21:10-03:00 DEBG client/internal/login.go:63: connected to the Management service https://netbird-signal.my-host.me:443
2024-11-01T18:21:10-03:00 ERRO management/client/grpc.go:278: failed while getting Management Service public key: rpc error: code = Unimplemented desc = unknown service management.ManagementService
2024-11-01T18:21:10-03:00 ERRO client/internal/login.go:105: failed while getting Management Service public key: failed while getting Management Service public key
2024/11/01 18:21:10 INFO: [core] [Channel #13]Channel Connectivity change to SHUTDOWN
2024/11/01 18:21:10 INFO: [core] [Channel #13]Closing the name resolver
2024/11/01 18:21:10 INFO: [core] [Channel #13]ccBalancerWrapper: closing
2024/11/01 18:21:10 INFO: [core] [Channel #13 SubChannel #14]Subchannel Connectivity change to SHUTDOWN
2024/11/01 18:21:10 INFO: [core] [Channel #13 SubChannel #14]Subchannel deleted
2024/11/01 18:21:10 INFO: [transport] [client-transport 0xc000920488] Closing: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:10 INFO: [transport] [client-transport 0xc000920488] loopyWriter exiting with error: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:10 INFO: [core] [Channel #13]Channel deleted
2024-11-01T18:21:10-03:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 6.998047948s due to error failed while getting Management Service public key
2024-11-01T18:21:17-03:00 DEBG client/internal/login.go:93: connecting to the Management service https://netbird-signal.my-host.me:443
2024/11/01 18:21:17 INFO: [core] [Channel #16]Channel created
2024/11/01 18:21:17 INFO: [core] [Channel #16]original dial target is: "netbird-signal.my-host.me:443"
2024/11/01 18:21:17 INFO: [core] [Channel #16]parsed dial target is: resolver.Target{URL:url.URL{Scheme:"netbird-signal.my-host.me", Opaque:"443", User:(*url.Userinfo)(nil), Host:"", Path:"", RawPath:"", OmitHost:false, ForceQuery:false, RawQuery:"", Fragment:"", RawFragment:""}}
2024/11/01 18:21:17 INFO: [core] [Channel #16]fallback to scheme "passthrough"
2024/11/01 18:21:17 INFO: [core] [Channel #16]parsed dial target is: passthrough:///netbird-signal.my-host.me:443
2024/11/01 18:21:17 INFO: [core] [Channel #16]Channel authority set to "netbird-signal.my-host.me:443"
2024/11/01 18:21:17 INFO: [core] [Channel #16]Resolver state updated: {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/11/01 18:21:17 INFO: [core] [Channel #16]Channel switches to new LB policy "pick_first"
2024/11/01 18:21:17 INFO: [core] [pick-first-lb 0xc000a521e0] Received new config {
  "shuffleAddressList": false
}, resolver state {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
}
2024/11/01 18:21:17 INFO: [core] [Channel #16 SubChannel #17]Subchannel created
2024/11/01 18:21:17 INFO: [core] [Channel #16]Channel Connectivity change to CONNECTING
2024/11/01 18:21:17 INFO: [core] [Channel #16]Channel exiting idle mode
2024/11/01 18:21:17 INFO: [core] [Channel #16 SubChannel #17]Subchannel Connectivity change to CONNECTING
2024/11/01 18:21:17 INFO: [core] [Channel #16 SubChannel #17]Subchannel picks a new address "netbird-signal.my-host.me:443" to connect
2024-11-01T18:21:17-03:00 DEBG util/net/dialer_nonios.go:52: Dialing tcp netbird-signal.my-host.me:443
2024/11/01 18:21:17 INFO: [core] [pick-first-lb 0xc000a521e0] Received SubConn state update: 0xc000a52240, {ConnectivityState:CONNECTING ConnectionError:<nil>}
2024/11/01 18:21:17 INFO: [core] [Channel #16 SubChannel #17]Subchannel Connectivity change to READY
2024/11/01 18:21:17 INFO: [core] [pick-first-lb 0xc000a521e0] Received SubConn state update: 0xc000a52240, {ConnectivityState:READY ConnectionError:<nil>}
2024/11/01 18:21:17 INFO: [core] [Channel #16]Channel Connectivity change to READY
2024-11-01T18:21:17-03:00 DEBG client/internal/login.go:63: connected to the Management service https://netbird-signal.my-host.me:443
2024-11-01T18:21:17-03:00 ERRO management/client/grpc.go:278: failed while getting Management Service public key: rpc error: code = Unimplemented desc = unknown service management.ManagementService
2024-11-01T18:21:17-03:00 ERRO client/internal/login.go:105: failed while getting Management Service public key: failed while getting Management Service public key
2024/11/01 18:21:17 INFO: [core] [Channel #16]Channel Connectivity change to SHUTDOWN
2024/11/01 18:21:17 INFO: [core] [Channel #16]Closing the name resolver
2024/11/01 18:21:17 INFO: [core] [Channel #16]ccBalancerWrapper: closing
2024/11/01 18:21:17 INFO: [core] [Channel #16 SubChannel #17]Subchannel Connectivity change to SHUTDOWN
2024/11/01 18:21:17 INFO: [core] [Channel #16 SubChannel #17]Subchannel deleted
2024/11/01 18:21:17 INFO: [transport] [client-transport 0xc0000c8d88] Closing: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:17 INFO: [transport] [client-transport 0xc0000c8d88] loopyWriter exiting with error: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:17 INFO: [core] [Channel #16]Channel deleted
2024-11-01T18:21:17-03:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 10.807910908s due to error failed while getting Management Service public key
2024-11-01T18:21:28-03:00 DEBG client/internal/login.go:93: connecting to the Management service https://netbird-signal.my-host.me:443
2024/11/01 18:21:28 INFO: [core] [Channel #19]Channel created
2024/11/01 18:21:28 INFO: [core] [Channel #19]original dial target is: "netbird-signal.my-host.me:443"
2024/11/01 18:21:28 INFO: [core] [Channel #19]parsed dial target is: resolver.Target{URL:url.URL{Scheme:"netbird-signal.my-host.me", Opaque:"443", User:(*url.Userinfo)(nil), Host:"", Path:"", RawPath:"", OmitHost:false, ForceQuery:false, RawQuery:"", Fragment:"", RawFragment:""}}
2024/11/01 18:21:28 INFO: [core] [Channel #19]fallback to scheme "passthrough"
2024/11/01 18:21:28 INFO: [core] [Channel #19]parsed dial target is: passthrough:///netbird-signal.my-host.me:443
2024/11/01 18:21:28 INFO: [core] [Channel #19]Channel authority set to "netbird-signal.my-host.me:443"
2024/11/01 18:21:28 INFO: [core] [Channel #19]Resolver state updated: {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)
2024/11/01 18:21:28 INFO: [core] [Channel #19]Channel switches to new LB policy "pick_first"
2024/11/01 18:21:28 INFO: [core] [pick-first-lb 0xc000924b10] Received new config {
  "shuffleAddressList": false
}, resolver state {
  "Addresses": [
    {
      "Addr": "netbird-signal.my-host.me:443",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "netbird-signal.my-host.me:443",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
}
2024/11/01 18:21:28 INFO: [core] [Channel #19 SubChannel #20]Subchannel created
2024/11/01 18:21:28 INFO: [core] [Channel #19]Channel Connectivity change to CONNECTING
2024/11/01 18:21:28 INFO: [core] [Channel #19]Channel exiting idle mode
2024/11/01 18:21:28 INFO: [core] [Channel #19 SubChannel #20]Subchannel Connectivity change to CONNECTING
2024/11/01 18:21:28 INFO: [core] [Channel #19 SubChannel #20]Subchannel picks a new address "netbird-signal.my-host.me:443" to connect
2024-11-01T18:21:28-03:00 DEBG util/net/dialer_nonios.go:52: Dialing tcp netbird-signal.my-host.me:443
2024/11/01 18:21:28 INFO: [core] [pick-first-lb 0xc000924b10] Received SubConn state update: 0xc000924b70, {ConnectivityState:CONNECTING ConnectionError:<nil>}
2024/11/01 18:21:28 INFO: [core] [Channel #19 SubChannel #20]Subchannel Connectivity change to READY
2024/11/01 18:21:28 INFO: [core] [pick-first-lb 0xc000924b10] Received SubConn state update: 0xc000924b70, {ConnectivityState:READY ConnectionError:<nil>}
2024/11/01 18:21:28 INFO: [core] [Channel #19]Channel Connectivity change to READY
2024-11-01T18:21:28-03:00 DEBG client/internal/login.go:63: connected to the Management service https://netbird-signal.my-host.me:443
2024-11-01T18:21:28-03:00 ERRO management/client/grpc.go:278: failed while getting Management Service public key: rpc error: code = Unimplemented desc = unknown service management.ManagementService
2024-11-01T18:21:28-03:00 ERRO client/internal/login.go:105: failed while getting Management Service public key: failed while getting Management Service public key
2024/11/01 18:21:28 INFO: [core] [Channel #19]Channel Connectivity change to SHUTDOWN
2024/11/01 18:21:28 INFO: [core] [Channel #19]Closing the name resolver
2024/11/01 18:21:28 INFO: [core] [Channel #19]ccBalancerWrapper: closing
2024/11/01 18:21:28 INFO: [core] [Channel #19 SubChannel #20]Subchannel Connectivity change to SHUTDOWN
2024/11/01 18:21:28 INFO: [core] [Channel #19 SubChannel #20]Subchannel deleted
2024/11/01 18:21:28 INFO: [transport] [client-transport 0xc000920908] Closing: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:28 INFO: [transport] [client-transport 0xc000920908] loopyWriter exiting with error: rpc error: code = Canceled desc = grpc: the client connection is closing
2024/11/01 18:21:28 INFO: [core] [Channel #19]Channel deleted
Error: foreground login failed: backoff cycle failed: failed while getting Management Service public key

I konw that my service is acessible and the certificates is ok:

vitor@vitor-Latitude-3410:~$ curl -v https://netbird-signal.my-host.me/
* Host netbird-signal.my-host.me:443 was resolved.
* IPv6: (none)
* IPv4: 144.22.151.220
*   Trying 144.22.151.220:443...
* Connected to netbird-signal.my-host.me (144.22.151.220) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=netbird-signal.my-host.me
*  start date: Nov  1 17:34:35 2024 GMT
*  expire date: Jan 30 17:34:34 2025 GMT
*  subjectAltName: host "netbird-signal.my-host.me" matched cert's "netbird-signal.my-host.me"
*  issuer: C=US; O=Let's Encrypt; CN=R11
*  SSL certificate verify ok.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 2: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://netbird-signal.my-host.me/
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: netbird-signal.my-host.me]
* [HTTP/2] [1] [:path: /]
* [HTTP/2] [1] [user-agent: curl/8.5.0]
* [HTTP/2] [1] [accept: */*]
> GET / HTTP/2
> Host: netbird-signal.my-host.me
> User-Agent: curl/8.5.0
> Accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Unsupported response code in HTTP response
* Connection #0 to host netbird-signal.my-host.me left intact
curl: (1) Unsupported response code in HTTP response

The logs of my signal service doesn't change since the pod is up:

vitor@vitor-Latitude-3410:~$ kubectl logs -f -n netbird netbird-signal-6bcc7f4cfc-9cp49 
2024-11-01T18:35:46Z INFO signal/cmd/run.go:110: running gRPC backward compatibility server: [::]:10000
2024-11-01T18:35:46Z INFO signal/cmd/run.go:132: running gRPC server: [::]:80
2024-11-01T18:35:46Z INFO signal/cmd/run.go:135: signal server version 0.26.3
2024-11-01T18:35:46Z INFO signal/cmd/run.go:136: started Signal Service

To Reproduce

Steps to reproduce the behavior:

  1. Install netbird using Jaconi's helm chart. (You must configure ingresses, keycloack and etc). Make sure you configured a ingress for dashboard, other for management and other for signal.
  2. Create DNS entries on cloudflare, and disable proxy for management and signal service.
  3. Access netbird UI and make sure its working correctly, inspecting the network and making sure all requests are ok.
  4. run netbird up --management-url https://netbird-signal.my-host.me
  5. Get the error.

Expected behavior

It should add succesfully a peer to netbird.

Are you using NetBird Cloud?

No, self hosted.

NetBird version

  • netbirdio/signal:0.26.3
  • netbirdio/management:0.26.3
  • netbirdio/dashboard:v2.1.3

NetBird status -dA output:

N/A

Do you face any (non-mobile) client issues?

N/A

Screenshots

UI working:
image

HTTP Requests to management working:
image

Additional context

N/A

@VitorNilson VitorNilson changed the title Can't connect to self hosted netbird - failed while getting Management Service public key: rpc error: code = Unknown desc = unexpected HTTP status code received from server: 0 (); malformed header: missing HTTP content-type Can't connect to self hosted netbird -2024-11-01T18:19:38-03:00 ERRO management/client/grpc.go:278: failed while getting Management Service public key: rpc error: code = Unimplemented desc = unknown service management.ManagementService Nov 1, 2024
@VitorNilson VitorNilson changed the title Can't connect to self hosted netbird -2024-11-01T18:19:38-03:00 ERRO management/client/grpc.go:278: failed while getting Management Service public key: rpc error: code = Unimplemented desc = unknown service management.ManagementService Can't connect to self hosted netbird - ERRO management/client/grpc.go:278: failed while getting Management Service public key: rpc error: code = Unimplemented desc = unknown service management.ManagementService Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant