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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content