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

首次安装Artifactory启动失败,请求技术支持及解决方案

Artifactory首次安装启动异常:8046端口访问失败

首次安装Artifactory后启动异常,无法访问http://localhost:8046,报错日志如下:

2024-09-03T08:53:15.159Z [jfevt] [INFO ] [53a0db6498e5cd1c] [access_thin_client.go:101     ] [main                ] [                ] - Cluster join: Retry 35: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address 'http://localhost:8046/access/api/v1/system/ping': Get "http://localhost:8046/access/api/v1/system/ping": dial tcp [::1]:8046: connect: connection refused [startup]
2024-09-03T08:53:18.098Z [jfmd ] [INFO ] [                ] [access_client_bootstrap.go:256] [main                ] - Cluster join: Retry 40: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address 'http://localhost:8046/access': Get "http://localhost:8046/access/api/v1/system/ping": dial tcp [::1]:8046: connect: connection refused [access_client]

已尝试重启服务、修改yaml配置文件(配置内容如下)并重新安装服务,但问题未解决,寻求技术支持或类似问题的解决方案:

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

        ## Default auto resolved by startup script
        ip: 192.168.31.35

排查与解决方案

  • 检查端口占用
    执行命令确认8046端口是否被其他进程占用:

    • Linux:netstat -tulpn | grep 8046
    • Windows:netstat -ano | findstr ":8046"
      若有占用,终止对应进程或修改Artifactory端口配置。
  • 确保IP配置生效

    1. 查看启动日志,确认Artifactory是否读取到配置的192.168.31.35
    2. 在配置文件中明确指定router的监听地址,避免仅绑定localhost:
      router:
        host: 192.168.31.35
        port: 8046
      

    修改后重启服务,尝试访问http://192.168.31.35:8046测试。

  • 检查防火墙规则

    • Linux:临时关闭防火墙测试:systemctl stop firewalld,若恢复正常,需添加8046端口的入站规则
    • Windows:在防火墙高级设置中添加8046端口的允许入站规则
  • 查看完整启动日志
    前往Artifactory安装目录下的logs文件夹,查看完整启动日志(如artifactory.log),寻找服务启动失败的根源,比如数据库连接错误、目录权限不足等。

  • 验证目录权限
    确保Artifactory运行用户对安装目录、数据目录拥有完整读写权限:

    chown -R artifactory:artifactory /opt/jfrog/artifactory
    

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.18 18:07:36