Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin [_fma_leiden] does not exist. #736

Open
jicanghaixb opened this issue Nov 7, 2024 · 8 comments
Open

Plugin [_fma_leiden] does not exist. #736

jicanghaixb opened this issue Nov 7, 2024 · 8 comments

Comments

@jicanghaixb
Copy link

Environment:
image

Describe the bug
使用镜像

REPOSITORY                               TAG       IMAGE ID       CREATED         SIZE
tugraph/tugraph-runtime-centos8          latest    b7f49c543d67   7 weeks ago     5.53GB

启动命令如下:

docker run -d -p 7070:7070  -p 7687:7687 -p 9090:9090 -v /media/vdc/demo/eai/tugraph/data:/var/lib/lgraph/data  -v /media/vdc/demo/eai/tugraph/log:/var/log/lgraph_log --name tugraph_demo  tugraph/tugraph-runtime-centos8 

使用db-gpt创建图谱时执行命令

CALL db.plugin.callPlugin('CPP','leiden','{"leiden_val":"_community_id"}',60.00,false)

报下面错误:

[20241107 06:28:34.595885 0x00007be441bfd700 ERROR src/server/bolt_handler.cpp:232] [InputError] Plugin [_fma_leiden] does not exist.

How to reproduce and expected behavior

希望知道如何解决这个插件问题?

@zhangwh807
Copy link
Collaborator

TuGraph容器中的配置文件/usr/local/etc/lgraph.json加上"enable_plugin" : true,这一步如果你没有操作过的话就把这个配置加上,然后docker restart tugraph_demo ,再试试

@jicanghaixb
Copy link
Author

好的,谢谢!容器内的配置文件修改了,下次重启容器不就有恢复为初始配置了吗?你的方法能说明一下如何修改上的配置文件吗?
我现在用下面命令启动容器就可以了

docker run -d -p 7070:7070  -p 7687:7687 -p 9090:9090 -v /media/vdc/demo/eai/tugraph/data:/var/lib/lgraph/data  -v /media/vdc/demo/eai/tugraph/log:/var/log/lgraph_log --name tugraph_demo  tugraph/tugraph-runtime-centos8  lgraph_server -d run --enable_plugin true

@zhangwh807
Copy link
Collaborator

重启容器用的是docker restart命令,这不会把容器内的配置初始化的。docker run是重新创建容器了,这样肯定会初始化。修改配置文件可以docker exec -it tugraph_demo bash 进入容器,然后用vi编译器,vi /usr/local/etc/lgraph.json 加上"enable_plugin" : true 这一行,然后重启容器就行。

@jicanghaixb
Copy link
Author

好的,谢谢!

@OrionZou
Copy link

OrionZou commented Dec 5, 2024

我尝试执行
docker run -dt --restart=always -p 50002:7070 -p 50003:7687 -p 50005:9090 -v /ssd_1234/gyzou/DB-GPT/db/tugraph/data:/var/lib/lgraph/data -v /ssd_1234/gyzou/DB-GPT/db/tugraph/log:/var/log/lgraph_log --name tugraph_demo hub.geekery.cn/tugraph/tugraph-runtime-centos8:4.5.0 lgraph_server -d run --enable_plugin true
简单测试后,依旧不work
image

@zhangwh807
Copy link
Collaborator

你的这个enable_plugin true应该已经生效了,你可以试试能不能上传插件。
image
这里的提示应该是”leiden“这个存储过程不存在

@OrionZou
Copy link

OrionZou commented Dec 6, 2024

感谢回答,想问问这些插件在哪里获取呢?例如这些扩展算法:https://tugraph-db.readthedocs.io/zh-cn/latest/9.olap&procedure/2.olap/6.algorithms.html?highlight=leiden#id12
有导入的示例吗?
是否 推荐使用编译环境 tugraph/tugraph-compile-centos7进行源码编译,编译后的tugraph会附带插件吗?

@zhangwh807
Copy link
Collaborator

可以先编译出.so文件,然后将该文件以插件形式上传,可以参考: https://tugraph-db.readthedocs.io/zh-cn/latest/9.olap&procedure/2.olap/1.tutorial.html?highlight=bash%20make_so_cpp%20sh#procedure
也可以加入我们社区群进行更详细的交流

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants