简体   繁体   English

Git + Eclipse:401未经授权的错误

[英]Git + Eclipse: 401 Unauthorized Error

I have a git repo on my rasperry pi, with Apache. 我在我的rasperry pi上有一个git repo和Apache。
I use git + smart http: from a Linux client, using a Terminal, all work fine. 我使用git + smart http:来自Linux客户端,使用终端,一切正常。
For example I can clone a repo using the command: 例如,我可以使用以下命令克隆repo:

git clone http://address:8080/git/repo_name

After the insertion of the username and password, it works. 插入用户名和密码后,它可以正常工作。

But, if I want to clone the repo using Eclipse, it shows this error: 但是,如果我想使用Eclipse克隆repo,则会显示以下错误:

在此输入图像描述

This is the error log of apache: 这是apache的错误日志:

[Wed Sep 28 12:33:13.321726 2016] [negotiation:error] [pid 28020] [client 131.114.176.222:37524] AH00690: no acceptable variant: /usr/share/httpd/error/HTTP_UNAUTHORIZED.html.var

And this is my apache configuration (about git and smart http): 这是我的apache配置(关于git和smart http):

<Directory "/usr/lib/git-core*">
   Options ExecCGI Indexes
   Order allow,deny
   Allow from all
   Require all granted
</Directory>

<LocationMatch "^/.*/git-receive-pack$">
    Options +ExecCGI
    AuthType Basic
    AuthName "Git Login"
    AuthUserFile /srv/git/.git-auth-file
    Require valid-user
</LocationMatch>

<LocationMatch "^/.*/git-upload-pack$">
    Options +ExecCGI
    AuthType Basic
    AuthName "Git Login"
    AuthUserFile /srv/git/.git-auth-file
    Require valid-user
</LocationMatch>

SetEnv GIT_PROJECT_ROOT /srv/git
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/

Any ideas? 有任何想法吗?

PS: I'm using PS:我正在使用

  • Eclipse Java EE IDE for Web Developers. 面向Web开发人员的Eclipse Java EE IDE。 Version: Neon Release (4.6.0) Build id: 20160613-1800 版本:Neon Release(4.6.0)Build id:20160613-1800

  • EGit 4.4.0.20160607 EGit 4.4.0.20160607

I have faced the same problem, I have read that it´s an eclipse bug, there is a fix in progress https://git.eclipse.org/r/#/c/82187/ . 我遇到了同样的问题,我已经读到这是一个日食错误,正在进行修复https://git.eclipse.org/r/#/c/82187/

For now, you can fix the problem installing "EPP MArketplace Client". 目前,您可以解决安装“EPP MArketplace Client”的问题。 In your eclipse click Help -> Install New Software and put the follow url: http://download.eclipse.org/mpc/releases/1.5.2/ , then install. 在你的eclipse中单击Help - > Install New Software并输入以下url: http//download.eclipse.org/mpc/releases/1.5.2/ ,然后安装。

暂无
暂无

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

相关问题 Eclipse,Git和Bitbucket - 无法推送 - 错误401未经授权 - Eclipse, Git and Bitbucket - Can't push - Error 401 Unauthorized 从Apache Http Server上托管的git存储库中克隆时出现Eclipse造成的401未授权错误 - 401 Unauthorized error by eclipse while cloning from git repository hosted on Apache Http Server Eclipse Web Services测试客户端和异常:(401)未经授权的错误 - Eclipse Web Services Test Client and Exception: (401) Unauthorized error Maven Eclipse 中的 Bintray 分发未上传 jar 文件。 错误代码401(未授权)但只针对jar包装? - Maven Bintray distribution in Eclipse is not uploading jar files. Error code 401 (Unauthorized) but only for jar packaging? 使用Eclipse插件在AppEngine部署期间错误401未授权(无效的OAuth令牌) - Error 401 Unauthorized (Invalid OAuth Token) during AppEngine Deployment with Eclipse Plugin eclipse maven 部署战争到 nexus OSS 访问被拒绝 错误代码 401,未经授权 - eclipse maven deploy war to nexus OSS Access denied Error code 401, Unauthorized 在Eclipse Android中,HTTP连接(GET)中的响应始终为401(未经授权) - Response in HTTP Connection (GET) is always 401(Unauthorized) in eclipse android NTLM身份验证在eclipse上有效,但是tomcat给出了401未授权 - NTLM Authentication works on eclipse but tomcat gives 401 unauthorized 新的 eclipse 版本无法将 jar 部署到 Nexus 存储库,401 未经授权 - new eclipse version fails to deploy jar to Nexus repo with 401 unauthorized Eclipse git - 无法克隆 - git:未授权错误 - Eclipse git - unable to clone - git: not authorized error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM