说明:

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

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

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

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

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

[root@namenode ~]# /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

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

[root@namenode ~]# /etc/init.d/salt-minion restart

Stopping salt-minion daemon:                               [FAILED]

Starting salt-minion daemon:                               [  OK  ]

[root@namenode ~]# /etc/init.d/salt-minion status

salt-minion dead but pid file exists

仍然没有解决问题。

不要着急,debug一下:

[root@namenode ~]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日志 :

[root@namenode ~]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

解决方法:

直接在客户端上来上一条

[root@namenode ~]# rm -rf /etc/salt/pki/minion/minion_master.pub
[root@namenode ~]/etc/init.d/salt-minion restart

万事大吉 !!!

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

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

  1. docker dead but pid file exists

    CentOS 6安装docker 报docker dead but pid file exists 执行 yum install epel-release yum install docker-io ...

  2. Linux MYSQL:dead but pid file exists

    MYSQL dead but pid file exists问题 - CSDN博客https://blog.csdn.net/shilian_h/article/details/38020567 Er ...

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

    这里说一下,如果复制了虚拟机,设置新的MAC地址为什么? 在虚拟机的网络设置中--->高级.然后找到如下窗口,生成新的MAC地址即可. ----------------------------- ...

  4. RTNETLINK answers: File exists错误解决方法

    >一.写在前面: 因为是我刚学习linux好多问题需要解决,bolg仅作为记录自己的在技术这条道路上的点点滴滴. 二.事件起因: 最近因为女友的原因消沉的好长时间,在马哥那里的课程的结束到现在已 ...

  5. multipathd dead but pid file exists

    构建RAC环境时出现的错误 百度半天未找到解决方案,Google了一下,终于找到可行方案 Solution:- yum update device-mapper glibc -y [root@HE2 ...

  6. docker dead but pid file exists 问题

    You may have to enable the public_ol6_latest repo in order to get this package. sudo yum-config-mana ...

  7. [bug] CDH报错:cloudera-scm-server dead but pid file exists

    参考 https://blog.csdn.net/levy_cui/article/details/51243335

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

    [root@pcidata-jenkins ansible_playbooks]# ps aux|grep rsyncroot      1799  0.0  0.0 114652   480 ?   ...

  9. MySQL提示:The server quit without updating PID file问题的解决办法(转载)

    MySQL提示:The server quit without updating PID file问题的解决办法 今天网站web页面提交内容到数据库,发现出错了,一直提交不了,数找了下原因,发现数据写 ...

随机推荐

  1. windows 服务安装报错

    使用windows服务开发的定时任务,在win7上都运行良好,在windows server 2008上运行报错,报错信息如下 错误应用程序名称: GCWindowsService.exe,版本: 1 ...

  2. INSPIRED启示录 读书笔记 - 第16章 市场调研

    常用的市场调研工具和方法 用户调查:第一,设计调查问卷需要技巧和经验,不是一件容易的事:第二,调查结果为获得解决方案提供了一要途径,但不是解决方案本身 产品使用分析:使用分析工具记录用户使用产品的行为 ...

  3. INSPIRED启示录 读书笔记 - 第6章 招聘产品经理

    产品经理应有的特质 个人素质和态度:技术可以学习,素质却难以培养,有些素质是成功的产品经理必不可少的 对产品的热情:对产品有一种本能的热爱,是夜以继日克服困难.完善产品的动力 用户立场:能换位思考,能 ...

  4. SQL Server 利用WITH AS递归获取层级关系数据

    WITH AS短语,也叫做子查询部分(subquery factoring),在SQL Server 2005中提供了一种解决方案,这就是公用表表达式(CTE),使用CTE,可以使SQL语句的可维护性 ...

  5. sqoop学习3(数据导入乱码问题)

    sqoop将mysql数据库中数据导入hdfs或hive中后中文乱码问题解决办法 [root@spark1 ~]# vi /etc/my.cnf 修改配置文件 在文件内的[mysqld]和client ...

  6. 51nod 1289 大鱼吃小鱼 栈

    1289 大鱼吃小鱼 题目来源: Codility 基准时间限制:1 秒 空间限制:131072 KB 有N条鱼每条鱼的位置及大小均不同,他们沿着X轴游动,有的向左,有的向右.游动的速度是一样的,两条 ...

  7. org.apache.http.NoHttpResponseException: XX.XX.XX.XX:80 failed to respond

    解决: Finally I fix the issue and it is caused by buffer size. By default, buffer size of httpclient i ...

  8. hibernate学习(1)

    对象的持久化 狭义的理解,“持久化”仅仅指把对象永久保存到数据库中 广义的理解,“持久化”包括和数据库相关的各种操作 -保存:把对象永久保存到数据库中 -更新:更新数据库中对象的状态 -删除:从数据库 ...

  9. spring boot: java @interface注解

    @interface是用来自定义JAVA Annotation的语法,@interface是用来自定义注释类型的 注释类型的定义跟定义一个接口相似,我们需要在 interface这个关键字前面加上一个 ...

  10. 卸载全部appx应用(包括应用商店)

    在PowerShell中粘贴: Get-AppXPackage | Remove-AppxPackage