After migrating from Artifactory OSS 5.11.0 rev 51100900 to Artifactory Commercial license 7.3.2 rev 70302900 the System Logs are no longer updated after the time stamp of the migration date.
I used JFrog’s article, “What is the best way to migrate a large Artifactory instance with minimal downtime?”, to make the migration.
Servers set up:
Old server: Artifactory OSS 5.11.0 rev 51100900
New server: Artifactory Commercial license 7.3.2 rev 70302900
Both servers are running as Docker Container on linux.
Each linux server is a VM on a physically different VM Server.
Migration Actions:
- On both server, I disabled Garbage collection
Admin -> Advanced -> Maintenance -> Garbage collection - Old server: Copied
$ARTIFACTORY_HOME/data/filestorefolder to the new server'sfilestorefolder. - Old server: Performed full system export with the
Exclude Contentoption selected (no other options selected). - New server: Performed full system import (did NOT select the Exclude Content option).
- New Server: Enabled Garbage Collection again
- Restarted new server.
Current Status:
The new server works without problems. All of the artifacts from the old server are present in the new server and are accessible. New artifacts are pushed to new server without a problem.
I’ve created two Docker registries in the new server and they also work without problems.
Creation of new users and Permission groups also works correctly.
The issue I have:
When I go to Admin -> Artifactory -> Advanced -> System Logs, I see the four system logs, but the last entry in each log is the last entry that was made by the old server.
There are no new entries that are made by the new server.
Observation and Actions I tried:
I’ve set up a new local Artifactory Server (Docker container),
docker execinto the container to directory/var/opt/jfrog/artifactory/logand changed the name of all log files that start withartifactory-*.logtoartifactory-*.log.old. I’ve stopped the Artifactory container and started it again.
All the logs I’ve changed their name, were recreated and started to log everything.
When I did the same thing on the new server, the logs were NOT recreated.Started poking around in the file system of the Docker container and found a directory call
artifactory.home_IS_UNDEFINEDin folder/var/opt/jfrog/artifactory. The time stamp for the directory is the date and time of the migration.Run
printenvand the path for home is correct:
JF_PRODUCT_DATA_INTERNAL=/var/opt/jfrog/artifactory
JF_PRODUCT_HOME=/opt/jfrog/artifactoryNew server is, in fact, logging! Just not in the desired location. In folder
/var/opt/jfrog/artifactory/logthere are many logs that keep track of all actions.
Also in folder/var/opt/jfrog/artifactory/artifactory.home_IS_UNDEFINED/logsthere are active logs files.None of the logs that are working show up in the UI System Logs console.
I’ve been trying to resolve this issue for a few days now (on and off) but I cant find anything related in the Artifactory knowledge-base nor using google.
Any help or insight will be greatly appreciated.