![](/img/trans.png)
[英]Eclipse, Git and Bitbucket - Can't push - Error 401 Unauthorized
[英]Git + Eclipse: 401 Unauthorized Error
我在我的rasperry pi上有一个git repo和Apache。
我使用git + smart http:来自Linux客户端,使用终端,一切正常。
例如,我可以使用以下命令克隆repo:
git clone http://address:8080/git/repo_name
插入用户名和密码后,它可以正常工作。
但是,如果我想使用Eclipse克隆repo,则会显示以下错误:
这是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
这是我的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/
有任何想法吗?
PS:我正在使用
面向Web开发人员的Eclipse Java EE IDE。 版本:Neon Release(4.6.0)Build id:20160613-1800
EGit 4.4.0.20160607
我遇到了同样的问题,我已经读到这是一个日食错误,正在进行修复https://git.eclipse.org/r/#/c/82187/ 。
目前,您可以解决安装“EPP MArketplace Client”的问题。 在你的eclipse中单击Help - > Install New Software并输入以下url: http : //download.eclipse.org/mpc/releases/1.5.2/ ,然后安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.