netmaker icon indicating copy to clipboard operation
netmaker copied to clipboard

failed to create admin

Open lihaiz opened this issue 3 years ago • 12 comments

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

lihaiz avatar Jan 02 '22 14:01 lihaiz

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

hehh2001 avatar Jan 14 '22 05:01 hehh2001

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

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

0xdcarns avatar Jan 14 '22 13:01 0xdcarns

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

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

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

lihaiz avatar Jan 14 '22 14:01 lihaiz

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"

afeiszli avatar Jan 18 '22 16:01 afeiszli

一定是您使用访问仪表板的问题本地计算机无法清除连接您访问的服务器。如果确保您可以将其或至少可以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.

shizunge avatar Jan 19 '22 03:01 shizunge

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

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

lijc016 avatar Jan 22 '22 16:01 lijc016

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

afeiszli avatar May 18 '22 20:05 afeiszli

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

Nexxus-LMT avatar May 31 '22 12:05 Nexxus-LMT

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

Nexxus-LMT avatar May 31 '22 12:05 Nexxus-LMT

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.

Nexxus-LMT avatar May 31 '22 17:05 Nexxus-LMT

version 0.14.3 have same issue.

srezone avatar Jun 28 '22 07:06 srezone

@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 avatar Jul 28 '22 16:07 afeiszli

Closing, since there has been no update here.

afeiszli avatar Sep 22 '22 12:09 afeiszli