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...
- 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 ~]#
- Stop the Salt master, using the following command:
[root@salt-master ~]# service salt-master stop Stopping salt-master daemon: [ OK ]
- 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 ]...