- nebula 版本:2.0
- 部署方式 Docker
- 是否为线上版本: N
- 问题的具体描述
Nebula Console SHOW HOSTS 成功了 studio报这个错 有没有大佬救一下
已经全部试过了 而且文档里写的是连接失败的方案 我这个报错没有遇到过orz
你看下你的 Studio 的 docker-compose 里的 graphd 的配置地址和端口号,把这个 ip 和 port 拷贝出来,放到上面 Host 里
version: ‘3.4’
services:
client:
image: vesoft/nebula-http-gateway:v2
environment:
USER: root
ports:
- 8080
networks:
- nebula-web
web:
image: vesoft/nebula-graph-studio:v2
environment:
USER: root
UPLOAD_DIR: ${MAPPING_DOCKER_DIR}
ports:
- 7001
depends_on:
- client
volumes:
- ${UPLOAD_DIR}:${MAPPING_DOCKER_DIR}:rw
networks:
- nebula-web
importer:
image: vesoft/nebula-importer:v2
networks:
- nebula-web
ports:
- 5699
volumes:
- ${UPLOAD_DIR}:${MAPPING_DOCKER_DIR}:rw
command:
- “–port=5699”
- “–callback=http://nginx:7001/api/import/finish”
nginx:
image: nginx:alpine
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/nebula.conf
- ${UPLOAD_DIR}:${MAPPING_DOCKER_DIR}:rw
depends_on:
- client
- web
networks:
- nebula-web
ports:
- 7001:7001
networks:
nebula-web:
是最新版本删去了这个配置吗,,确实没有找到,,
version: ‘3.4’
services:
client:
image: vesoft/nebula-http-gateway:v2
environment:
USER: root
ports:
- 8080
networks:
- nebula-net
web:
image: vesoft/nebula-graph-studio:v2
environment:
USER: root
UPLOAD_DIR: ${MAPPING_DOCKER_DIR}
ports:
- 7001
depends_on:
- client
volumes:
- ${UPLOAD_DIR}:${MAPPING_DOCKER_DIR}:rw
networks:
- nebula-net
importer:
image: vesoft/nebula-importer:v2
networks:
- nebula-net
ports:
- 5699
volumes:
- ${UPLOAD_DIR}:${MAPPING_DOCKER_DIR}:rw
command:
- “–port=5699”
- “–callback=http://nginx:7001/api/import/finish”
nginx:
image: nginx:alpine
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/nebula.conf
- ${UPLOAD_DIR}:${MAPPING_DOCKER_DIR}:rw
depends_on:
- client
- web
networks:
- nebula-net
ports:
- 7001:7001
networks:
nebula-net:
external: true
我改成了这个 还是报一样的错。。
studio的版本是2.x吗?
是2.2.1没错
host是需要填写nebula服务所在的ip+port
部在了同一台上 172.17.80.10
docker部署的studio的话,同一台机器上也要填写真实ip的
我现在就是写的172.17.80.10:9669 跟写graphd:9669一样 报同样的错,,
打开浏览器的network,我们看看接口信息返回了哪些
看下请求的 request headers 里面的cookie信息,是不是没有session带过去