简体   繁体   English

除非我以 root 身份运行,否则从内部 gitlab 存储库克隆 git 不起作用

[英]git clone from internal gitlab repository doesn't work unless I'm running as root

I'm trying to clone an internal gitlab repository, but it keeps giving me this error message我正在尝试克隆一个内部 gitlab 存储库,但它一直给我这个错误消息

fatal: unable to access 'https://gitlab**************.git/': gnutls_handshake() failed: Error in the pull function.

But somehow, if I'm running as root, the cloning process would run perfectly.但不知何故,如果我以 root 身份运行,克隆过程将完美运行。

The problem is, I needed this to work because I'm trying to use this repository on Jenkins.问题是,我需要它来工作,因为我试图在 Jenkins 上使用这个存储库。

Can someone help me or explain why it only worked if I'm running as root?有人可以帮助我或解释为什么它只在我以 root 身份运行时才有效吗?

root uses the same version of git and curl. root 使用相同版本的 git 和 curl。

But it does not use the same:但它不使用相同的:

  • global git config: compare the output of git config --global -l in both instances (root and regular user account).全局 git 配置:比较 git 配置的git config --global -l在两个实例(root 和普通用户帐户)。
  • environment configuration (type env in both cases, and compare the environment variables)环境配置(在两种情况下都输入env ,并比较环境变量)

In particular, look for sslcainfo ( git config --global -l|grep -i ssl ) which could reference the certificate needed to contact through TLS your on-premise HTTPS GitLab URL. In particular, look for sslcainfo ( git config --global -l|grep -i ssl ) which could reference the certificate needed to contact through TLS your on-premise HTTPS GitLab URL.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我将 github 帐户连接到 gitlab 时,我无法克隆 Gitlab 存储库 - i cannot Clone a Gitlab repository when i connected my github account to gitlab 我正在尝试使用 Firebase 在 Flutter 中使用 Google 注销,但它不起作用 - I'm trying to signOut with google in Flutter with Firebase and it doesn't work 语言学家的 .gitattributes 不能与 gitlab 一起正常工作 - .gitattributes for linguist doesn't work correctly with gitlab 如何直接从 gitlab 服务器存储库获取 git 参考名称? - How to get the git refs name directly from gitlab server repository? 当我从 gitlab 克隆项目时,Xcode 显示错误代码 - Xcode shows wrong code when I clone project from gitlab Python Gitlab 提交功能在 main 中有效,但在放入 function 时同样的功能不起作用 - Python Gitlab commit functionality works from main but the same thing doesn't work when put into a function 无法克隆 flutter 项目 - GitLab - Can't clone a flutter project - GitLab 从另一个项目克隆/使用.ps gitlab - clone / use .ps from another project gitlab 使用 GitLab CI 如何禁用一项作业的存储库克隆? - With GitLab CI how to disable repository clone for one job? 从 gitlab 存储库中获取最新的 package - Fetch the latest package from gitlab repository
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM