salt-minion dead but pid file exists 正确解决方法

说明:

看了网上很多关于alt-minion dead but pid file exists 的解决方法,千篇一律的写一个shell脚本 killproc salt-minion

见链接:http://732233048.blog.51cto.com/9323668/1693483

但是并没有什么用,我如何解决这个问题的呢,请容我慢慢道来。

系统版本:CentOS_6.7_64bit 环境已优化。

重装(第一次装)salt-minion,但是客户端却无法正常启动,如下报错:

[[email protected] ~]# /etc/init.d/salt-minion status

salt-minion dead but pid file exists

解决过程:

由报错知:

minion进程已经死,但是进程文件还在

于是去找进程文件,在minion机的配置文件里/etc/init.d/salt-minion里发现进程文件是:

/var/run/salt-minion.pid

然后尝试把进程文件删掉,再重新启动:

[[email protected] ~]# /etc/init.d/salt-minion restart

Stopping salt-minion daemon:                               [FAILED]

Starting salt-minion daemon:                               [  OK  ]

[[email protected] ~]# /etc/init.d/salt-minion status

salt-minion dead but pid file exists

仍然没有解决问题。

不要着急,debug一下:

[[email protected] ~]salt-minion -l debug

[INFO    ] Setting up the Salt Minion "namenode"

[DEBUG   ] Created pidfile: /var/run/salt-minion.pid

[DEBUG   ] Reading configuration from /etc/salt/minion

[DEBUG   ] Attempting to authenticate with the Salt Master at 192.168.1.53

[DEBUG   ] Initializing new SAuth for (‘/etc/salt/pki/minion‘, ‘namenode‘, ‘tcp://192.168.1.53:4506‘)

[ERROR   ] The master key has changed, the salt master could have been subverted, verify salt master‘s public key

[CRITICAL] 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.5, 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

查看salt-minion日志 :

[[email protected] ~]less /var/log/salt/minion

也发现同样的错误:

2015-12-15 16:35:06,519 [salt.crypt][CRITICAL][12704] The Salt Master server‘s public key did not authenticate!

10647 The master may need to be updated if it is a version of Salt lower than 2015.5.5, or

10648 If you are confident that you are connecting to a valid Salt Master, then remove the master public key and restart the Salt Minion.

10649 The master public key can be found at:

10650 /etc/salt/pki/minion/minion_master.pub

解决方法:

直接在客户端上来上一条

[[email protected] ~]# rm -rf /etc/salt/pki/minion/minion_master.pub
[[email protected] ~]/etc/init.d/salt-minion restart

万事大吉 !!!

本文出自 “小陌成长之路” 博客,请务必保留此出处http://309173854.blog.51cto.com/7370240/1725788

时间: 2024-08-25 23:04:52

salt-minion dead but pid file exists 正确解决方法的相关文章

salt-minion dead but pid file exists解决方法

说明: 由于自己的错误操作,导致某台salt minion机无法启动,如下: [[email protected] run]# /etc/init.d/salt-minion status salt-minion dead but pid file exists 解决过程: 由报错知: minion进程已经死掉了,但是进程文件还在 于是去找进程文件,在minion机的配置文件里/etc/init.d/salt-minion里发现进程文件是:/var/run/salt-minion.pid 然后尝

RTNETLINK answers: File exists错误解决方法

>一.写在前面: 因为是我刚学习linux好多问题需要解决,bolg仅作为记录自己的在技术这条道路上的点点滴滴. 二.事件起因: 最近因为女友的原因消沉的好长时间,在马哥那里的课程的结束到现在已经将近45天时间都没有温习,今天拿出来突然老师问我会不会配置lvs,顿时傻眼了.忘记光了,看来这温故而知新的道理不是白来的,然后就出现今天的的事情了. 今天在安装REdhat的时候遇见和网卡有关的问题,起初没有解决系统级别的经验就是最原始的办法,重启虚拟机,不然就是重装.来来回回折腾了好多次都没有成功(没

Linux启动网卡时出现RTNETLINK answers: File exists错误解决方法

这里说一下,如果复制了虚拟机,设置新的MAC地址为什么? 在虚拟机的网络设置中--->高级.然后找到如下窗口,生成新的MAC地址即可. -------------------------------------------------------------------------------- 一.问题描述VMware中克隆虚拟机是经常的事情,虽然如此,用到虚拟机时,本人还是喜欢新安装一个操作系统,针对服务器的应用,在安装操作系统时,一并安装好,并且也花不了多少时间.但最近需要大量的配置一样的

puppet dead but pid file exists

今天配置puppet证书时,agent上出现了以下问题. 可以正常启动 # service puppet start Starting puppet agent:                                     [  OK  ] 启动后却异常 # service puppet status 多次尝试,仍如此. 故,查看日志,结果发现agent配置文件有个单词写错.更改后重启puppet即可. 疑问是,配置文件有问题,启动为什么不报错?费解 来自为知笔记(Wiz)

cloudera-scm-agent dead but pid file exists

错误描述: /opt/cm-5.7.0/etc/init.d/cloudera-scm-agent status 查看日志/opt/cm-5.7.0/log/cloudera-scm-agent/cloudera-scm-agent.log: No socket could be created on ('testintf.novalocal', 9000) -- [Errno 99] Cannot assign requested address 原文地址:https://www.cnblog

failed to create pid file /var/run/rsyncd.pid: File exists报错

[[email protected] ansible_playbooks]# ps aux|grep rsyncroot      1799  0.0  0.0 114652   480 ?        Ss   Jun29   0:00 rsync --daemonroot     61754  0.0  0.0 112664   972 pts/2    S+   11:17   0:00 grep --color=auto rsync[[email protected] ansible_

swap file "*.swp" already exists!的解决方法

Linux下编程难免要开启多个vim共同编辑同一个文件,这时再次保存就会出现: swap file "*.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort: 原因: 使用vim编辑文件实际是先copy一份临时文件并映射到内存给你编辑, 编辑的是临时文件, 当执行:w后才保存临时文件到原文件,执行:q后才删除临时文件. 每次启动检索式否有临时文件, 有

重启mysql提示:The server quit without updating PID file问题的解决办法

今天因为需要开启事件调度器event_scheduler,所以修改了mysql的配置文件/etc/my.cnf 就因为配置多了个分号,导致一直启动失败,如下图所示: 然后去网上搜了帖子(MySQL提示:The server quit without updating PID file问题的解决办法http://www.jb51.net/article/48625.htm),按照里面几种提供的方案都不能解决,于是查看mysql错误日志 #tail -n 400 /lutong/mysql/erro

[转]Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法

参考资料: http://sheshui.me/articles/git-quickly-tutorial-20120517 http://stackoverflow.com/questions/9282632/git-index-lock-file-exists-when-i-try-to-commit-but-cannot-delete-the-file 我的说明: 我操作的是ubuntu环境.window远程 1 若在window下远程打开操作窗口(不是console),进入.git目录删