"An internal error occurred" when trying to commit to git from eGit in Eclipse

Go To StackoverFlow.com

4

[SOLVED] Somehow, I managed to not have "write" permissions to the .git directory. So was trying to write the commit and getting bounced.

I've been using Eclipse for a few months, but had been just running git from the CLI. I decided that was inefficient and that I wanted to use eGit, so I started following this tutorial (http://www.slideshare.net/loianeg/using-the-egit-eclipse-plugin-with-git-hub-2578587?from=embed).

I'm trying to add an existing project, so I did Team-->Share Project-->Git and selected the .git corresponding to my project. Eclipse seems to have picked it up, okay, but when I try to commit, I get a popup saying

"Committing changes has encountered a problem' -- an internal error occured.

When I click details, it say "An internal error occurred Exception caught during execution of commit command"

...I don't even know where to start on this one. I googled the error and didn't get anything useful.

Anyone know how to fix this, or at least how to start debugging?

2012-04-05 23:13
by rogueleaderr
Excellent. I have edited my answer below to make your conclusion more visible - VonC 2012-04-06 05:55


6

  • start debugging?
    Check the "Errors" Eclipse view for a full Stack Trace associate with that error message

Example of an Error View:

Show Error View
Eclipse Error View

  • fix it?
    If the Exception is a NPE one (NullPointerException), like shown in bug 329611, then you can try a git commit -m "a message" in a shell, in order to get past that initial first commit with a GUI.

As the OP rogueleaderr mentions, the error view and the exact stack trace behind the exception was enough:

Somehow, I managed to not have "write" permissions to the .git directory.
So was trying to write the commit and getting bounced.

2012-04-06 00:30
by VonC
Thanks for letting me know about the errors view...that would have helped me track this down - rogueleaderr 2012-04-06 04:15


8

I've solved my case removing index.lock file from the git folder of the project.

2014-07-16 22:26
by Bruno Pinto


3

I face this problem too, Error tab doesn't show anything more. So I use GitExtension to commit instead, problem solved.

Using parallel eGit and GitExtension to keep tracking a local git repo is a good idea. It's update runtime on both Eclipse and GitExtension when we make change on each.

2012-10-12 04:31
by AnVo


2

I faced this problem. I delete the .git folder and .gitignore file push to upstream it works correctly.

2013-03-27 08:11
by boobalan


1

I had this same issue. I resolved it by committing manually from terminal using (in this order):

git add . then git commit and lastly, git push from the local repo directory.

2014-08-08 21:33
by tricknology


0

I faced similar problem, It was resolved after deleting index.lock file in .git\ folder.

2016-10-05 23:39
by Sravan Palaki
Ads