nebula-graph-dashboard-1.0.2安装报错

提问参考模版:

  • nebula 版本:2.6.1

  • 部署方式:分布式

  • 安装方式:源码编译

  • 是否为线上版本:Y

  • 硬件信息

    • 磁盘( 普通)
    • CPU、内存信息 2 * 8
  • 问题的具体描述
    node -v v14.17.3
    npm -v 6.14.13
    版本在社区看到要降低,目前是降低后的部署启动报错
    在目录nebula-graph-dashboard 执行 npm run start
    报错日志如下 :

  • 相关 日志信息(尽量使用文本形式方便检索)

[egg-scripts] 2021-11-26 11:31:50,935 ERROR 13669 [master] app_worker#2:13693 start fail, exiting with code:1
[egg-scripts] 2021-11-26 11:31:50,935 ERROR 13669 [master] exit with code:1
[egg-scripts] 2021-11-26 11:31:50,940 ERROR 13676 [agent_worker] receive disconnect event on child_process fork mode, exiting with code:110
[egg-scripts] 2021-11-26 11:31:50,942 ERROR 13676 [agent_worker] exit with code:110
[egg-scripts] Error: write EPIPE
[egg-scripts]     at process.target._send (internal/child_process.js:839:20)
[egg-scripts]     at process.target.send (internal/child_process.js:710:19)
[egg-scripts]     at Object.<anonymous> (/opt/nebula-graph-dashboard/nebula-graph-dashboard/node_modules/egg-cluster/lib/app_worker.js:34:9)
[egg-scripts]     at Module._compile (internal/modules/cjs/loader.js:1085:14)
[egg-scripts]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
[egg-scripts]     at Module.load (internal/modules/cjs/loader.js:950:32)
[egg-scripts]     at Function.Module._load (internal/modules/cjs/loader.js:790:14)
[egg-scripts]     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
[egg-scripts]     at internal/main/run_main_module.js:17:47
[egg-scripts] 2021-11-26 11:31:50,978 ERROR 13687 [app_worker] exit with code:1
[egg-scripts] Error: write EPIPE
[egg-scripts]     at process.target._send (internal/child_process.js:839:20)
[egg-scripts]     at process.target.send (internal/child_process.js:710:19)
[egg-scripts]     at Object.<anonymous> (/opt/nebula-graph-dashboard/nebula-graph-dashboard/node_modules/egg-cluster/lib/app_worker.js:34:9)
[egg-scripts]     at Module._compile (internal/modules/cjs/loader.js:1085:14)
[egg-scripts]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
[egg-scripts]     at Module.load (internal/modules/cjs/loader.js:950:32)
[egg-scripts]     at Function.Module._load (internal/modules/cjs/loader.js:790:14)
[egg-scripts]     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
[egg-scripts]     at internal/main/run_main_module.js:17:47
[egg-scripts] 2021-11-26 11:31:51,001 ERROR 13694 [app_worker] exit with code:1
[egg-scripts]
[egg-scripts] Start got error, see /root/logs/master-stderr.log
[egg-scripts] Or use `--ignore-stderr` to ignore stderr at startup.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nebula-graph-dashboard@1.0.2 start: `egg-scripts start --daemon --title=egg-server-nebula-dashboard --workers=3`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nebula-graph-dashboard@1.0.2 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-11-26T03_31_52_542Z-debug.log

求大佬帮忙看看
谢谢

下载的是安装包还是源码

安装包,按照官网安装文档下载的是https://oss-cdn.nebula-graph.com.cn/nebula-graph-dashboard/1.0.2/nebula-graph-dashboard-1.0.2.x86_64.tar.gz
按照步骤安装的

机器环境是什么,现在这个安装包是基于linux CentOS打的哦

可以在dashboard目录下执行npm install 重新安装一下依赖
npm install
npm run tsc
npm run build
npm run start
按顺序执行下看看

老师好,我们使用3台4核8G centod 7机器,我把node重新安装,已经成功了
谢谢大佬热心帮助

1 个赞

如果你觉得 Nicola 解决了你的问题,可以勾选他回复为解决方案,或者勾选你自己的回复为解决方案哈

老师请问一下,nuanwa-nebula-dashboard前端访问后端返回的报错日志在什么位置可以查到?

nuanwa-nebula-dashboard前端是指我们发布这个nebula-dashboard前端项目吗?前端请求后端的日志需要在相对应的后端服务日志里面去找的。我们依赖服务好几个,这里不清楚你指的是http-gateway还是prometheus?

可以描述下是哪些请求嘛?比如监控指标数据返回报错,还是元数据请求接口报错

老师是这样的,我在测试环境安装dashboard可以正常访问登录,同样的配置在生产环境启动后,生产登录页面显示正常,但是登录显示504,failed undefined 登录请求这个/api-nebula/db/connect报错,帮忙看一下,谢谢

生产环境http-gateway的服务有启动嘛?http-gateway服务网络通吗?先排查下这两点

服务都起来了,排查下来是我们的生产域名是https,目前dashboard不支持https,只支持http,感觉是这个问题,请老师帮忙看一下

dashboard不支持https是指? 你访问的服务不支持(因为同源政策吗),还是本身前端本身加了sll启动不了?

现在也不是http的问题了,我们生产环境的域名指向端口是7003,但是输入账号密码点击登录指向的端口是9669,服务器又解析不了这个域名,所以导致504,麻烦老师帮忙看看呢

这个是代理的问题呀,你没有更新代理文件,你可以看下文档,我们有描述怎么修改的

请问是这个吗?把9669改成7003 ?
{
“connection”: {
“ip”: “192.168.xx.4”,
“port”: 9669
},
“alias”: {
“ip:port”: “instance1”
},
“chartBaseLine”: {

}

}

不是的哦,nebula-dashboard优化建议 目前可以参考下这个,后面我们会把这个抽离一个单独文件配置

createProxyMiddleware({
target: http://${(ctx.request.header.host as string).split(':')[0]}:9090,
pathRewrite: {
‘/api-metrics’: ‘/api/v1’,
},
changeOrigin: true,
}),
还有proxy.ts 在哪个文件夹下面?我找不到呀

nebula-dashboard/proxy.ts at master · vesoft-inc/nebula-dashboard · GitHub 可以点进去看下目录结构