salt-minion dead but pid file exists

安装了salt-minion 客户端之后,修改了一次salt-master,然后重启客户端程序,发现启动正常

[root@localhost ~]# /etc/init.d/salt-minion restart
Stopping salt-minion daemon:                               [FAILED]
Starting salt-minion daemon:                               [  OK  ]

但是查看进程状态是发现进程是不存在的

[root@localhost ~]# ps  -ef |grep salt
root      8666  8258  0 13:30 pts/2    00:00:00 grep salt
[root@localhost ~]# /etc/init.d/salt-minion status 
salt-minion dead but pid file exists


查看salt-minion 服务日志,发现报错The master key has changed, the salt master could have been subverted, verify salt master's public key

很明显就是因为修改了salt-master后认证的公钥没有变化

[root@cmjs-localhost salt]# cat  /var/log/salt/minion

2016-01-11 10:59:39,964 [salt.crypt                               ][ERROR   ][13941] The master key has changed, the salt master could have been subverted, verify salt master's public key
2016-01-11 10:59:39,969 [salt.crypt                               ][CRITICAL][13941] The Salt Master server's public key did not authenticate!
The master may need to be updated if it is a version of Salt lower than 2015.5.3, or
If you are confident that you are connecting to a valid Salt Master, then remove the master public key and restart the Salt Minion.
The master public key can be found at:
/etc/salt/pki/minion/minion_master.pub
2016-01-11 13:29:36,758 [salt.crypt                               ][ERROR   ][29724] The master key has changed, the salt master could have been subverted, verify salt master's public key
2016-01-11 13:29:36,759 [salt.crypt                               ][CRITICAL][29724] The Salt Master server's public key did not authenticate!
The master may need to be updated if it is a version of Salt lower than 2015.5.3, or
If you are confident that you are connecting to a valid Salt Master, then remove the master public key and restart the Salt Minion.
The master public key can be found at:
/etc/salt/pki/minion/minion_master.pub

解决办法就是删掉公钥文件然后重启进程

[root@localhost salt]# rm -rf /etc/salt/pki/minion/minion_master.pub
[root@localhost salt]# /etc/init.d/salt-minion restart
Stopping salt-minion daemon:                               [FAILED]
Starting salt-minion daemon:                               [  OK  ]
[root@localhost salt]# /etc/init.d/salt-minion status
salt-minion (pid  21401) is running...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值