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.29k stars 518 forks source link

Docker container fails to connect to https://api.wiretrustee.com:443 on Linux ARM #839

Open NekoLuka opened 1 year ago

NekoLuka commented 1 year ago

Describe the problem When launching the agent for Docker, the services fail to connect to the management API

To Reproduce Steps to reproduce the behavior:

  1. Get an ARM device
  2. Copy the config for docker from the management page
  3. Run said config on ARM device
  4. See errors in log

Expected behavior The agent should connect to the management API

NetBird status -d output: If applicable, add the output of the netbird status -d command

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here. Logs:

# docker run --rm --cap-add=NET_ADMIN -e NB_SETUP_KEY=XXX -v netbird-client:/etc/netbird netbirdio/netbird:latest
2023-05-07T20:37:40Z INFO client/internal/config.go:107: generating new config /etc/netbird/config.json
2023-05-07T20:37:45Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2023-05-07T20:37:45Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.wiretrustee.com:443 context deadline exceeded
2023-05-07T20:37:45Z WARN client/cmd/root.go:187: retrying Login to the Management service in 888.935035ms due to error context deadline exceeded
2023-05-07T20:37:51Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2023-05-07T20:37:51Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.wiretrustee.com:443 context deadline exceeded
2023-05-07T20:37:51Z WARN client/cmd/root.go:187: retrying Login to the Management service in 752.025144ms due to error context deadline exceeded
2023-05-07T20:37:56Z ERRO management/client/grpc.go:64: failed creating connection to Management Service context deadline exceeded
2023-05-07T20:37:56Z ERRO client/internal/login.go:96: failed connecting to the Management service https://api.wiretrustee.com:443 context deadline exceeded
2023-05-07T20:37:56Z WARN client/cmd/root.go:187: retrying Login to the Management service in 2.552169567s due to error context deadline exceeded
mlsmaycon commented 1 year ago

Hello @NekoLuka , sorry for not replying your issue sooner. If the problem still happening, can you run the container with these two environment variables and share the logs?

-e GRPC_GO_LOG_VERBOSITY_LEVEL=99 -e GRPC_GO_LOG_SEVERITY_LEVEL=info