git 填坑记录----记一次git低版本引发的问题

git版本略低,引发的血案

原本部署在阿里云上的项目,准备放到内网jenkins上发布,配置完成后发版,jenkins变红了,详细错误信息如下

ERROR: Error cloning remote repo ‘origin‘
hudson.plugins.git.GitException: Command "git fetch --tags --progress https://gitlab.kingtool.top/admin-public/cshopfront.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: error: The requested URL returned error: 401 Unauthorized while accessing https://gitlab.kingtool.top/admin-public/cshopfront.git/info/refs

fatal: HTTP request failed

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2172)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1864)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:78)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:545)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:758)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1152)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:124)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

经查git版本为1.7过低了

所以卸载git,重装,yum用不了,yum升级

yum升级

1.-- 下载yum安装文件

sudo wget https://mirrors.edge.kernel.org/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
sudo wget https://mirrors.edge.kernel.org/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm
sudo wget https://mirrors.edge.kernel.org/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
sudo wget https://mirrors.edge.kernel.org/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm
sudo wget https://mirrors.edge.kernel.org/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm
sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

2.-- 查看yum?
rpm -qa |grep yum?
rpm -qa |grep python-urlgrabber

PackageKit-yum-plugin-0.5.8-21.el6.x86_64
PackageKit-yum-0.5.8-21.el6.x86_64
yum-metadata-parser-1.1.2-16.el6.x86_64
yum-plugin-security-1.1.30-14.el6.noarch
yum-utils-1.1.30-14.el6.noarch
yum-rhn-plugin-0.9.1-48.el6.noarch

3.--卸载yum?
sudo rpm -aq |grep yum|xargs sudo rpm -e --nodeps
sudo rpm -qa |grep python-urlgrabber|xargs sudo rpm -e --nodeps

3.--安装yum
sudo rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm
sudo rpm -ivh yum-*

4.清除原有缓存
sudo yum clean all
5.重建缓存,以提高搜索安装软件的速度
sudo yum makecache
6.更新系统
sudo yum update

[Errno 14] Could not open/read file:///sysbak/Redhat6.5/repodata/repomd.xml

RHEL更换yum源的 PYCURL ERROR 22错误解决方法

[[email protected] ~]$ sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
file:///sysbak/Redhat6.5/repodata/repomd.xml: [Errno 14] Could not open/read file:///sysbak/Redhat6.5/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

https://jingyan.baidu.com/album/fedf073766733935ac897732.html?picindex=16

编译安装git

git --version

1.卸载旧版本git:
yum remove git

2. 执行命令:
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker

3. 下载git,解压:
wget https://github.com/git/git/archive/v2.24.0.tar.gz
tar -zxf git-2.24.0.tar.gz

4. 进入解压后的git安装目录,编译,安装:
cd git-2.24.0
make prefix=/usr/local/git all
make prefix=/usr/local/git install

5. 编辑环境变量配置(给到所有用户):
vim /etc/profile
export PATH=$PATH:/usr/local/git/bin
source /etc/profile

原文地址:https://www.cnblogs.com/liuyitan/p/12658005.html

时间: 2024-08-01 03:24:12

git 填坑记录----记一次git低版本引发的问题的相关文章

Linux Git 踩坑记录

Linux Git 踩坑记录 git cherry-pick 冲突解决 出现: error: could not apply xxxxxx(commit ID)... ***** hint: after resolving the conflicts, mark the corrected paths hint: with 'git add ' or 'git rm ' hint: and commit the result with 'git commit' 此时使用git status命令查

[临时向]蒟蒻的填坑记录

TAT这周开始填坑....这周大概是数据结构吧?来这里记录一下免得自己过几天又开始颓了TAT 1.3:中午看了下zkw线段树,写了bzoj3685...找前驱后缀的姿势不是很科学...不过速度相差不大就懒得改了. 晚上写treap..分别用zkw线段树和treap写了bzoj3224普通平衡树.....正常的treap大概300+ms...zkw线段树190+ms 1.4:中午用treap写了1503郁闷的出纳员....晚上写1058报表统计..弄了一晚上TAT 目测明天重开spaly...

Android WebView填坑记录

前言 在应用程序开发过程中,经常会采用webview来展现某些界面,这样就可以不受发布版本控制,实时更新,遇到问题可以快速修复. 但是在Android开发中,由于Android版本分化严重,每一个版本针对webview都有部分更改,因此在开发过程中会遇到各种各样的坑,因此在此总结一下在开发过程中遇到的一些坑! 样例 这里不是讲解怎么进行webview开发,而是只罗列其中遇到的一些坑!为了展示这些问题,我们还是写一个样例来进行展开. 样例代码: /** * WebView demo */ publ

F2eTest和UI Recorder自动化测试环境部署填坑记录

坑1:尝试部署的时候只在opennode.bat里面填写了两个浏览器,测试通过后再增加其他浏览器,页面上一直不显示.需要清空数据库里的`wd_browsers`和`wd_nodes`表,然后重启2008,数据库会重新加载新的节点信息.(此坑的解决方法在视频教程里,无文字版) 坑2:远程连接问题:在2008启动之后,node暂未启动前,f2etestweb页面可以打开3个浏览器页面.当webdriver云上显示node已经启动之后,f2etestweb页面只能可以打开1个浏览器页面,再多就会报连接

vscode 安装go第三方扩展包填坑记录

1.vscode中安装go扩展包,不再阐述. 2.在安装好go的扩展包以后,创建GOPATH环境变量 3.PATH中会自动添加,如果没有可手动添加 4.在GOPATH目录下创建自己的工作空间(为什么一定是在GOPATH下创建,还不太清楚),我的是workspace(名称可以自定义) 5.打开VSCODE,文件-打开文件夹,选择GOPATH目录 6.在workspace下创建helloworld目录(我称为项目空间) 7.配置VSCODE中的setting.json文件 加入如下配置: 8.编写h

zimbra填坑记录

邮件服务器上架,问题记录. 1.DNS解析设置,zimbra收发邮件均使用统一域名,mail.xxxx.com.cn,因此在做SMTP,POP,MX记录时均应指向此域名. 2.实际上架内部网络和安装所在网络环境不一致,导致网页端能登陆,但是发送邮件被拒绝,解决办法如下 修改当前域名下MTA信任的网络为实际的网络. 3.检查服务器出口所在IP是否是A记录指向的IP地址,使用此命令可以查询到,再未确认IP地址是否正确是,请勿发送测试邮件,我就是漏此步发送测试邮件,被总部邮件系统拉入黑名单了,伤心!

win10 Build 14905.rs_prerelease.160811-1739 填坑记录

问题一 腾讯游戏不能玩了,这个使用win7兼容性模式可以玩. 问题二 迅雷无限崩溃  官方补丁 http://down.sandai.net/thunderpatch/KB2016042601.exe 问题三 显示效果差 下载自己笔记本电脑官方显卡驱动win8版本即可,安装完成后切记关闭设备管理器的自动更新功能,否则又给你把驱动换了,不知道怎么关自行百度. 问题三 开机黑屏差不多2分钟的黑屏 amd双显卡问题bug,显卡型号HD7670M,华硕K53TK 使用ulps_enable_disabl

[填坑]一直遗忘的树套树版本动态CDQ

题解: 树状数组维护动态开点线段树 实质上是树状数组对应区间维护一颗动态开点线段树 方便对应区间小于x的个数 #include <bits/stdc++.h> #define ll long long const int MAXN=1e5+10; using namespace std; ll read(){ ll x=0,f=1;char ch=getchar(); while(!isdigit(ch)){if(ch=='-')f=-1;ch=getchar();} while(isdigi

技术填坑记

人生就是不断的填坑,再填坑,下面的填坑记录说不定就能帮助你. 1)SQL server 自带发email功能 测试发给我自己,一切看起来正常.发给小组成员,每个人都能收到了,看起来今天终于可以正常下班了. 可是,测试环境(当然会将所有人的邮件都设定为我们测试小组的成员了)发给某种类型的人的时候,程序不工作了.当初使用的update语句是自己编写的,当然不存在邮箱格式错误的可能. 真是百思不得琪姐啊,只好在小组里面找之前踩过坑的同事了解,询问是否碰到过同样的问题,还好的是我们IT人员都没有藏着掖着