[英]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.