Running "foreman-maintain" command fails with " No such file or directory - /usr/share/foreman/lib/satellite/version.rb"
Issue
- When using
foreman-maintain
to restart Satellite services, I received the error:
# foreman-maintain
/usr/share/gems/gems/foreman_maintain-0.3.5/definitions/features/downstream.rb:99:in `read': No such file or directory - /usr/share/foreman/lib/satellite/version.rb (Errno::ENOENT)
from /usr/share/gems/gems/foreman_maintain-0.3.5/definitions/features/downstream.rb:99:in `version_from_source'
from /usr/share/gems/gems/foreman_maintain-0.3.5/definitions/features/downstream.rb:19:in `current_version'
from /usr/share/gems/gems/foreman_maintain-0.3.5/definitions/features/downstream.rb:23:in `current_minor_version'
from /usr/share/gems/gems/foreman_maintain-0.3.5/definitions/procedures/candlepin/delete_orphaned_records_from_env_content.rb:10:in `block (2 levels) in <class:DeleteOrphanedRecordsFromEnvContent>'
Environment
- Red Hat Satellite 6.3 and above
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.