ftao / vpn-deploy-playbook

A Collection of Ansible Playbook for deploy vpn services
GNU General Public License v3.0
918 stars 159 forks source link

安装AUTH出错 #112

Closed Zenuncl closed 8 years ago

Zenuncl commented 8 years ago
failed: [localhost] => {"changed": true, "cmd": ["/usr/bin/mysqladmin", "-u", "root", "password", "MrmWDjcdCT"], "delta": "0:00:00.006105", "end": "2015-12-20 01:11:32.888262", "rc": 1, "start": "2015-12-20 01:11:32.882157", "warnings": []}
stderr: /usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

FATAL: all hosts have already failed -- aborting

应该是MySQL链接出错,但是密码已经写进去了,还有哪里不对?MysQL是已经装好了的

ftao commented 8 years ago

你的 mysql 是事先已经安装好的 ? 可能是这种情况, 处理的不太好。 可能要加一个选项处理这种情况。

你可以先把 https://github.com/ftao/vpn-deploy-playbook/blob/master/roles/db/tasks/main.yml#L15-L18 这部分先注释掉吧。

Zenuncl commented 8 years ago

已经解决,太感谢您了

嗯,我发现是这个地方的问题,删除掉就好了。 现在遇到新问题,在ocserv启动的时候报错

NOTIFIED: [ocserv | restart ocserv] *******************************************
failed: [localhost] => {"failed": true}
msg: FAILED: attempted to kill ocserv with sig SIGTERM but it wasn't running
ocserv: ERROR (already started)

FATAL: all hosts have already failed -- aborting

NOTIFIED: [ocserv | restart ocserv] *******************************************
FATAL: no hosts matched or all hosts have already failed -- aborting

FATAL: all hosts have already failed -- aborting

NOTIFIED: [ocserv | restart ocserv] *******************************************
FATAL: no hosts matched or all hosts have already failed -- aborting

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/root/openconnect.retry

已解决...

ftao commented 8 years ago

这个可能是第一次, 进程还不存在? 我测试一下。

Zenuncl commented 8 years ago

谢谢,现在好了...

ftao commented 8 years ago

consider this issue resolved