Dashboard nebula-graph-dashboard 无法登陆

Dashboard nebula-graph-dashboard 无法登陆

问题描述

Network连接错误,/api-nebula/db/connect接口报错,其他服务网页都有显示

其它服务配置

nebula-stats-exporter

version: v0.0.2
nebulaItems:
  - instanceName: metad0
    endpointIP: 192.168.1.94
    endpointPort: 19559
    componentType: metad
  - instanceName: metad1
    endpointIP: 192.168.1.158
    endpointPort: 19559
    componentType: metad
  - instanceName: metad2
    endpointIP: 192.168.1.159
    endpointPort: 19559
    componentType: metad
  - instanceName: graphd0
    endpointIP: 192.168.1.94
    endpointPort: 19669
    componentType: graphd
  - instanceName: graphd1
    endpointIP: 192.168.1.158
    endpointPort: 19669
    componentType: graphd
  - instanceName: graphd2
    endpointIP: 192.168.1.159
    endpointPort: 19669
    componentType: graphd
  - instanceName: storaged0
    endpointIP: 192.168.1.94
    endpointPort: 19779
    componentType: storaged
  - instanceName: storaged1
    endpointIP: 192.168.1.158
    endpointPort: 19779
    componentType: storaged
  - instanceName: storaged2
    endpointIP: 192.168.1.159
    endpointPort: 19779
    componentType: storaged

prometheus

global:
  scrape_interval:     5s
  evaluation_interval: 5s
scrape_configs:
  - job_name: 'node-exporter'
    static_configs:
      - targets: [
          '192.168.1.94:9100', # your node-exporter metrics endpoints
          '192.168.1.158:9100',
          '192.168.1.159:9100'
        ]
  - job_name: 'nebula-stats-exporter'
    static_configs:
      - targets: [
         '127.0.0.1:9200',  # nebula-stats-exporter metrics endpoints
        ]

nebula-graph-dashboard

{
    "connection": {
        "ip": "192.168.1.94",
        "port": 9669
    },
    "alias": {
        "ip:port": "instance1"
    },
    "chartBaseLine": {

    }
}

报什么错误?http-gateway服务有启动吗

从网页上看好像是链接超时,但我未找到它的错误信息。
http-gateway服务应该已经启动了

nebula-http-gateway网页截图以及日志信息


当前发送的请求到这个服务了吗?他们直接网络是通的吗?

是的,通的,刚刚请求的服务如下图

您好,我这里有新的进展。
这些web服务我都是用nginx转发的,我分别用代码调用nginx服务器与nebula-graph-dashboard 服务器 /api-nebula/db/connect 接口发现nginx服务器无法访问,nebula-graph-dashboard 服务器却可以访问,由于此接口是post请求,请问nebula-graph-dashboard 服务是否做了跨域的限制?

我们用代理转发的,不存在跨域的吧,当然除非你们那边会不会安全组访问限制?

你不需要nginx转发的,我们自己有代理的

我部署nebula-graph-dashboard服务器没有外网,所以才用nginx做的转发 :joy:

你先看下用postman发请求排查下跨域问题

看下是否能正常请求返回

我换了一台有外网的机器的重新部署了,发现还是同样的问题,这次没用nginx,所以说不是nginx的问题,我用postman请求也接收不到,nebula-graph-dashboard好像接收不到POST请求
postman请求超时

web日志

这个请求的接口是向dashboard的一个后台服务http-gateway发送的,你可以检查下这个服务是否启动,端口是否被占用

请问问题解决了吗?我也是相同的问题。。。

抱歉,我现在没有解决此问题:joy:
如果我这里有进展,我可以回复你

http-gateway 服务启动了吗?可以查看下

开一个贴吧 我们会跟进处理的

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。