Subscription manifest import on Red Hat Satellite server fails with the error message: Import is older than existing data.
Environment
- Red Hat Satellite 6.x
Issue
-
Manifest import on Red Hat Satellite server fails with the following error message:
Import is older than existing data No such file or directory @ rb_sysopen - /usr/share/foreman/tmp/cache/462/C60/.permissions_check.xxxxxxxxx.xxxxx.xxxxxx
Resolution
-
Create a temporary directory at /tmp location using the following command on Red Hat Satellite server:
# mkdir /tmp/oldforemancache -
Move the contents of foreman cache directory to the above newly created directory using the following command:
# mv /usr/share/foreman/tmp/cache/* /tmp/oldforemancache/ -
If above steps will not help, then download the new zip file of same manifest from the customer portal and
upload it to theRed Hat Satellite
For more KB articles/solutions related to Red Hat Satellite 6.x Manifest Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Manifest Issues
Root Cause
- Manifest import was failing due to the stale cache entries being picked up by the Red Hat Satellite server.
Diagnostic Steps
-
The following error messages were captured in /var/log/foreman/production.log during the manifest refresh on Red Hat Satellite 6.
[I|app|8cf5e5eb] Current user set to admin (admin) Unable to find upstream owner for consumer [E|app|6e55ad4f] RestClient::Unauthorized: 401 Unauthorized Body: {"displayMessage":"Invalid credentials.","requestUuid":"2d3384f4-a40d-4c42-b202-ac2a8fe43a84"} /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/abstract_response.rb:223:in `exception_with_response' /opt/theforeman/tfm/root/usr/sare/gems/gems/rest-client-2.0.1/lib/restclient/abstract_response.rb:103:in `return!' /opt/theforeman/tfm/root/usr/share/gems/ges/rest-client-2.0.1/lib/restclient/request.rb:809:in `process_result' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/request.rb:725:in `block in transmit' /opt/rh/rh-ruby25/root/usr/share/ruby/net/htt.rb:910:in `start' /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/request.rb:715:in `transmit'
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.