forked from ljb-2000/saltweb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQA
More file actions
18 lines (13 loc) · 815 Bytes
/
QA
File metadata and controls
18 lines (13 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1. 注释Defaults requiretty
Defaults requiretty修改为 #Defaults requiretty, 表示不需要控制终端。
否则会出现sudo: sorry, you must have a tty to run sudo
2. 增加行 Defaults visiblepw
否则会出现 sudo: no tty present and no askpass program specified
注:sudo-1.6.9p17-5.el5是不支持这个参数的,sudo-1.7.2p1-10.el5支持
3. ssh执行命令报错utf8' codec can't decode byte 0xc4 in position 4: invalid continuation byte
原因:minion端的编码不是utf8导致
4. Data truncated for column 'execerr' at row 1
原因:execerr的字符串长度超出了数据库模型中设置长度
5. Failed to connect to the Master, is the Salt Master running?
原因:salt-master未完全启动,一般是缓存文件太多导致salt-master启动慢
解决:rm -rf /var/cache/salt