gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.52k stars 552 forks source link

[Bug]: docker netmaker Fatal: Admin: could not connect to broker, token timeout, exiting ... #1722

Closed laiqinghua closed 2 years ago

laiqinghua commented 2 years ago

Contact Details

nuandong.lai@gmail.com

What happened?

A bug happened!

https://netmaker.readthedocs.io/en/develop/quick-start.html

follow the document , but failed

Version

v0.16.1

What OS are you using?

Linux

Relevant log output

root@VM-0-42-ubuntu:~# docker logs -f netmaker

 __   __     ______     ______   __    __     ______     __  __     ______     ______
/\ "-.\ \   /\  ___\   /\__  _\ /\ "-./  \   /\  __ \   /\ \/ /    /\  ___\   /\  == \
\ \ \-.  \  \ \  __\   \/_/\ \/ \ \ \-./\ \  \ \  __ \  \ \  _"-.  \ \  __\   \ \  __<
 \ \_\\"\_\  \ \_____\    \ \_\  \ \_\ \ \_\  \ \_\ \_\  \ \_\ \_\  \ \_____\  \ \_\ \_\
  \/_/ \/_/   \/_____/     \/_/   \/_/  \/_/   \/_/\/_/   \/_/\/_/   \/_____/   \/_/ /_/

[netmaker] 2022-11-10 10:37:02 connecting to sqlite
[netmaker] 2022-11-10 10:37:02 database successfully connected
[netmaker] 2022-11-10 10:37:03 no OAuth provider found or not configured, continuing without OAuth
[netmaker] 2022-11-10 10:37:04 REST Server successfully started on port  8081  (REST)
[netmaker] 2022-11-10 10:37:04 connecting to mq broker at mq:1883 with TLS? false
[netmaker] Fatal: Admin: could not connect to broker, token timeout, exiting ...

Contributing guidelines

laiqinghua commented 2 years ago

docker-compose.yml configure file

root@VM-0-42-ubuntu:~# cat docker-compose.yml version: "3.4"

services: netmaker: container_name: netmaker image: gravitl/netmaker:v0.16.1 cap_add:

laiqinghua commented 2 years ago

C:\Users\p_qhualai>nslookup broker.nm.ddwan.ml 服务器: UnKnown Address: 192.168.255.10

非权威应答: 名称: broker.nm.ddwan.ml Address: 129.28.14.89

C:\Users\p_qhualai>nslookup api.nm.ddwan.ml 服务器: UnKnown Address: 192.168.255.10

非权威应答: 名称: api.nm.ddwan.ml Address: 129.28.14.89

C:\Users\p_qhualai>nslookup dashboard.nm.ddwan.ml 服务器: UnKnown Address: 192.168.255.10

非权威应答: 名称: dashboard.nm.ddwan.ml Address: 129.28.14.89

laiqinghua commented 2 years ago

@afeiszli @mattkasun @0xdcarns Please help me

mattkasun commented 2 years ago

why are you getting two different addresses for domain lookups for *.nm.ddwan.ml?

laiqinghua commented 2 years ago

root@VM-0-133-ubuntu:/home/ubuntu# nslookup nm.ddwan.ml Server: 127.0.0.53 Address: 127.0.0.53#53

Non-authoritative answer: Name: nm.ddwan.ml Address: 129.28.14.89


netmaker container error logs:

root@VM-0-133-ubuntu:/home/ubuntu# docker logs -f netmaker


/\ "-.\ \ /\ \ /_ _\ /\ "-./ \ /\ \ /\ \/ / /\ _\ /\ == \ \ \ -. \ \ \ _\ \//\ \/ \ \ -./\ \ \ \ \ \ \ "-. \ \ \ \ \ < \ _\"_\ \ _\ \ _\ \ _\ \ _\ \ _\ _\ \ _\ _\ \ _\ \ _\ _\ \// \// \/____/ \// \// \// \//\// \//\// \/____/ \// //

[netmaker] 2022-11-11 19:33:31 connecting to sqlite [netmaker] 2022-11-11 19:33:32 database successfully connected [netmaker] 2022-11-11 19:33:33 no OAuth provider found or not configured, continuing without OAuth [netmaker] 2022-11-11 19:33:36 REST Server successfully started on port 8081 (REST) [netmaker] 2022-11-11 19:33:36 connecting to mq broker at mq:1883 with TLS? false [netmaker] Fatal: Admin: could not connect to broker, token timeout, exiting ...

laiqinghua commented 2 years ago

I found the reason. I used docker ce. After I uninstalled the lower versions of containerd and docker ce, the installation method using the installation script has been successfully installed.

Reason: docker ce and containerd versions are too low. Thank you for your help!