按照官网安装指南安装完成后控制台出现404


#1

按照 https://resources.count.ly/docs/installing-countly-server 安装配置完后,配置了一个本地ip地址
但是在页面里无法创建新的app
调试控制台发现下面这段日志

Failed to load resource: the server responded with a status of 404 (Not Found)

控制台请求地址是
http://192.168.6.129:6001/i/apps/create?callback=jQuery183044178122638440964_1511170958588&args={"name"%3A"Test"%2C"type"%3A"desktop"%2C"category"%3A"undefined"%2C"timezone"%3A"Asia%2FShanghai"%2C"country"%3A"CN"}&api_key=0f11a6b1376e8d6c7120c517d6f19365&_=1511171007655

感觉是api请求有问题,api服务是3001端口,可是为何web页面会请求到默认配置的6001端口

有人知道怎么解决么?


#2

你好, 6001是我们 countly dashboard 服务的端口, 3001 是 countly api服务的端口, 正常情况下是通过nginx 80端口进来 然后根据路径转发到不同的upstream. 默认配置文件如下:https://github.com/Countly/countly-server/blob/master/bin/config/nginx.server.conf

你可以尝试排查一下 nginx, countly dashboard, countly api的端口是否正常打开