Podman push fails with "500 Internal Server Error" on Private Automation Hub web UI
Environment
- Red Hat Ansible Automation Platform 2.x
- Private Automation Hub 4.4+
Issue
-
While pushing the container image to Private Automation Hub fails with following error:
$ sudo podman push 36508bf5508f <pah_fqdn>/vmware_module:v2.0 --tls-verify=false Password: Getting image source signatures Copying blob sha256:6d96a1906628c7e730056c6b6792178e6ec1c7add2af0587a680b4d56ab7bbd7 Copying blob sha256:3e6c9718cc24c49f40dcb09acb0ebebc2fcc62bb87fbf19df5e53fbe1516585d Copying blob sha256:4ccac0bde3144863602c6ccae257c88a1a4743132d82bd40cda586ff6584b6b8 Copying blob sha256:7dd838ed7d0620fb3c0709a65e51ed57be073421774d4459e464011a048b6d3d Copying blob sha256:2fd464830211767f8f235e29adb2abc3c1d148b23869d59424fef84e6c4d5419 Copying blob sha256:ad5362eb8973710afa7450bf83d239791333ed21195b84118618dedc15e41c96 Copying blob sha256:96ea9f5a2a331b21286518b0e83ceee1c29013323a82bf9bad78f873d18fd3e5 Copying blob sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef Copying blob sha256:f4daf84c03740ee5f2d71f884b1a594aa141f384da17ec7e25c33fb2467288c8 Copying blob sha256:a12731a97ec588a65d6dab67703a95a47aacc220a347b14e26e73b9536db32da Copying blob sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef Copying blob sha256:008e1e3a36e88fcd33aead08204203e057e40407f7fe8cfa66445b8453ea56dd Copying blob sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef Copying blob sha256:82c14de2a9b587e95f82f13615c50591b3bfc15317b57585f9c70b06d0d58bad Error: writing blob: uploading layer chunked: received unexpected HTTP status: 500 Internal Server Error
Resolution
-
Run the following command from root user and try pushing the image again:
# sudo chown --recursive pulp:pulp /var/lib/pulp/media/artifact/
Root Cause
- The error arises because of incorrect permissions of
/var/lib/pulp/media/artifact/
directory on Private Automation Hub at server level.
Diagnostic Steps
-
The following error is observed inside /var/log/messages on Private Automation Hub server:
May 6 10:36:05 ansible gunicorn[4168062]: PermissionError: [Errno 13] Permission denied: '/var/lib/pulp/media/artifact/02/3d5112244054d872c212fd6a7c0ddb2a1c19ddde4fb60833dc' May 6 10:36:05 ansible gunicorn[4168052]: pulp [4f72e6311d404be2a147a0ba02ed9db5]: django.request:WARNING: Not Found: /v2/vmware/vmware_modules/blobs/sha256:5f70bf18a086007016e948b04aa36bea41755b6cddfaf10ace3c6ef
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.
Comments