You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Artifactory 7.77.5集群启动失败:服务注册中心Ping超时报错

JFrog Artifactory启动时集群加入失败问题求助

启动JFrog Artifactory实例时,进程陷入以下循环:

Cluster join: Retry 5: Service registry ping failed, will retry. 

直至超时,超时后出现如下错误:

[jfrt ] [ERROR] [7ab5e09abafc4d74] [o.j.c.ExecutionUtils:296      ] [jf-common-pool-1    ] - Cluster join: Service registry ping failed; 
2024-02-20T12:14:51.477Z [jfrt ] [ERROR] [7ab5e09abafc4d74] [ctoryContextConfigListener:126] [art-init            ] - Application could not be initialized: HTTP response status 404:Failed on executing request. Response: 
java.lang.reflect.InvocationTargetException: null

我的配置文件

system.yaml

## @formatter:off
## JFROG ARTIFACTORY SYSTEM CONFIGURATION FILE
## HOW TO USE: comment-out any field and keep the correct yaml indentation by deleting only the leading '#' character.
configVersion: 1

## NOTE: JFROG_HOME is a place holder for the JFrog root directory containing the deployed product, the home directory for all JFrog products.
## Replace JFROG_HOME with the real path! For example, in RPM install, JFROG_HOME=/opt/jfrog

## NOTE: Sensitive information such as passwords and join key are encrypted on first read.
## NOTE: The provided commented key and value is the default.

artifactory:
  port: 8046

## SHARED CONFIGURATIONS
## A shared section for keys across all services in this config
shared:
  ## Java 17 distribution to use
  #javaHome: "JFROG_HOME/artifactory/app/third-party/java"

  ## Extra Java options to pass to the JVM. These values add to or override the defaults.
  #extraJavaOpts: "-Xms512m -Xmx2g"

  ## Security Configuration
  security:
    ## Join key value for joining the cluster (takes precedence over 'joinKeyFile')
    #joinKey: "<Your joinKey>"

    ## Join key file location
    #joinKeyFile: "<For example: JFROG_HOME/artifactory/var/etc/security/join.key>"

    ## Master key file location
    ## Generated by the product on first startup if not provided
    #masterKeyFile: "<For example: JFROG_HOME/artifactory/var/etc/security/master.key>"

    ## Maximum time to wait for key files (master.key and join.key)
    #bootstrapKeysReadTimeoutSecs: 120

  ## Node Settings
  node:
    #ip: 127.0.0.1
    ## A unique id to identify this node.
    ## Default auto generated at startup.
    #id: "art1"

    ## Default auto resolved by startup script
    #ip:

    ## Sets this node as primary in HA installation
    #primary: true
    #taskAffinity: any
    ## Sets this node as part of HA installation
    #haEnabled: true

  ## Database Configuration
  database:
    

    ## One of mysql, oracle, mssql, postgresql, mariadb
    ## Default Embedded derby

    ## Example for postgresql
    #type: postgresql
    #driver: org.postgresql.Driver
    #url: "jdbc:postgresql://<your db url, for example: localhost:5432>/artifactory"
    #username: artifactory
    #password: password

  #extraJavaOpts: "-Djava.net.preferIPv4Stack=true"

server.xml

<!--
  ~ Artifactory is a binaries repository manager.
  ~ Copyright (C) 2019 JFrog Ltd.
  ~
  ~ Artifactory is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU Affero General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ Artifactory is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU Affero General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Affero General Public License
  ~ along with Artifactory.  If not, see <http://www.gnu.org/licenses/>.
  -->
<Server port="8015" shutdown="BnkmvDuSjyuu">
    <Service name="Catalina">
        <Connector port="8046" sendReasonPhrase="false" relaxedPathChars='[]' relaxedQueryChars='[]' maxThreads="200" />

        <Connector port="8091" address="localhost" maxThreads="5" acceptCount="5"  />

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



        <Engine name="Catalina" defaultHost="localhost">
            <Host name="localhost" workDir="/opt/jfrog/artifactory/var/work/artifactory/tomcat" appBase="webapps" startStopThreads="3">
                <Valve className="org.apache.catalina.valves.ErrorReportValve" showReport="false" showServerInfo="false"/>
            </Host>
        </Engine>
    </Service>

</Server>

已尝试的解决步骤

  • 执行ps -ef|grep -i artifactory.sh并终止相关进程
  • 启动前检查所有JFrog预留端口是否被占用
  • 使用RPM重新安装Artifactory
  • 在system.yaml中添加8046端口配置(此前出现该端口连接拒绝错误)
  • 搜索相关帖子,但未找到适配的解决方案

内容的提问来源于stack exchange,提问作者randomdoc

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 11:53:15