ARTIFACTORY: How to debug Access Federation missing JPDs in the UI

Products
Frog_Artifactory
Content Type
Use_Case
AuthorFullName__c
Kayvan Sofastaee
articleNumber
000006432
FirstPublishedDate
2025-04-28T05:55:51Z
lastModifiedDate
2025-04-27

ARTIFACTORY: How to debug Access Federation missing JPDs in the UI

Use Case

When setting up Access Federation, you may encounter a situation where, after following the necessary steps to "Apply Topologies" to your JPDs, they are missing from the UI. This absence can prevent you from configuring Access Federation topologies:

User-added image 

While navigating to the "Topology" tab, under "JPD Services," you may see a warning message that states: "License XXXXXXX is duplicated; also assigned to JPD us-west-2." This indicates that there is a duplicate license issue affecting Access Federation:

User-added image 
Access Federation requires unique license keys for each JPD system. If a duplicate license key is detected, it will hinder the configuration of topologies.


Resolution 

To resolve this issue, you need to ensure that each JPD node has a unique license key. It is vital to understand how your licenses are typically managed and assigned.

There are several ways to troubleshoot this scenario:

1. You can run the “Get JPD List” Rest API to obtain a list of the configured JPDs. Then run “Get JPD by ID” to examine the license and status details:
GET request to /mc/api/v1/jpds/{id}
[
    {
        "id": "<Source_JPD>",
        "name": "HOME",
        "url": "<URL>",
        "base_url": "<URL>",
        "location": {
           },
        "status": {
            "code": "ONLINE",
            "message": "All services are online",
            "warnings": [
                "License dc19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX is duplicated; also assigned to JPD kayvan-art3"
            ]
        },
        "services": [
            {
                "type": "ARTIFACTORY",
                "status": {
                    "code": "ONLINE"
                }
            }
        ],
        "tags": [],
        "licenses": [
            {
                "type": "<LICENSE_TRIAL>",
                "expired": false,
                "license_hash": "dc19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                "licensed_to": "TEST",
                "valid_through": "<Date>"
            }
        ],
    {
        "id": "<Target_JPD>",
        "name": "kayvan-art3",
        "url": "<URL>",
        "base_url": "<URL>",
        "location": {
           },
        "status": {
            "code": "ONLINE",
            "message": "All services are online",
            "warnings": [
                "License dc19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX is duplicated; also assigned to JPD HOME"
            ]
        },
        "services": [
            {
                "type": "ARTIFACTORY",
                "status": {
                    "code": "ONLINE"
                }
            }
        ],
        "tags": [],
        "licenses": [
            {
                "type": "<LICENSE_TRIAL>",
                "expired": false,
                "license_hash": "dc19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                "licensed_to": "TEST",
                "valid_through": "<Date>"
            }
        ]
This will provide the complete details, including tags, names, URLs, and license status for each configured JPD. You should be able to identify the warning message and the licenses causing the duplication.

2. You can also execute the following SQL queries to compare the licenses being utilized in each JPD. We would need to login into the Artifactory database and run the following:
SELECT * FROM mc_jpd_license;
SELECT * FROM mc_jpd_issue;
SELECT * FROM access_federation_servers;
SELECT * FROM mc_managed_license;


Example snippets:

User-added image

User-added image

User-added image

 

3. Lastly, you can confirm the presence of duplicate licenses by examining the jpd-issues.json file in the Mission Control logs. This log will display the license duplication messages for each JPD experiencing this issue:

JPD-HOME Logs:

[{"id":"XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX","jpdId":X,"type":"LICENSE_DUPLICATE","message":"License dc19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX is duplicated; also assigned to JPD kayvan-art3"},{"id":"XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX","jpdId":X,"type":"LICENSE_DUPLICATE","message":"License dc19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX is duplicated; also assigned to JPD kayvan-art3"},etc 
JPD-Target Logs:
[{"id":"XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX","jpdId":X,"type":"LICENSE_DUPLICATE","message":"License dc19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX is duplicated; also assigned to JPD HOME"},{"id":"XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX","jpdId":X,"type":"LICENSE_DUPLICATE","message":"License dc19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX is duplicated; also assigned to JPD HOME"},etc
Once you remove the conflicting duplicated license keys followed by restarting Artifactory services, you should be able to configure your Access Federation JPDs in the UI successfully:

User-added image