The "satellite-maintain content prepare" command fails with error Request-URI Too Long or Request Line is too large in Red Hat Satellite 6.9

Solution Verified - Updated -

Issue

  • While attempting to migrate all pulp2 content to pulp3, the satellite-maintain content prepare command abruptly fails with either of these error messages.

    Either:
    
    2021-12-09T07:44:28 [E|bac|] Error message: the server returns an error
    | HTTP status code: 414
    | Response headers: {"Date"=>"Thu, 09 Dec 2021 03:44:28 GMT", "Server"=>"Apache", "Content-Length"=>"248", "Connection"=>"close", "Content-Type"=>"text/html; charset=iso-8859-1"}
    | Response body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    | <html><head>
    | <title>414 Request-URI Too Long</title>
    | </head><body>
    | <h1>Request-URI Too Long</h1>
    | <p>The requested URL's length exceeds the capacity
    | limit for this server.<br />
    | </p>
    | </body></html>
    |  (Pulp2to3MigrationClient::ApiError)
    
    Or:
    
    ForemanTasks::TaskError: Task 43ba98f2-3a5a-4381-9c5c-1599480ea11e: Pulp2to3MigrationClient::ApiError: Error message: the server returns an error
    HTTP status code: 400
    Response headers: {"Date"=>"Wed, 08 Dec 2021 18:40:52 GMT", "Server"=>"Apache", "Content-Type"=>"text/html; charset=UTF-8", "Content-Length"=>"163", "Via"=>"1.1 
    satellite.example.com", "Connection"=>"close"}
    Response body: <html>
     <head>
       <title>Bad Request</title>
     </head>
     <body>
       <h1><p>Bad Request</p></h1>
       Request Line is too large (7318 &gt; 4094)
     </body>
    </html>
    

Environment

  • Red Hat Satellite 6.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content