threads / discuss / 21014

error: insufficient permission

Subject: error: insufficient permission

## tl;dr

4 messages between Sep 21, 2009 and Dec 16, 2011.

replies: 3people: 4as markdown or json

Dominic Rose· Sep 21, 2009, 08:32 UTC · lore
Hi,

may please somebody help me with the following issue. I try to checkin changes to a repository I created. Seems like I have some permission problems, but I can't figure out whats going wrong:

$ git commit -m 'test'
Created commit 07b3a4a: test
 1 files changed, 1 insertions(+), 1 deletions(-)
$ git push
Counting objects: 8, done.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.56 KiB, done.
Total 6 (delta 4), reused 0 (delta 0)
error: insufficient permission for adding an object to repository 
database ./objects
fatal: failed to write object
error: unpack failed: unpacker exited with error code
To /homes/[...]
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to '/homes/[...]'

Thanks, Dominic

-- 
Dominic Rose
Professur für Bioinformatik
Institut für Informatik
Universität Leipzig
Härtelstr. 16-18
D-04107 Leipzig
WWW    http://www.bioinf.uni-leipzig.de
Phone: +49 341 97-16698
Fax:   +49 341 97-16679
Luciano Rocha· Sep 21, 2009, 08:52 UTC · re: Dominic Rose · lore

Re: error: insufficient permission

On Mon, Sep 21, 2009 at 10:32:07AM +0200, Dominic Rose wrote:
Show 22 quoted lines
> Hi,
> 
> may please somebody help me with the following issue. I try to
> checkin changes to a repository I created. Seems like I have some
> permission problems, but I can't figure out whats going wrong:
> 
> $ git commit -m 'test'
> Created commit 07b3a4a: test
> 1 files changed, 1 insertions(+), 1 deletions(-)
> $ git push
> Counting objects: 8, done.
> Compressing objects: 100% (6/6), done.
> Writing objects: 100% (6/6), 1.56 KiB, done.
> Total 6 (delta 4), reused 0 (delta 0)
> error: insufficient permission for adding an object to repository
> database ./objects
> 
> fatal: failed to write object
> error: unpack failed: unpacker exited with error code
> To /homes/[...]
> ! [remote rejected] master -> master (n/a (unpacker error))
> error: failed to push some refs to '/homes/[...]'

That's a filesystem permissions problem on the server side. You'll have to check if your user has permissions to write to the objects subdir of the repository.

-- 
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>
Johannes Sixt· Sep 21, 2009, 08:53 UTC · re: Dominic Rose · lore

Re: error: insufficient permission

Dominic Rose schrieb:
Show 8 quoted lines
> error: insufficient permission for adding an object to repository
> database ./objects
> 
> fatal: failed to write object
> error: unpack failed: unpacker exited with error code
> To /homes/[...]
> ! [remote rejected] master -> master (n/a (unpacker error))
> error: failed to push some refs to '/homes/[...]'

Make sure you have permission to create new files and directories in /homes/[...]/objects and that you have permission to create new files in all directories that are already in /homes/[...]/objects.

-- Hannes
Manish Patel· Dec 16, 2011, 08:09 UTC · re: Dominic Rose · lore

Re: error: insufficient permission

Very simple.. just find out .git directory give 0777 permission to objects dir.. such as..

chmod -R 0777 objects

-- View this message in context: http://git.661346.n2.nabble.com/error-insufficient-permission-tp3683868p7099986.html Sent from the git mailing list archive at Nabble.com.

← back to recent threads