Git Error Unable To Create Temporary Sha1 Filename Permission Denied
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack error unable to write sha1 filename no such file or directory Overflow the company Business Learn more about hiring developers or posting ads with us Stack
Git Unable To Write Sha1 Filename Permission Denied
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community
Git Cannot Store Pack File
of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Git pull error: unable to create temporary sha1 filename up vote 34 down vote favorite 12 I've
Git Unable To Write Sha1 Filename Windows
got a small git repo setup with the only real purpose to be able to develop locally on several machines (work, home, laptop). Thus I have one branch and I commit/push once I leave a computer, pull once I sit down at the next. Has worked fine, up to now that is. Now when I pull on my 'live test' machine, I get the following: remote: Counting objects: 38, done. remote: error: file write error (no space left on device) Compressiremote: ng objects: 100% (20/20), done. remote: Total 20 (delta 17), reused 0 (delta 0) error: unable to create temporary sha1 filename .git/objects/ed: File exists fatal: failed to write object fatal: unpack-objects failed Searching around the net the only real answer I could find was the following: http://marc.info/?l=git&m=122720741928774&w=2 which basically states that this is a bogus error that's on top of the pile and thus says nothing about what really is wrong. Where do I go from here to find out what is wrong? Edit: Removed the local copy and re-cloned git share|improve this question edited Mar 26 '09 at 11:50 asked Mar 26 '09 at 11:08 Ickmund 338138 add a comment| 19 Answers 19 active oldest votes up vote 31 down vote accepted For what it's worth, when I had this problem—but when committing—I tried git-repack and git-gc, but neither worked. I got a permission denied error, which led me to chown the entire repo recursively to the user I expected it to be, and I could then commit/push/pull with no problem. share|improve this answer edited Mar 12 '15 at 0:47 answered Mar 28 '09 at 2:36 aresnick 827516 1 Interesting variation on this - I was using git-daemon with one of my repositories for a while, then switched to local
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the unpack failed unpack-objects abnormal exit workings and policies of this site About Us Learn more about git "unable to create temporary file" Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions git chown Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. http://stackoverflow.com/questions/685319/git-pull-error-unable-to-create-temporary-sha1-filename Join them; it only takes a minute: Sign up fatal: Unable to create temporary file '/home/username/git/myrepo.git/./objects/pack/tmp_pack_XXXXXX': Permission denied up vote 30 down vote favorite 8 I have been having trouble with this error message and I don't understand the proper solution to fix it or go about debugging it. I have googled the error in various forms but no http://stackoverflow.com/questions/13146992/fatal-unable-to-create-temporary-file-home-username-git-myrepo-git-objects real solution has presented itself. I am assuming it's an issue with permissions but I don't really know how to check or what I should check for. I have a server running Ubuntu 11.10 and I'm basically trying to make the initial commit to my git repo from my development machine. I'm running as root. Should I be running as the user? Repo creation on server: $ cd /home/username/git $ mkdir myrepo.git $ cd myrepo.git/ $ git --bare init Repo creation on development machine: Goto rails project directory first $ git init $ git add . $ git commit -m "initial commit" $ bundle pack $ git add Gemfile.lock vendor/cache $ git commit -m "bundle gems" $ git remote add origin ssh://username@server.com/home/username/git/myrepo.git $ git push origin master Error: fatal: Unable to create temporary file '/home/username/git/myrepo.git/./objects/pack/tmp_pack_XXXXXX': Permission denied error: pack-objects died of signal 13 error: failed to push some refs to 'ssh://username@server.com/home/username/git/myrepo.git' My .git/config file: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true [remote "origin"] url = ssh://usernam