git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Cant clone/pull/fetch because of "Unable to create temporary file '$HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_'
@ 2017-05-14 22:28 Thomas Schweikle
  2017-05-16 10:38 ` Kevin Daudt
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Schweikle @ 2017-05-14 22:28 UTC (permalink / raw)
  To: git

$ git clone
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
linux-stable
Cloning into 'linux-stable'...
remote: Counting objects: 5932092, done.
remote: Compressing objects: 100% (154131/154131), done.
fatal: Unable to create temporary file
'$HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX': Permission
denied
fatal: index-pack failed

Since no file/directory created by git I cant tell why git isn't
able to create
"$HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX".

If I try to create this file and directory I can create it:
$ mkdir -p $HOME/Dev/linux-stable/.git/objects/pack
$ touch $HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX
$ ll $HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX
-rw-rw-r-x+ 1 tps tps 0 May 15 00:18
/home/tps/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX
$

$ git --version
git version 2.11.0

-- 
Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cant clone/pull/fetch because of "Unable to create temporary file '$HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_'
  2017-05-14 22:28 Cant clone/pull/fetch because of "Unable to create temporary file '$HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_' Thomas Schweikle
@ 2017-05-16 10:38 ` Kevin Daudt
  2017-05-16 20:26   ` Thomas Schweikle
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Daudt @ 2017-05-16 10:38 UTC (permalink / raw)
  To: Thomas Schweikle; +Cc: git

On Mon, May 15, 2017 at 12:28:58AM +0200, Thomas Schweikle wrote:
> $ git clone
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
> linux-stable
> Cloning into 'linux-stable'...
> remote: Counting objects: 5932092, done.
> remote: Compressing objects: 100% (154131/154131), done.
> fatal: Unable to create temporary file
> '$HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX': Permission
> denied
> fatal: index-pack failed
> 
> Since no file/directory created by git I cant tell why git isn't
> able to create
> "$HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX".
> 
> If I try to create this file and directory I can create it:
> $ mkdir -p $HOME/Dev/linux-stable/.git/objects/pack
> $ touch $HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX
> $ ll $HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX
> -rw-rw-r-x+ 1 tps tps 0 May 15 00:18
> /home/tps/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX
> $
> 
> $ git --version
> git version 2.11.0
> 
> -- 
> Thomas

Note the '+' at the end of the permission list. This means an acl has
been applied to this directory.

What does getfacl
'$HOME/Dev/linux-stable/.git/objects/pack/' return?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cant clone/pull/fetch because of "Unable to create temporary file '$HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_'
  2017-05-16 10:38 ` Kevin Daudt
@ 2017-05-16 20:26   ` Thomas Schweikle
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Schweikle @ 2017-05-16 20:26 UTC (permalink / raw)
  To: Kevin Daudt; +Cc: git

2017-05-16 12:38 GMT+02:00 Kevin Daudt <me@ikke.info>:
> On Mon, May 15, 2017 at 12:28:58AM +0200, Thomas Schweikle wrote:
>> $ git clone
>> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
>> linux-stable
>> Cloning into 'linux-stable'...
>> remote: Counting objects: 5932092, done.
>> remote: Compressing objects: 100% (154131/154131), done.
>> fatal: Unable to create temporary file
>> '$HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX': Permission
>> denied
>> fatal: index-pack failed
>>
>> Since no file/directory created by git I cant tell why git isn't
>> able to create
>> "$HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX".
>>
>> If I try to create this file and directory I can create it:
>> $ mkdir -p $HOME/Dev/linux-stable/.git/objects/pack
>> $ touch $HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX
>> $ ll $HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX
>> -rw-rw-r-x+ 1 tps tps 0 May 15 00:18
>> /home/tps/Dev/linux-stable/.git/objects/pack/tmp_pack_XXXXXX
>> $
>>
>> $ git --version
>> git version 2.11.0
>>
>> --
>> Thomas
>
> Note the '+' at the end of the permission list. This means an acl has
> been applied to this directory.
>
> What does getfacl
> '$HOME/Dev/linux-stable/.git/objects/pack/' return?

since non of "linux-stable/.git/objects/pack" is created, I can only
have a look at what acl the directories have if I create them:

$ mkdir -p $HOME/Dev/linux-stable/.git/objects/pack
$ LANG=C getfacl $HOME/Dev/linux-stable/.git
getfacl: Removing leading '/' from absolute path names
# file: home/tps/Dev/linux-stable/.git
# owner: tps
# group: tps
user::rwx
user:root:rwx
user:500:rwx
user:nobody:---
group::rwx
group:uuidd:rwx
group:crontab:r-x
mask::rwx
other::rwx
default:user::rwx
default:user:root:rwx
default:user:500:rwx
default:user:nobody:---
default:group::rwx
default:group:uuidd:rwx
default:group:crontab:r-x
default:mask::rwx
default:other::rwx

$ LANG=C getfacl /home/tps/Dev/linux-stable/.git/objects/
getfacl: Removing leading '/' from absolute path names
# file: home/tps/Dev/linux-stable/.git/objects/
# owner: tps
# group: tps
user::rwx
user:root:rwx
user:500:rwx
user:nobody:---
group::rwx
group:uuidd:rwx
group:crontab:r-x
mask::rwx
other::rwx
default:user::rwx
default:user:root:rwx
default:user:500:rwx
default:user:nobody:---
default:group::rwx
default:group:uuidd:rwx
default:group:crontab:r-x
default:mask::rwx
default:other::rwx

$ LANG=C getfacl /home/tps/Dev/linux-stable/.git/objects/pack/
getfacl: Removing leading '/' from absolute path names
# file: home/tps/Dev/linux-stable/.git/objects/pack/
# owner: tps
# group: tps
user::rwx
user:root:rwx
user:500:rwx
user:nobody:---
group::rwx
group:uuidd:rwx
group:crontab:r-x
mask::rwx
other::rwx
default:user::rwx
default:user:root:rwx
default:user:500:rwx
default:user:nobody:---
default:group::rwx
default:group:uuidd:rwx
default:group:crontab:r-x
default:mask::rwx
default:other::rwx

git should not have any problems creating files and folders …
but git wont even create linux-stable!

-- 
Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-16 20:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-14 22:28 Cant clone/pull/fetch because of "Unable to create temporary file '$HOME/Dev/linux-stable/.git/objects/pack/tmp_pack_' Thomas Schweikle
2017-05-16 10:38 ` Kevin Daudt
2017-05-16 20:26   ` Thomas Schweikle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).