当前位置: 代码迷 >> 综合 >> unpack(b) received extra data saltstack故障
  详细解决方案

unpack(b) received extra data saltstack故障

热度:21   发布时间:2023-12-08 02:55:11.0

saltstack故障解决



故障一:

[root@scj ~]# salt '*' test.ping

[ERROR] Salt request timed out. If this error persists, worker_threads may need to be increased.

Failed to authenticate!  This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error occurred (check disk/inode usage).

解决方法:

首先根据错误提示,修改配置文件/etc/salt/master里面的worker_threads 参数,,将其值改大,重启后发现错误依然存在

然后研究了半天才发现:之前master机器重启过,iptables防火墙设置的规则没有save保存,导致master与minion机不通信,解决如下:

        [root@scj ~]# iptables -A INPUT -p tcp --dport 4505 -j ACCEPT

        [root@scj ~]# iptables -A INPUT -p tcp --dport 4506 -j ACCEPT

        [root@scj ~]# /etc/init.d/iptables save

[root@scj ~]# salt "*" test.ping

192.168.186.129:

    True


  相关解决方案