Star

nebula-studio gateway exit

搭建方式
git clone https://github.com/vesoft-inc/nebula-web-docker.git
cd nebula-web-docker/v2
docker-compose up -d
可以正常使用一会,不定期挂

[root@p47022v v2]# docker-compose ps
    Name                   Command               State                Ports             
----------------------------------------------------------------------------------------
v2_client_1     ./nebula-http-gateway            Exit 2                                 
v2_importer_1   nebula-importer --port=569 ...   Up       0.0.0.0:32865->5699/tcp       
v2_nginx_1      /docker-entrypoint.sh ngin ...   Up       0.0.0.0:7001->7001/tcp, 80/tcp
v2_web_1        docker-entrypoint.sh npm r ...   Up       0.0.0.0:32866->7001/tcp       
[root@p47022v v2]# docker logs v2_client_1 
2021/01/14 04:31:44.192 [I] [asm_amd64.s:1357]  http server Running on http://0.0.0.0:8080
2021/01/14 04:32:03 [INFO] connection pool is initialized successfully
2021/01/14 04:32:03.535 [D] [server.go:2802]  |     172.27.0.5| 200 |   20.52691ms|   match| POST     /api/db/connect   r:/api/db/connect
2021/01/14 04:32:03.710 [D] [server.go:2802]  |     172.27.0.5| 200 |  54.167612ms|   match| POST     /api/db/exec   r:/api/db/exec
2021/01/14 04:32:05.264 [D] [server.go:2802]  |     172.27.0.5| 200 |  45.661046ms|   match| POST     /api/db/exec   r:/api/db/exec
2021/01/14 04:32:07.680 [D] [server.go:2802]  |     172.27.0.5| 200 |  45.462831ms|   match| POST     /api/db/exec   r:/api/db/exec
2021/01/14 04:32:08.731 [D] [server.go:2802]  |     172.27.0.5| 200 |  47.270537ms|   match| POST     /api/db/exec   r:/api/db/exec
2021/01/14 04:32:14.206 [D] [server.go:2802]  |     172.27.0.5| 200 | 279.764263ms|   match| POST     /api/db/exec   r:/api/db/exec
2021/01/14 04:32:14.566 [D] [server.go:2802]  |     172.27.0.5| 200 |  53.127463ms|   match| POST     /api/db/exec   r:/api/db/exec
2021/01/14 04:32:14.652 [D] [server.go:2802]  |     172.27.0.5| 200 |  45.750828ms|   match| POST     /api/db/exec   r:/api/db/exec
2021/01/14 04:32:15.735 [D] [server.go:2802]  |     172.27.0.5| 200 |  52.321786ms|   match| POST     /api/db/exec   r:/api/db/exec
2021/01/14 04:32:16.602 [D] [server.go:2802]  |     172.27.0.5| 200 |  53.677582ms|   match| POST     /api/db/exec   r:/api/db/exec
2021/01/14 04:32:17.642 [D] [server.go:2802]  |     172.27.0.5| 200 |  45.789734ms|   match| POST     /api/db/exec   r:/api/db/exec
2021/01/14 04:32:18.230 [D] [server.go:2802]  |     172.27.0.5| 200 |  45.872232ms|   match| POST     /api/db/exec   r:/api/db/exec
2021/01/14 04:46:57 [ERROR] Error info: write tcp 172.27.0.2:32936->10.217.61.189:3699: write: broken pipe
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x77d338]

goroutine 38 [running]:
github.com/vesoft-inc/nebula-clients/go.genResultSet(0x0, 0xc0002dc0a0)
        /go/pkg/mod/github.com/vesoft-inc/nebula-clients/go@v0.0.0-20201202024102-618cd50d07ad/result_set.go:74 +0x48
github.com/vesoft-inc/nebula-clients/go.(*Session).Execute(0xc00030a420, 0xc0002ce580, 0xc, 0x0, 0x1, 0x0)
        /go/pkg/mod/github.com/vesoft-inc/nebula-clients/go@v0.0.0-20201202024102-618cd50d07ad/session.go:55 +0x4d8
nebula-http-gateway/service/pool.NewConnection.func1(0xc000262e80)
        /nebula-http-gateway/service/pool/pool.go:84 +0xa3
created by nebula-http-gateway/service/pool.NewConnection
        /nebula-http-gateway/service/pool/pool.go:79 +0x5e4

看样子想nebula-graph的graphd服务挂了。
麻烦你通过docker-compose查看下服务的状态,截下图。
还有你能贴下执行了什么query。


什么都没执行,就刷新studio页面
nebula-graph的restart都是0 没有挂过

cd nebula-web-docker/v2
docker-compose down -v
docker-compose up -d
就能恢复

好的,谢谢你的回复,我让负责这块的同事回复下。

你好,这里是说studio服务挂了么?如果挂的时候
cd nebula-web-docker
docker-compose ps
看到的是什么样子的?
方便给一下目前你的studio版本么

我是按这个方法启动的

前台页面显示502错误 查看显示nebula-http-gateway Exit 2
studio版本 v2.1.2-beta

[root@p47022v v2]# docker-compose ps
    Name                   Command               State                Ports             
----------------------------------------------------------------------------------------
v2_client_1     ./nebula-http-gateway            Exit 2                                 
v2_importer_1   nebula-importer --port=569 ...   Up       0.0.0.0:32865->5699/tcp       
v2_nginx_1      /docker-entrypoint.sh ngin ...   Up       0.0.0.0:7001->7001/tcp, 80/tcp
v2_web_1        docker-entrypoint.sh npm r ...   Up       0.0.0.0:32866->7001/tcp       

看起来是我们的http-client服务挂了,有稳定复现的步骤么?我们排查一下

insert vertex player(age) values 13:(12)
也不是每次都这样。
有时候一段时间没有在页面上,回头一刷新就挂了

ok,那我们自己试着复现一下,并尽快修复这个问题,可能辛苦暂时先用着了,镜像更新会及时同步在这里,谢谢:handshake:

嗯嗯好的 谢谢

如果 nebula-http-gateway 频繁挂掉,在我们解决问题前,可以配置下docker-compose.yml,把对应镜像设置下 restart: always,可以参考这里:https://stackoverflow.com/questions/42216017/docker-compose-restart-policy?answertab=active#tab-top

好的 谢谢

浙ICP备20010487号