Uploading a file on custom repo it fails with error : Katello::Errors::Pulp3Error: <built-in function getattr> returned a result with an error set
Environment
- Red Hat Satellite 6.10 or newer
Issue
Uploading a file on custom repository it fails with error : Katello::Errors::Pulp3Error:
Error during upload: Task cd53f5ff-c1b0-4052-a1d3-95ab34a09252: Katello::Errors::Pulp3Error: <built-in function getattr> returned a result with an error set
Resolution
- Change the package to have changelog without non-UTF8 characters.
For more KB articles/solutions related to Red Hat Satellite 6.x Repository Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Repository Issues.
Root Cause
Having a changelog with non-UTF-8 characters (like Czech or French specific letters from alphabets), such RPM fails to be uploaded to a pulp/Satellite repository.
Note that various packaging guidelines for many Linux distributions (incl. Fedora/RHEL) do not allow such non-UTF8 characters data. Therefore, for pulp/Satellite, that package is an invalid input.
Within underlying This content is not included.Bugzilla, this has been discussed in more detail with possible consideration to improve error message.
Diagnostic Steps
Execute the following command to inspect for non-UTF-8 characters in the changelog of the package you are trying to upload:
rpm -qp --changelog <packagename>.rpm
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.