OpenSPG / openspg

OpenSPG is a Knowledge Graph Engine developed by Ant Group in collaboration with OpenKG, based on the SPG (Semantic-enhanced Programmable Graph) framework. Core Capabilities: 1) domain model constrained knowledge modeling, 2) facts and logic fused representation, 3) KAG will be natively supported soon, so please stay tuned...
https://spg.openkg.cn/en-US
Apache License 2.0
618 stars 73 forks source link

openspg 前端无法访问 #223

Closed mongooooo closed 4 months ago

mongooooo commented 4 months ago

按照 https://openspg.yuque.com/ndx6g9/nmwkzz/xht6kkegvs33cwwr 的步骤 docker-compose 在服务器正常启动,

image

日志正常,但是 http://{服务器IP}:8887 链接无法访问,telnet 端口也不通,release-openspg-server 无报错,没开防火墙

andylau-55 commented 4 months ago

能方便说一下您这边具体的操作步骤吗?图一显示的 Application Started 怎么查询到的?,能否有完整的日志信息,按照文档部署理论上只会看到如下日志: ✔ Container release-openspg-mysql Started 0.0s ✔ Container release-openspg-tugraph Started 0.0s ✔ Container release-openspg-elasticsearch Started 0.0s ✔ Container release-openspg-server Started 0.0s

mongooooo commented 4 months ago

能方便说一下您这边具体的操作步骤吗?图一显示的 Application Started 怎么查询到的?

andylau-55 commented 4 months ago

看上述日志服务是正常启动了的,您可以提供下机器的环境信息。同时建议按以下步骤检查本地环境: 1、使用 curl http://127.0.0.1:8887或者telnet 127.0.0.1 8887 检查端口的连接性,或者直接通过页面打开http://127.0.0.1:8887/ 2、检查防火墙设置以确保没有规则阻止进入或出去的连接到端口 8887 3、查看是否有其他服务可能接管了该端口,导致冲突或错误 4、如果你不确定服务当前的状态,你可以尝试重启服务并再次尝试连接

mongooooo commented 4 months ago

看上述日志服务是正常启动了的,您可以提供下机器的环境信息。同时建议按以下步骤检查本地环境: 1、使用 curl http://127.0.0.1:8887或者telnet 127.0.0.1 8887 检查端口的连接性,或者直接通过页面打开http://127.0.0.1:8887/ 2、检查防火墙设置以确保没有规则阻止进入或出去的连接到端口 8887 3、查看是否有其他服务可能接管了该端口,导致冲突或错误 4、如果你不确定服务当前的状态,你可以尝试重启服务并再次尝试连接

@andylau-55

  1. curl http://127.0.0.1:8887 卡死、telnet 127.0.0.1 8887 正常
  2. 防火墙关闭状态
  3. 没有其他服务占用该端口
  4. 已经重启过若干次了
andylau-55 commented 4 months ago

请检查是否是下载的最新的镜像包(0.0.3-beta2)并启动的。然后执行docker exec -it release-openspg-server bash 进入 logs/openspg 提供下common-default.log common-error.log日志文件

andylau-55 commented 4 months ago

2024-04-25T07:02:18.310695967Z 2024-04-25 07:02:18,310 [] [] [main] INFO c.a.o.a.s.Application - Started Application in 8.218 seconds (JVM running for 8.966) 2024-04-25T07:02:18.379409446Z 2024-04-25 07:02:18,379 [] [] [main] INFO c.a.o.a.s.Application - SOFABoot Application Started!!! 后面的 2024-04-25T03:11:14.043072636Z 2024-04-25 03:11:14,040 [] [] [http-nio-8887-exec-1] INFO o.a.c.c.C.[.[.[/] - Initializing Spring DispatcherServlet 'dispatcherServlet' 2024-04-25T03:11:14.047340302Z 2024-04-25 03:11:14,046 [] [] [http-nio-8887-exec-1] INFO o.s.w.s.DispatcherServlet - Initializing Servlet 'dispatcherServlet' 2024-04-25T03:11:14.080417677Z 2024-04-25 03:11:14,080 [] [] [http-nio-8887-exec-1] INFO o.s.w.s.DispatcherServlet - Completed initialization in 32 ms 日志是否有正常输出?

mongooooo commented 4 months ago

@andylau-55 SOFABoot Application Started!!! 后面没有其他日志了,common-default.log 日志内容就是我上面提供的,common-error.log 为空,容器里有个 arks-sofaboot-0.0.1-SNAPSHOT-executable.jar 文件,是最新版本吗?

andylau-55 commented 4 months ago

arks-sofaboot-0.0.1-SNAPSHOT-executable.ja

执行 docker images --digests | grep openspg/openspg-server 查看对应docker images的信息。请提供sha256:.... 值

mongooooo commented 4 months ago

openspg/openspg-server latest sha256:182d9666c6d61e8450855595313e6987214125a59879c4a687a54e8cd727deab acee60e5ee2b 4 days ago 860MB

andylau-55 commented 4 months ago

确实是一个比较奇怪的问题。需要你下提供机器的系统信息以及详细的操作步骤,启动openspg-server服务后,日志最后需要出现 [] [] [http-nio-8887-exec-1] INFO o.s.w.s.DispatcherServlet - Initializing Servlet 'dispatcherServlet' [] [] [http-nio-8887-exec-1] INFO o.s.w.s.DispatcherServlet - Completed initialization in 32 ms 等内容才能表明服务已经成功启动。但你的日志中并未出现且无任何其他报错信息。