报错信息:
生成新distribution报错
Error: execute amd [scp -0 StrictHostKeyChecking-no -o UserknownHostsFiles/dev/null -q-r/usr/bin/gadm_cp_sys_tbl.py/usr/bin/pexpect.pygbase@***.***.***.***]:/tmp/failed, error no[1]
Error cause:
lost connection
解决方案:
报错的机器之间配置互信。
1.在客户端生成公钥私钥对
命令:ssh-keygen -t rsa
一路默认回车,系统在/root/.ssh下生成id_rsa、id_rsa.pub
2.将生成的公钥私钥对id_rsa.pub发送到其他的服务器上。
命令:ssh-copy-id -i /root/.ssh/id_rsa.pub 目标IP
注:命令可简单记忆为 ssh-copy-id -i 公钥私钥对文件 服务器ip地址
报错信息:
生成新distribution报错
ERROR 1251 (08004) : Client does not support authentication protocol requested by server: consider upgrading Base client。
Error: restart gbased failed
Error: execute cmd [ssh -o UserknowmHostsFile-/dev/null -o StrictHostkeyCheckingano gbase@ IP “export GBASE_ BASE -/opt/ gnode: . -/.gbase profile:python /tmp/gad _ cp_sys_ tbl-py copy db_ password-J failed. error no I12]
Error cause: Warning: Permanently added '10.86.126.1l9' (ECDSA) to the list of known hosts.
解决方案:
当出现如上一组报错信息时,说明数据库默认密码已经更改,需要在生成distribution中增加db_pwd XXXXX这个参数
如:gcadmin distribution gcChangeInfo.xml p 1 d 1 db_pwd gbase2022