ARTIFACTORY: How To Fix The 404 Error During RTFS Migration

Products
Frog_Artifactory
Content Type
Use_Case
AuthorFullName__c
Ron Mansharof
articleNumber
000006539
FirstPublishedDate
2025-08-03T04:17:57Z
lastModifiedDate
2025-07-28

ARTIFACTORY: How To Fix The 404 Error During RTFS Migration

Introduction 

While enabling the RTFS service, you may encounter the following error during the migration process:
2025-07-09 10:29:15 [main] INFO  o.jfrog.rtfs.network.HttpClientImpl - Executing POST request to URL: <ARTIFACTORY_URL>/rtfs/import/config
2025-07-09 10:29:16 [main] WARN  o.jfrog.rtfs.network.HttpClientImpl - Got error: <!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1></body></html>
2025-07-09 10:29:16 [main] ERROR o.j.r.migrations.RtToRtfsMigration - Failed to import RTFS config batch
org.jfrog.rtfs.exceptions.RtfsBridgeException: Expected status 200 however received status: 404

This error arises since the jf federation-migrator command doesn't include the artifactory/service prefix.


Resolution

To fix this error, it is required to execute the jf federation-migrator command with the “--rtfs-legacy-context-path” flag to include the /artifactory/service prefix:
jf federation-migrator migrate_rtfs --rtfs-legacy-context-path <base url without /artifactory> <scoped token>