ARTIFACTORY: How to remediate expired license banner in Artifactory UI
If your license/license Bucket has reached the expiration date, you will see the license expiry banner on top of the Artifactory UI.
If the License has expired, Artifactory may restrict certain features and functionalities based on your license. Features that are part of a paid license may become unavailable or limited when the license expires. The following are the common activities that would be blocked:
1. Upload and Download artifacts to Artifactory will be blocked: You would observe the below error
2023-09-29T07:19:10.368Z [jfrt ] [WARN ] [5e2fb140ec6b6352] [.r.ArtifactoryResponseBase:144] [http-nio-8081-exec-1] - Sending HTTP error code 503: Trial license expired!
2. Download from the Artifactory will work in Offline mode. By saying that, you may only be able to download the artifacts that are already cached in the remote-repository cache before the License expires.
3. Push and Pull replication would fail if the target Artifactory used an expired license.
4. Xray functionality would be on hold till the new license was stored.
Applying license to Standalone Artifactory and HA cluster
If you have an Enterprise X or below subscription, you will get a set of new license keys. The new license can be updated directly from the Artifactory UI or from the artifactory.lic/ artifactory.cluster.license file [$JFROG_HOME/artifactory/var/etc/artifactory].
For more information on how to apply for a license and License Bucket, check out the video explanation here.
Upon updating the license, in the Artifactory UI, you will able to see the new License validity
If you are on an Enterprise+ subscription, you will receive a Licence Bucket. The License Bucket is a collection of licenses that can be applied/attached to different Artifactory nodes in the HA cluster or to the JPDs registered with Mission Control.
The License Bucket came with the expiry date.
Upon the expiration of the license bucket, the license bucket can be replaced with the new license Bucket. Go to Artifactory UI -> Administration -> License -> License Bucket -> Add new Bucket.
Frequently asked questions-
I have already added licenses in the Artifactory, however, the expired license banner persists.
[solution]- Upon adding the new license, you need to apply the license to the Artifactory nodes. Ensure that no Artifactory nodes [HA nodes or JPDs] are holding on to the old Artifactory License. After attaching the new License to the Artifactory node, refresh the UI and check if the license expired banner is gone.