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

failed to create admin #565

Closed lihaiz closed 2 years ago

lihaiz commented 2 years ago

sudo wget -qO - https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/nm-quick.sh | bash -s -- -d xx.ddns.net -e example@email.com Installation succeeded, use http://xx.ddns.net:8082 open the web, create admin failed, tips:Could not reach server

hehh2001 commented 2 years ago

同样的问题出现,我是采用docker安装,容器正常运行,之后打开网页,无法创建管理员

0xdcarns commented 2 years ago

问题一定是您用来访问仪表板的本地计算机无法联系您的服务器。 确保您可以访问它或至少可以 ping 通它。 如果可能,请检查服务器计算机上的端口和防火墙。

我使用谷歌翻译,如果阅读困难,请见谅。

lihaiz commented 2 years ago

一定是您使用访问仪表板的问题本地计算机无法清除连接您访问的服务器。如果确保您可以将其或至少可以ping通。它可能,请服务器计算机上的端口和防火墙。

我使用谷歌翻译,如果阅读困难,请见谅。

可以访问的,已经关闭了所有防火墙了

afeiszli commented 2 years ago

I'm going to pair this with an existing bug, which is that when the server connection is failing, it just says "failed to create admin"

shizunge commented 2 years ago

一定是您使用访问仪表板的问题本地计算机无法清除连接您访问的服务器。如果确保您可以将其或至少可以ping通。它可能,请服务器计算机上的端口和防火墙。 我使用谷歌翻译,如果阅读困难,请见谅。

可以访问的,已经关闭了所有防火墙了

Check whether you can access:

https://api.NETMAKER_BASE_DOMAIN/api/networks

Where https://api.NETMAKER_BASE_DOMAIN is the BACKEND_URL environment variable you set.

If you go directly to that URL from you browser, you should get a JSON file saying "error verifying user token" (expected, because header is not correct). Or you can access the API via curl with a correct header, see https://netmaker.org/api.html.

lijc016 commented 2 years ago

同样的问题出现,我是采用docker安装,容器正常运行,之后打开网页,无法创建管理员

经过排查,有可能是因为GFW的拦截导致的;我在海外服务器配置出现了这个问题,在本地配置成功。 详细可以看一下TLS报错。

afeiszli commented 2 years ago

@lijc016 @lihaiz @hehh2001 is this issue still relevant?

Nexxus-LMT commented 2 years ago

having the same issue. and i can reach the url specified. using ngnix as a reverse proxy

Nexxus-LMT commented 2 years ago

note i was able to do so when i changed the username i was attempting to add.

Nexxus-LMT commented 2 years ago

logged in from my officce and was asked to create a user once more.... somethings wrong. using no caddy docker setup.

note: was issue with remote proxy setup. using engine nginx as proxy.

srezone commented 2 years ago

version 0.14.3 have same issue.

afeiszli commented 2 years ago

@srezone @Nexxus-LMT try tunning the following: curl -H 'Content-Type: application/json' https://api.nm.67-207-85-236.nip.io/api/users/adm/hasadmin

If it returns "false" then the API is healthy. However, my guess is there is some certificate error in the middle which is preventing a good connection to your API.

afeiszli commented 2 years ago

Closing, since there has been no update here.