The 'hammer repository upload-content' command fails to upload large files with '[Errno 24] Too many open files' in Red Hat Satellite 6.10

Solution Verified - Updated -

Issue

  • It's almost impossible to upload a large file inside a file repository via hammer_cli and it errors out as displayed below:

    # hammer repository upload-content --content-type file --path ./somebigfile --id 7 --organization-id 1
    Could not upload the content:
     Task bbd22637-59d5-47c7-8bc0-af8d9604e927: Katello::Errors::Pulp3Error: [Errno 24] Too many open files: '/var/lib/pulp/media/upload/f73231bc-bcba-43aa-85ea-644d407d398c'
    
  • It's possible to upload a file with a size up to 2.7 GB but anything beyond that failed to get uploaded with the exact same error.

Environment

  • Red Hat Satellite
    • 6.10.0
    • 6.10.1
    • 6.10.2
    • 6.10.3

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