【问题标题】:Artifactory OSS 6.5.2 - can't connect to the UI from servers on the networkArtifactory OSS 6.5.2 - 无法从网络上的服务器连接到 UI
【发布时间】:2018-12-04 15:45:31
【问题描述】:

我最近在我们网络中的远程服务器上安装了 Artifactory OSS 6.5.2,该服务器在 windows server 2012 上运行。

我可以通过具有此地址的任何浏览器在本地(运行 Artifactory 实例的机器)进入 UI: "http://{local-ip}:8081/artifactory/webapp/#/"

当我尝试从网络上的一台计算机进入 UI 时,我在多次尝试连接后收到“无法访问此站点”消息。

{ARTIFACTORY_HOME}\logs\request.log 中的 request.log 显示请求通过并成功:

"REQUEST|{remote-ip}|anonymous|GET|/webapp/|HTTP/1.1|200|0"

来自运行 Artifactory 实例的服务器的请求也是如此:

"REQUEST|{local-ip}|anonymous|GET|/webapp/|HTTP/1.1|200|0"

但是,与之前来自远程机器的请求相反,初始请求之后是更多请求:

"REQUEST|{local-ip}|anonymous|GET|/ui/auth/screen/footer|HTTP/1.1|200|0

 REQUEST|{local-ip}|anonymous|GET|/ui/treebrowser/repoOrder|HTTP/1.1|200|0

 REQUEST|{local-ip}|anonymous|GET|/ui/onboarding/initStatus|HTTP/1.1|200|0

 REQUEST|{local-ip}|anonymous|GET|/ui/auth/current|HTTP/1.1|200|0"

我想也许有一个使用“localhost”而不是 ip 或主机名的自动重定向,所以我尝试更改 {ARTIFACTORY_HOME}\tomcat\conf\server.xml:

<Service name="Catalina">
    <Connector port="8081" sendReasonPhrase="true" relaxedPathChars='[]' relaxedQueryChars='[]'/>

    <!-- Must be at least the value of artifactory.access.client.max.connections -->
    <Connector port="8040" sendReasonPhrase="true" maxThreads="50"/>

    <!-- This is the optional AJP connector -->
    <Connector port="8019" protocol="AJP/1.3" sendReasonPhrase="true"/>

    <Engine name="Catalina" defaultHost="localhost">
        <Host **name="localhost" -> name="{hostname}** appBase="webapps" startStopThreads="2"/>
    </Engine>
</Service>

但随后 Artifactory 未能初始化:

"[art-init] [INFO] (o.a.s.a.ArtifactoryAccessClientConfigStore:643) - 使用访问服务器 URL:http://localhost:8040/access(捆绑) 来源:检测到

[art-init] [INFO] (o.a.s.a.AccessServiceImpl:308) - 等待 访问服务器...

[art-init] [WARN] (o.j.a.c.AccessClientHttpException:41) - Access 无法识别的 ErrorsModel。原始消息:失败 执行/api/v1/system/ping,响应:未找到”

我没有设置任何代理或反向代理,因为我认为这不相关,但我可能会误会,因为我没有太多的网络服务经验。

有什么想法或建议吗?

谢谢, 汤姆。

【问题讨论】:

    标签: web-services artifactory


    【解决方案1】:

    我正在通过 helm 部署 artifactory 6,然后升级到 6.8.2 并遇到了这个问题。

    不得不

    cd $ARTIFACTORY_HOME &&  chown -R artifactory:artifactory .
    

    artifactory 本身在启动时似乎无法部署 access.war,然后可能也无法读取访问此 /access 上下文运行状况检查“ping”api 端点所需的凭据。

    【讨论】:

    • 感谢您花时间回答。由于没有及时找到解决方案,所以将Artifactory安装在不同的机器上,问题没有再出现。问题的原因仍然未知,因此我会记住您的解决方案,以防将来遇到。
    猜你喜欢
    • 1970-01-01
    • 2021-09-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多