Vaisakh PS
Vaisakh PS

Reputation: 1201

JFrog Artifactory Docker Image Failed to Start

I am using JFrog Artifactory OSS Docker image version 6.0.0 to create the repository in Amazon Linux. The issue I was facing is the Artifactory is not coming up. The docker container is up, but I verified the localhost logs it's showing error as

java.lang.RuntimeException: master.key file is missing - timed out while waiting for master.key after 60 seconds. Please provide it manually`

java.lang.IllegalStateException: Artifactory home not initialized`

But the starting line of localhost log shows

org.apache.catalina.core.ApplicationContext.log Using artifactory.home at '/opt/jfrog/artifactory' resolved from: System property

Any help is much appreciated as I was new to JFrog Artifactory.

Upvotes: 2

Views: 2694

Answers (2)

Ariel Kabov
Ariel Kabov

Reputation: 866

One of the purposes of the master.key is to make sure an Artifactory server is not connected to a DB of another Artifactory server. When starting up a new Artifactory server, this means with a clean DB, it creates the master.key. In your case, it looks like you are trying to connect to a DB that was already serving another Artifactory server.

Therefore you need to copy over the master.key (available at $ARTIFACTORY_HOME/etc/security/) from the Artifactory server that used this DB.

In case this is a new setup, you need to connect to a clean DB.

Upvotes: 2

madduci
madduci

Reputation: 2901

It could be due to the slowness of your docker host.

On my local machine, when I fire:

docker run --name artifactory -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss:6.0.0

it loads everything in 27 seconds (Core i5 4th gen, 8GB RAM, no SSD)

Upvotes: -1

Related Questions