Book Image

Salt Cookbook

By : Anirban Saha
Book Image

Salt Cookbook

By: Anirban Saha

Overview of this book

Table of Contents (18 chapters)
Salt Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Troubleshooting the Salt master


In this recipe, you will learn about the various ways to identify and troubleshoot situations when the Salt master stops responding and there is a problem with the configuration of the Salt master.

How to do it...

  1. Run the following command from the Salt master on a minion, and when the command does not respond terminate the command using the Ctrl + C key combination:

    [root@salt-master ~]# salt 'salt-minion' test.ping
    ^C
    Exiting gracefully on Ctrl-c
    [root@salt-master ~]#
    
  2. Stop the Salt master, using the following command:

    [root@salt-master ~]# service salt-master stop
    Stopping salt-master daemon:                             [  OK  ]
    
  3. Start the Salt master, using the following command:

    [root@salt-master ~]# salt-master -l debug
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] Using cached minion ID from /etc/salt/minion_id: salt- master
    [DEBUG   ] Configuration file path: /etc/salt/master
    [INFO    ] Setting up the Salt Master
    [DEBUG   ] Loaded master...