TFS-Git - An exception occurred during push on URI: 401 Unauthorized - eclipse

I'm getting an error while pushing the git project to master on Eclipse. I am using Eclipse Neon.1 and trying to connect to TFS-Git repository. I am able to push and pull from the same repo using cli tools but eclipse troubles me. Here is the error message
An exception occurred during push on URI
https://tfs.[mydomain].com/tfs/Test_Collection_Report/_git/TFS_GIT_Training:
https://tfs.[mydomain].com/tfs/Test_Collection_Report/_git/TFS_GIT_Training:
401 Unauthorized
Using the Team Explorer plugin for Eclipse, I am able to connect to the repository. I have followed the fix mentioned here, but no luck yet. Any idea whats blocking me from pusing to git through eclipse? Here are my guess,
Windows git and EGit conflict
Eclipse not considering my credentials while connecting to git.
Any suggestion on how to fix it?

Related

Eclipse, Git and Bitbucket - Can't push - Error 401 Unauthorized

I have a problem with Bitbucket and EGit. I created a new repository on BitBucket and also a new project in Eclipse. When I try to push a commit, I get the following error message:
Can't connect to any repository: https://bitbucket.org/MyName/MyProject.git
(https://bitbucket.org/MyName/MyProject.git: 401 Unauthorized)
I also tried https://MyName#bitbucket.org/MyName/MyProject.git but I got the same error. After creating the commit, I pushed by using the command line with git push and it worked without a problem. After that I tried pushing with Eclipse and EGit but I got the same error again. I checked my account name and password multiple times.
Do I need to configure EGit in some way to make it possible to push from Eclipse to BitBucket? A month ago I always pushed to a repository on a different host from Eclipse with EGit without a problem.
It depends on your version of Eclipse and Egit.
With the very latest Neon, there is a thread reporting the same issue, and a ticket opened: bug 501000.
There is a fix in progress: Change 82187: "EGit Authenticator prevents login dialog".
It is already merged into master (also on the GitHub mirror:commit 39b391c and commit 10c65c7.
Change 82539 also just got merged 3 days ago.
So Marketplace Client Project project repository 1.5.2 should include the fix.
Actually, it is called 1.5.1a, but you can use http://download.eclipse.org/mpc/releases/1.5.2. as an url.
If you are using Eclipse Neon you may also install EPP Marketplace Client from the Neon repository. Click Help > Install New Software, type "neon", select the Neon repository URL, select Collaboration > Eclipse EPP Marketplace Client and click Install.
There is also a fix in progress for EGit itself: change 82295.

Error 401 Authorization required when pushing to github repository

I've been working with my remote github repository with no problem at all. But since yesterday I'm not able to push to my remote repository anymore.
I work with the eclipse IDE git pluggin and whenever I try to push I am getting this error:
https://github.com/jotaseme/josemaria.moreno.IWVG-doo.miw.upm.es.git:
401 Authorization Required
I've double-checked the user and password and also I've tried with other pc. The same situation: failed pushing to remote repository.
Any suggestion?
Thanks in advance.
Found this gist in one of the eclipse platforms:
In Eclipse
Help -> Install New Software
Work with: http://download.eclipse.org/mpc/releases/1.5.1a
Select the "EPP Marketplace Client"
Proceed with defaults

Internal error while accessing GIT repository from RSA 9.1 using TFS plug-in

I am able to connect to GIT server from RSA 9.1 using the TFS plugin.However, while accessing the Git repositories, I am getting the following internal error:
An internal error occurred during: "Loading section 'All
Repositories'". org/eclipse/egit/core/Activator "
Any idea what am I missing?
You can get a local clone of the remote repository and then import the repository
Or you can host your remote repository in TFS, then manually configured in EGit. Once this connection is established, you can use the EGit tools to perform basically any Git function, like committing, pushing, and creating new branches.
Details refer the 'Integration with Eclipse EGit tools' in this blog.
And you can download egit from here.

Egit error connecting to remote repo

Im having some difficulties connecting my project in eclipse with my remote repo with EGit.
I have already created a local git repo and now I want to connect it to github, but when I add the URI and use a https protocol I get:
"Internal error; consult Eclipse error log."
And I get this message in the Eclipse error log:
Error validating org.eclipse.egit.ui.internal.components.RepositorySelectionPage
How can I fix this?
What I do is that I go to remotes, right click it and select "Create remote...".
I then change the URI, and I add "https://github.com/Lumberfella/angularApp.git" to the URI input box, and the Host and Repository path auto fills themselves to:
Host: github.com
Repository path: /Lumberfella/angularApp.git
and In the connection section I have https as the Protocol.
When I do this, its already giving me an error at the top of the "Select URI" window saying: "internal error; consult Eclipse error log." which is what I posted above.
Im using EGit version 3.3.1
I tried out you repository, and it seemed that repository is empty. I am not entirely sure about this answer, but I believe, you cannot use the read-only http urls on empty repositories (e.g. they have no branches to pull).
This theory is further supported by the exception trace I have found in the Error log view:
Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: test
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136)
at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:127)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:100)
... 64 more
Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: test: not found.
at org.eclipse.jgit.transport.TransportLocal$1.open(TransportLocal.java:131)
at org.eclipse.jgit.transport.TransportBundleFile$1.open(TransportBundleFile.java:106)
at org.eclipse.jgit.transport.Transport.open(Transport.java:556)
at org.eclipse.jgit.transport.Transport.open(Transport.java:316)
at org.eclipse.jgit.transport.Transport.open(Transport.java:287)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:120)
... 66 more
Basically, the trace says, it cannot get contents from the remote repository.
I was not able to make it work by adding a remote repository by adding the https or ssh inside eclipse in remotes.
But since I was able to make a working local repository, I figured all I needed to do was download the Git Shell and add a new remote repository that way.
For some reason this totally worked and it also automaticly connected the remote repository to eclipse, so Im now able to push directly from eclipse to both the local and the remote repository (or which ever I would like to).

How to clone from Bitbucket on Eclipse behind an auth proxy

I'm having problems to clone a git repository from bitbucket on eclipse, the fact is that I can clone from other sites like github, but not from bitbucket. The auth proxy on my company allows me to go out only with http and https, so I cannot use ssh.
The url I am using to clone in eclipse is: https://mybituser#bitbucket.org/mybituser/test-bitbucket.git
I have eclipse configured to work behind the auth proxy, Window->Preferences->General->Network Connections.
I've tested this on eclipse kepler and juno and shows the same error.
When I try to clone from bitbucket, I complete the wizard until the last step(view branches, selecting destination folder, etc) but when I hit finish appears the error dialog:
https://bitbucket.org/mybituser/test-bitbucket.git: cannot open git-upload-pack
Anyone knows what can be happening here?
Thank you,