Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve Git error: "fatal: BUG: get_tempfile_fd() called for inactive object"

Tags:

git

When doing a git pull on a repo I work in everyday, I received the following error:

fatal: BUG: get_tempfile_fd() called for inactive object

That's all the error said. What does it mean and what do I do?

like image 646
Choylton B. Higginbottom Avatar asked Oct 18 '16 16:10

Choylton B. Higginbottom


3 Answers

The resolution for me was was deleting .git/index.lock.

like image 149
Choylton B. Higginbottom Avatar answered Nov 12 '22 20:11

Choylton B. Higginbottom


The problem for me was that I didn't have permissions for the directory I was in, so switching to the correct user fixed it for me. Simple fix but you can easily overlook it.

like image 10
gitaarik Avatar answered Nov 12 '22 20:11

gitaarik


This is often a permissions error. On Linux you can chown the folder or switch to the appropriate user.

Use ls -la within the parent folder to see the user permissions. If this is indeed the problem, you can chown the folder recursively.

If my folder name containing the repository was happytimes and my name was daniel I would do:

sudo chown -R daniel:daniel happytimes

like image 3
Daniel Avatar answered Nov 12 '22 22:11

Daniel