git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Unable to create temporary file '/var/git/tmv3-target-overlay.git/shallow_Un8ZOR': Permission denied

From
JTJoakim Tjernlund <joakim.tjernlund@transmode.se>
Date
Aug 21, 2015, 11:50 UTC
Message-ID
<1440157845.1759.85.camel@transmode.se>
In-Reply-To
<1440157010.1759.83.camel@transmode.se>
On Fri, 2015-08-21 at 13:36 +0200, Joakim Tjernlund wrote:
Show 41 quoted lines
> I cannot push:
> # > git push origin
> Login for jocke@git.transmode.se
> Password: 
> Counting objects: 7, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (7/7), done.
> Writing objects: 100% (7/7), 13.73 KiB | 0 bytes/s, done.
> Total 7 (delta 4), reused 0 (delta 0)
> fatal: Unable to create temporary file '/var/git/tmv3-target-overlay.git/shallow_Un8ZOR': Permission denied
> fatal: The remote end hung up unexpectedly
> fatal: The remote end hung up unexpectedly
> cu-km022 tmv3-target-overlay # ls -l
> total 0
> drwxr-xr-x 1 root root  72 Aug 19 17:59 ./
> drwxr-xr-x 1 root root  38 Aug 19 17:59 ../
> drwxr-xr-x 1 root root 216 Aug 21 13:07 .git/
> drwxr-xr-x 1 root root  22 Aug 19 17:59 metadata/
> drwxr-xr-x 1 root root  58 Aug 19 18:27 profiles/
> drwxr-xr-x 1 root root  74 Aug 19 17:59 sys-apps/
> drwxr-xr-x 1 root root  42 Aug 19 17:59 sys-libs/
> 
> On server I have:
> # >ls -la
> total 24
> dr-xr-sr-x   6 apache tm-3000  123 Jun 10 15:25 .
> drwxr-xr-x  36 root   root    4096 Jun 25 11:11 ..
> -r--r--r--   1 root   tm-3000  263 Jun 10 15:18 config
> -r--r--r--   1 apache tm-3000   73 Jun 10 15:18 description
> -rw-r--r--   1 root   tm-3000    0 Jun 10 15:25 git-daemon-export-ok
> -r--r--r--   1 apache tm-3000   23 Jun 10 15:18 HEAD
> drwxr-sr-x   2 root   tm-3000 4096 Jun 10 15:18 hooks
> drwxrwsr-x   2 apache tm-3000   20 Jun 10 15:18 info
> drwxrwsr-x 135 apache tm-3000 4096 Aug 20 19:07 objects
> drwxrwsr-x   4 apache tm-3000   29 Jun 10 15:18 refs
> 
> 
> I suspect this is because no one is allowed to write the repos top dir.
> It would be much better if git allowed a tmp dir inside the repo and used that 
> for push etc.
> Meanwhile, is there some workaround I can use?

This error seems to only affect shallow clones. Forgot, git version 2.4.6

 Jocke
Previous: Joakim TjernlundNext: Joakim Tjernlund
Message 2 of 20 in “Unable to create temporary file '/var/git/tmv3-target-overlay.git/shallow_Un8ZOR': Permission denied”
  1. Joakim TjernlundAug 21, 2015
  2. Joakim TjernlundAug 21, 2015
  3. Joakim TjernlundAug 31, 2015
  4. Duy NguyenAug 31, 2015
  5. Joakim TjernlundSep 14, 2015
  6. Duy NguyenSep 17, 2015
  7. Joakim TjernlundSep 17, 2015
  8. Duy NguyenSep 19, 2015
  9. Duy NguyenSep 19, 2015
  10. Johannes SchindelinSep 19, 2015
  11. Joakim TjernlundSep 20, 2015
  12. Joakim TjernlundSep 19, 2015
  13. Junio C HamanoSep 21, 2015
  14. Joakim TjernlundSep 21, 2015
  15. Johannes SchindelinSep 22, 2015
  16. Joakim TjernlundSep 22, 2015
  17. Johannes SchindelinSep 23, 2015
  18. Junio C HamanoSep 23, 2015
  19. Joakim TjernlundSep 23, 2015
  20. Johannes SchindelinSep 23, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.