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

初始化添加全局配置的时候报错了:unknown error <class 'RuntimeError'>: invalid vectorizer config: Connection error. #483

Closed
cwdhf opened this issue Jan 18, 2025 · 1 comment

Comments

@cwdhf
Copy link

cwdhf commented Jan 18, 2025

Image
点击保存报错:
Image
我的ollama list
Image

release-openspg-server服务报错日志:
Image

2025-01-18 09:05:16 2025-01-18 09:05:16,146 [] [] [http-nio-8887-exec-9] ERROR c.a.o.s.a.h.s.HttpBizTemplate - execute http biz callback unknown error
2025-01-18 09:05:16 pemja.core.PythonException: <class 'RuntimeError'>: invalid vectorizer config: Connection error.
2025-01-18 09:05:16 at /openspg_venv/lib/python3.8/site-packages/kag/common/vectorize_model/vectorize_model_config_checker.check(vectorize_model_config_checker.py:47)
2025-01-18 09:05:16 at pemja.core.PythonInterpreter.invokeMethodOneArgString(Native Method)
2025-01-18 09:05:16 at pemja.core.PythonInterpreter.invokeMethodOneArg(PythonInterpreter.java:212)
2025-01-18 09:05:16 at pemja.core.PythonInterpreter.invokeMethod(PythonInterpreter.java:116)
2025-01-18 09:05:16 at com.antgroup.openspg.common.util.pemja.PemjaUtils.invoke(PemjaUtils.java:33)
2025-01-18 09:05:16 at com.antgroup.openspgapp.api.http.server.config.ConfigController.checkVectorizer(ConfigController.java:180)
2025-01-18 09:05:16 at com.antgroup.openspgapp.api.http.server.config.ConfigController$3.check(ConfigController.java:142)
2025-01-18 09:05:16 at com.antgroup.openspg.server.api.http.server.HttpBizTemplate.execute2(HttpBizTemplate.java:77)
2025-01-18 09:05:16 at com.antgroup.openspgapp.api.http.server.config.ConfigController.update(ConfigController.java:124)
2025-01-18 09:05:16 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2025-01-18 09:05:16 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2025-01-18 09:05:16 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2025-01-18 09:05:16 at java.lang.reflect.Method.invoke(Method.java:498)
2025-01-18 09:05:16 at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
2025-01-18 09:05:16 at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
2025-01-18 09:05:16 at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
2025-01-18 09:05:16 at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
2025-01-18 09:05:16 at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
2025-01-18 09:05:16 at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
2025-01-18 09:05:16 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)
2025-01-18 09:05:16 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)
2025-01-18 09:05:16 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
2025-01-18 09:05:16 at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:920)
2025-01-18 09:05:16 at javax.servlet.http.HttpServlet.service(HttpServlet.java:699)
2025-01-18 09:05:16 at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
2025-01-18 09:05:16 at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
2025-01-18 09:05:16 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
2025-01-18 09:05:16 at com.antgroup.openspgapp.api.http.server.filter.AclFilter.doFilter(AclFilter.java:137)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
2025-01-18 09:05:16 at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
2025-01-18 09:05:16 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
2025-01-18 09:05:16 at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
2025-01-18 09:05:16 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
2025-01-18 09:05:16 at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
2025-01-18 09:05:16 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
2025-01-18 09:05:16 at com.alipay.sofa.tracer.plugins.springmvc.SpringMvcSofaTracerFilter.doFilter(SpringMvcSofaTracerFilter.java:87)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
2025-01-18 09:05:16 at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
2025-01-18 09:05:16 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
2025-01-18 09:05:16 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
2025-01-18 09:05:16 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177)
2025-01-18 09:05:16 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
2025-01-18 09:05:16 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
2025-01-18 09:05:16 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
2025-01-18 09:05:16 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
2025-01-18 09:05:16 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
2025-01-18 09:05:16 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
2025-01-18 09:05:16 at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
2025-01-18 09:05:16 at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
2025-01-18 09:05:16 at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:891)
2025-01-18 09:05:16 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1784)
2025-01-18 09:05:16 at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
2025-01-18 09:05:16 at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
2025-01-18 09:05:16 at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
2025-01-18 09:05:16 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
2025-01-18 09:05:16 at java.lang.Thread.run(Thread.java:750)

@andylau-55
Copy link
Collaborator

Please enter the openspg-server image to test the connectivity of the vector service

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

2 participants