当前位置: 首页 > news >正文

jfrog artifactory oss社区版,不支持php composer私库

一、docker安装

安装环境:centos操作系统,root用户。

如果是mac或ubuntu等操作系统的话,会有许多安装的坑等着你。

一切都是徒劳,安装折腾那么久,最后还是不能使用。这就是写本文的初衷,切勿入坑就对了。

version: "3.3"
services:artifactory-service:image: docker.bintray.io/jfrog/artifactory-oss:7.49.6container_name: artifactoryrestart: alwaysnetworks:- ci_netports:- 8089:8081- 8090:8082volumes:- artifactory:/var/opt/jfrog/artifactoryvolumes:artifactory:
networks:ci_net:

在这里插入图片描述

二、设置向导

  • 登录地址: http://192.168.5.6:8090/ui/login
  • 初始用户名和密码是: admin / password
    在这里插入图片描述

在首次使用的向导中,会让我们设置一个更为安全的密码。

最后就是使用了。

三、社区版的坑

jfrog artifactory oss社区版,不支持composer/npm等私库,远不如nexus好。

建议看到这里的朋友,就不要入坑jfrog artifactory了。

当然pro企业版是支持的啦,目的就是一个收费。

于是,大多数中小企业只能割舍它了。

在这里插入图片描述

附录、mac和ubuntu系统安装踩坑记录

1、读取目录的权限不足

Preparing to run Artifactory in DockerRunning as uid=1030(artifactory) gid=1030(artifactory) groups=1030(artifactory)Dockerfile for this image can found inside the container.To view the Dockerfile: 'cat /docker/artifactory-oss/Dockerfile.artifactory'.Copying Artifactory bootstrap files2024-11-04T03:49:03.677Z [shell] [INFO ] [] [installerCommon.sh:3568       ] [main] - Mapping value from deprecated key EXTRA_JAVA_OPTIONS to new key JF_SHARED_EXTRAJAVAOPTS2024-11-04T03:49:04.163Z [shell] [INFO ] [] [installerCommon.sh:1632       ] [main] - Checking open files and processes limits2024-11-04T03:49:04.183Z [shell] [INFO ] [] [installerCommon.sh:1635       ] [main] - Current max open files is 10485762024-11-04T03:49:04.205Z [shell] [INFO ] [] [installerCommon.sh:1646       ] [main] - Current max open processes is unlimited[WARN ] Error while initializing File resolver : Config file does not exists : /opt/jfrog/artifactory/var/etc/system.yamlDatabase connection check failed Could not determine database type2024-11-04T03:49:04.280Z [shell] [INFO ] [] [installerCommon.sh:1715       ] [main] - Testing directory /opt/jfrog/artifactory/var has read/write permissions for user id 1030/opt/jfrog/artifactory/app/bin/installerCommon.sh: line 1685: /opt/jfrog/artifactory/var/test-permissions: Permission denied2024-11-04T03:49:04.305Z [shell] [INFO ] [] [installerCommon.sh:1723       ] [main] - ###########################################################2024-11-04T03:49:04.325Z [shell] [INFO ] [] [installerCommon.sh:1724       ] [main] - /opt/jfrog/artifactory/var DOES NOT have proper permissions for user id 10302024-11-04T03:49:04.345Z [shell] [INFO ] [] [installerCommon.sh:1725       ] [main] - Directory: /opt/jfrog/artifactory/var, permissions: 775, owner: UNKNOWN, group: UNKNOWN2024-11-04T03:49:04.366Z [shell] [INFO ] [] [installerCommon.sh:1726       ] [main] - Mounted directory must have read/write permissions for user id 10302024-11-04T03:49:04.387Z [shell] [INFO ] [] [installerCommon.sh:1727       ] [main] - ###########################################################2024-11-04T03:49:04.410Z [shell] [ERROR] [] [installerCommon.sh:812        ] [main] - Directory /opt/jfrog/artifactory/var has bad permissions for user id 1030

2、Master key is missing

2024-11-04T06:53:48.319Z [jfrou] [INFO ] [1c216118873c8e06] [security_keys.go:172          ] [main                ] [] - Master key is missing. Pending for 110 seconds with 5m0s timeout2024-11-04T06:53:48.503Z [jfmd ] [INFO ] [                ] [security_keys.go:172          ] [main                ] - Master key is missing. Pending for 110 seconds with 2m0s timeout [init]2024-11-04T06:53:48.665Z [jfevt] [INFO ] [724d295281f930a5] [security_keys.go:172          ] [main                ] [                ] - Master key is missing. Pending for 110 seconds with 2m0s timeout [startup]2024-11-04T06:53:49.124Z [jfob ] [INFO ] [6fd11037508f616d] [security_keys.go:172          ] [main                ] - Master key is missing. Pending for 110 seconds with 2m0s timeout [startup]2024-11-04T06:53:49.800Z [jffe ] [INFO ] [] [frontend-service.log] [main                ] - pinging artifactory, attempt number 1102024-11-04T06:53:49.803Z [jffe ] [INFO ] [] [frontend-service.log] [main                ] - pinging artifactory attempt number 110 failed with code : ECONNREFUSED

3、join.key不存在

2024-11-05T02:53:38.183Z [jfmd ] [ERROR] [                ] [keys.go:23                    ] [main                ] - Cluster join: Failed resolving join key: failed resolving 'shared.security.joinKey' key; file does not exist: /opt/jfrog/artifactory/var/etc/security/join.key,
goroutine 1 [running]:,
runtime/debug.Stack(),/src/runtime/debug/stack.go:24 +0x5e,
jfrog.com/jfrog-go-commons/v7/pkg/log.(*standardLogger).Panicfc(0xc000ae0900, {0x2d7b978, 0xc0009ebe90}, {0xc000740000, 0x9e}, {0x0, 0x0, 0x0}),goroot/pkg/mod/jfrog.com/jfrog-go-commons/v7@v7.120.0/pkg/log/standard_logger.go:98 +0xc5,
jfrog.com/metadata/v7/services/common.MustResolveSecurityKeys({0x2d7b978, 0xc0009ebe90}, {0x2d835e8, 0xc0009c0d70}, {0x2d901e8, 0xc000ae0900}),jfrog.com/metadata/v7@v7.90.0/services/common/keys.go:23 +0x1c6,
main.main(),jfrog.com/metadata/v7@v7.90.0/metadata.go:35 +0x2ec,[init],
panic: Cluster join: Failed resolving join key: failed resolving 'shared.security.joinKey' key; file does not exist: /opt/jfrog/artifactory/var/etc/security/join.key,
goroutine 1 [running]:,
runtime/debug.Stack(),/src/runtime/debug/stack.go:24 +0x5e,
jfrog.com/jfrog-go-commons/v7/pkg/log.(*standardLogger).Panicfc(0xc000ae0900, {0x2d7b978, 0xc0009ebe90}, {0xc000740000, 0x9e}, {0x0, 0x0, 0x0}),goroot/pkg/mod/jfrog.com/jfrog-go-commons/v7@v7.120.0/pkg/log/standard_logger.go:98 +0xc5,
jfrog.com/metadata/v7/services/common.MustResolveSecurityKeys({0x2d7b978, 0xc0009ebe90}, {0x2d835e8, 0xc0009c0d70}, {0x2d901e8, 0xc000ae0900}),jfrog.com/metadata/v7@v7.90.0/services/common/keys.go:23 +0x1c6,
main.main(),jfrog.com/metadata/v7@v7.90.0/metadata.go:35 +0x2ec,
,
,
goroutine 1 [running]:,
jfrog.com/jfrog-go-commons/v7/pkg/log.defaultEventFactory.(*Logger).Panic.func1({0xc00003a600?, 0x0?}),goroot/pkg/mod/github.com/rs/zerolog@v1.33.0/log.go:405 +0x27,
github.com/rs/zerolog.(*Event).msg(0xc000b0e000, {0xc00003a600, 0x2ee}),goroot/pkg/mod/github.com/rs/zerolog@v1.33.0/event.go:158 +0x2b9,
github.com/rs/zerolog.(*Event).Msgf(0xc000b0e000, {0xc00086c2c0?, 0x4316440?}, {0xc000a43ce8?, 0x4319d00?, 0x3?}),goroot/pkg/mod/github.com/rs/zerolog@v1.33.0/event.go:131 +0x46,
jfrog.com/jfrog-go-commons/v7/pkg/log.(*standardLogger).logMessage(0xc000ae0900, {0x2d7b978, 0xc0009ebe90}, 0x5, {0xc00086c2c0, 0xa1}, {0xc000a43ce8, 0x1, 0x1}),goroot/pkg/mod/jfrog.com/jfrog-go-commons/v7@v7.120.0/pkg/log/standard_logger.go:127 +0x2b8,
jfrog.com/jfrog-go-commons/v7/pkg/log.(*standardLogger).Panicfc(0xc000ae0900, {0x2d7b978, 0xc0009ebe90}, {0xc000740000, 0x9e}, {0x0, 0x0, 0x0}),goroot/pkg/mod/jfrog.com/jfrog-go-commons/v7@v7.120.0/pkg/log/standard_logger.go:99 +0x1c5,
jfrog.com/metadata/v7/services/common.MustResolveSecurityKeys({0x2d7b978, 0xc0009ebe90}, {0x2d835e8, 0xc0009c0d70}, {0x2d901e8, 0xc000ae0900}),jfrog.com/metadata/v7@v7.90.0/services/common/keys.go:23 +0x1c6,
main.main(),jfrog.com/metadata/v7@v7.90.0/metadata.go:35 +0x2ec,
2024-11-05T02:53:38.229Z [jfevt] [FATAL] [4a76e1fc9995d6af] [bootstrap.go:161              ] [main                ] [                ] - Cluster join: Failed resolving join key: failed resolving 'shared.security.joinKey' key; file does not exist: /opt/jfrog/artifactory/var/etc/security/join.key [startup],
http://www.lryc.cn/news/477073.html

相关文章:

  • 华为OD机试真题-用户调度问题-2024年OD统一考试(E卷)
  • 前端与后端长连接 方法
  • 建议AI产品经理面试准备到这个程度再去
  • 智能交通的未来:深度学习如何改变车辆检测游戏规则
  • 家具制造的效率与美观并重,玛哈特矫平机让家具产品更具竞争力。
  • 交叉编译gcc
  • [VUE]框架网页开发1 本地开发环境安装
  • 【MySQL】——数据库恢复技术
  • 乡村景区一体化系统(门票,餐饮,便利店,果园,娱乐,停车收费
  • 从零开始的c++之旅——继承
  • 电路知识的回顾
  • 使用 `Celery` 配合 `RabbitMQ` 作为消息代理,实现异步任务的调度、重试、定时任务以及错误监控等功能
  • react-router与react-router-dom的区别
  • 【研究生必看】把选题和文献交给AI,轻松搞定毕业论文!
  • Android中同步屏障(Sync Barrier)介绍
  • 真·香!深度体验 zCloud 数据库云管平台 -- DBA日常管理篇
  • 优雅的遍历JSONArray,获取里面的数据
  • C#:强大而优雅的编程语言
  • 一个由Deno和React驱动的静态网站生成器
  • Python pyautogui库:自动化操作的强大工具
  • 【HTML】——VSCode 基本使用入门和常见操作
  • 从0开始搭建一个生产级SpringBoot2.0.X项目(八)SpringBoot 使用Redis
  • Ubuntu20.04两种安装及配置中文界面、输入法、换源、共享文件夹实现,及注意事项
  • 后端Java学习:springboot之文件上传(阿里云OSS存储)
  • python通过lunarcalendar库使用农历日期
  • MySQL高级--范式与反范式
  • 实验05多重循环---7-02 打印矩形图案
  • 明源地产ERP WFWebService.asmx 反序列化RCE漏洞复现
  • 学习笔记:黑马程序员JavaWeb开发教程(2024.11.4)
  • 开源自托管数据管理工具全面指南