Acumos 模型下载失败

Acumos model download failed

我使用 AIO oneclick_deploy.sh docker 命令安装了 Acumos。我已经成功地上传了一个样本张量流模型,并在市场上提供了它。当我尝试从 Marketplace 下载(即单击 "Download" 按钮)模型时,我只得到空文件。如果我尝试使用 "Deploy to local" 选项下载,我会得到安装文件(因此该选项似乎有效)。关于如何解决 "Download" 问题的任何建议?尝试 "Download" 选项时,我在 portel-be 错误日志中收到以下错误:

org.acumos.portal.be.common.exception.AcumosServiceException: 传输文件时出错: Connection refused (Connection refused) from http://acutn:3\ 0881/repository/acumos_model_maven/com/artifact/138c462f-8858-4c16-b53a-fa494d9af12e/model/1/model-1.原型 在 org.acumos.portal.be.service.impl.MarketPlaceCatalogServiceImpl.getPayload(MarketPlaceCatalogServiceImpl.java:1404) 在 org.acumos.portal.be.service.impl.MarketPlaceCatalogServiceImpl.getProtoUrl(MarketPlaceCatalogServiceImpl.java:1460) 在 org.acumos.portal.be.controller.MarketPlaceCatalogServiceController.fetchProtoFile(MarketPlaceCatalogServiceController.java:1160) 在 sun.reflect.GeneratedMethodAccessor394.invoke(来源不明) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java:498) 在 org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) 在 org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) 在 org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:\ 97) 在 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.jav\ a:849) 在 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:760\ ) 在 org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) 在 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) 在 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) 在 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) 在 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) 在 javax.servlet.http.HttpServlet.service(HttpServlet.java:635) 在 org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) 在 javax.servlet.http.HttpServlet.service(HttpServlet.java:742) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 在 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 在 org.acumos.portal.be.security.AuthenticationTokenFilter.doFilter(AuthenticationTokenFilter.java:170) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 在 org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317) 在 org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)

来自 portal-be 错误行:"org.acumos.portal.be.common.exception.AcumosServiceException: Error transferring file: Connection refused (Connection refused) from http://acutn:3\ 0881/repository/acumos_model_maven/com/artifact/138c462f-8858-4c16-b53a-fa494d9af12e/model/1/model-1.proto"

看来这是一个 portal-be 配置问题。特别是“http://acutn:3\0881/”部分不正确。但是端口“3\0881”的这样一个值应该会阻止 Nexus 服务器启动。请通过 curl 或在您的浏览器中查看 http://acutn:30881

我确实设法解决了问题。我注意到几个与 Acumos 相关的 Container 已经停止。某些容器的错误原因指示 URL 的连接错误,仅包括主机名 (acutn)。我将以下内容添加到 /etc/network/interfaces:

dns-搜索tele.no

因为这将允许解析本地主机名以包含 FQDN。然后我重新启动了停止的容器。停止的容器现在 运行 没有错误,我可以下载文件。

我确实认为应该在 AIO 脚本中添加一些东西以避免类似的问题,或者也许可以明确 warning/instruction 如何命名服务器。

oneclick_deploy.sh 的说明表明:

"All hostnames specified in acumos-env.sh must be DNS-resolvable on all host (entries in /etc/hosts or in an actual DNS server)"

同时为了确保非 DNS 域名是可解析的,容器模板将此条目添加到容器主机文件中:

  hostAliases:
  - ip: "<ACUMOS_HOST>"
    hostnames:
    - "<ACUMOS_DOMAIN>"`

如果我还需要添加一些其他说明,请告诉我。