Why hammer command fails with "Error: Either :uri or :apidoc_cache_dir needs to be set" error?

Solution Verified - Updated -

Issue

  • Why hammer ping and any hammer command fails with below error:
# hammer ping 
Error: Either :uri or :apidoc_cache_dir needs to be set
Warning: An error occured while loading module hammer_cli_csv
Error: Either :uri or :apidoc_cache_dir needs to be set
Warning: An error occured while loading module hammer_cli_foreman_bootdisk
Error: Either :uri or :apidoc_cache_dir needs to be set
Warning: An error occured while loading module hammer_cli_foreman_docker
Error: Either :uri or :apidoc_cache_dir needs to be set
Warning: An error occured while loading module hammer_cli_foreman_remote_execution
Warning: An error occured while loading module hammer_cli_foreman_tasks
Error: Either :uri or :apidoc_cache_dir needs to be set
Warning: An error occured while loading module hammer_cli_katello
Error: No such sub-command 'ping'

Environment

  • Red Hat Satellite v 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.