jfrog-artifactory-jcr-7.104.6-linux默认启动异常

下载jcr free linux版本,在没有修改配置情况启动,发现存在阻断性错误…

问题

env

  • jfrog-artifactory-jcr-linux

1.启动jcr服务,日志在线输出

cd /opt/artifactory-jcr-7.104.6/app/bin
./artifactory.sh

2.错误日志

2025-02-10T07:11:13.116Z [jfrt ] [ERROR] [9fc25c0d6c4212b1] [d.i.DbInitializationManager:55] [Catalina-utility-1  ] - DB Schema initialization manager failed to init.
java.lang.IllegalStateException: Cannot start the application with a database other than PostgreSQL. For more information, see JFrog documentation
...

Caused by: java.lang.IllegalStateException: Cannot start the application with a database other than PostgreSQL. For more information, see JFrog documentation

看日志是必须用postgresql db,想用默认嵌入式db Apache Derby,须修改配置

解决

1.关闭pg开关
artifactory-jcr-7.104.6/var/etc/system.yaml

shared:
    ...
    ## Database Configuration
    database:
        ## To run Artifactory with any database other than PostgreSQL allowNonPostgresql set to true.
        allowNonPostgresql: true

2.再次启动验证问题得到解决

./bin/artifactoryctl start

[root@centos9-81 app]# ./bin/artifactoryctl check
Access is running, on pid=234172

Using default router's certificate and private key
router is running (PID: 234357)
metadata is running (PID: 234558)
event is running (PID: 234727)
frontend is running (PID: 234932)
observability is running (PID: 235100)
Artifactory is running, on pid=235673

1306bdf2f82c9dbe00026119c2a1c3f9.png