运维、部署、持续集成常见异常及排除方案

 

 

 

场景 异常 异常原因 排除异常方案
git提交版本commit Please tell me who you are………… git没有配置全局基本信息。

根据提示,执行git config --global.user.email "***",

再执行git config --global.user.name "****",进行全局信息配置即可

 git,远程提交push拒绝提交合并  

fatal: refusing to merge unrelated histories

 主要是本地和远程两个项目的提交历史不同导致  强制合并一下,先git pull origin master  --allow-unrelated-histories进行远端代码拉下来和本地强制合并,在进行git push origin master
jenkins Failed to connect to repository:Error performing command:git ls-remote -h git@**** HEAD jenkins服务器中,未安装git,不能执行相关命令 核实是git命令没装,还是环境变量没配置好,没安装的话,使用yum install git,进行安装。否则查看环境变量是否设置
jenkins+gitlab Failed to connect to repository : Command "git ls-remote -h git@192.168.234.140:***HEAD" returned status code 128:
stdout:
stderr: Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
jenkins的服务器,和要访问的gitlab服务器未进行ssh认证或者认证不成功

在jenkins服务器中,使用ssh-keygen -t rsa,命令获取ssh密钥对,

方式一,

在gitlab管理页面中,添加ssh认证。如果这种方式没能生效,使用

方式二

在jenkins进行源码url录入的时候,添加一个Credentials,把密钥对中的私钥,拿过来,当前使用的是root用户可以命名为root。添加完成,选定

       
centos8安装、部署   yum安装,报错误,没有任何匹配 yum源里面没有epel,而screen等一些软件被迁移到了epel源,所以我们需要在CentOS8上先安装epel源然后就可以安装screen等其他软件了。 

  yum install epel-release

再尝试安装

       
posted @ 2020-05-27 16:19  林山风火  阅读(104)  评论(0编辑  收藏  举报