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