git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Error: Unable to append to logs/HEAD: Permission denied
@ 2010-05-16 23:18 git_user101
  2010-05-17  7:54 ` Michael J Gruber
  0 siblings, 1 reply; 11+ messages in thread
From: git_user101 @ 2010-05-16 23:18 UTC (permalink / raw)
  To: git


Hi,
when I use the command: git push
I get these two errors:
...
error: Unable to append to logs/HEAD: Permission denied
...
error: failed to push some refs to 'ssh://remote server'

However, the changes are pushed in the remote repository.

Does somebody have any ideas?
Thanx,
-- 
View this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5063068.html
Sent from the git mailing list archive at Nabble.com.

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

* Re: Error: Unable to append to logs/HEAD: Permission denied
  2010-05-16 23:18 Error: Unable to append to logs/HEAD: Permission denied git_user101
@ 2010-05-17  7:54 ` Michael J Gruber
  2010-05-17  8:17   ` git_user101
  0 siblings, 1 reply; 11+ messages in thread
From: Michael J Gruber @ 2010-05-17  7:54 UTC (permalink / raw)
  To: git_user101; +Cc: git

git_user101 venit, vidit, dixit 17.05.2010 01:18:
> 
> Hi,
> when I use the command: git push
> I get these two errors:
> ...
> error: Unable to append to logs/HEAD: Permission denied
> ...
> error: failed to push some refs to 'ssh://remote server'
> 
> However, the changes are pushed in the remote repository.
> 
> Does somebody have any ideas?
> Thanx,

Is this a shared repo by any chance (i.e. accessed by different user
ids, not just by different people using the same git-account)?

Michael

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

* Re: Error: Unable to append to logs/HEAD: Permission denied
  2010-05-17  7:54 ` Michael J Gruber
@ 2010-05-17  8:17   ` git_user101
  2010-05-17  9:02     ` Michael J Gruber
  0 siblings, 1 reply; 11+ messages in thread
From: git_user101 @ 2010-05-17  8:17 UTC (permalink / raw)
  To: git


yes!
This is about a shared repository that is allowed to be accessed by its
owner and group.
The group consists of some machine users.
Users have different accounts and modify the git-repository by own account.


-- 
View this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5064104.html
Sent from the git mailing list archive at Nabble.com.

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

* Re: Error: Unable to append to logs/HEAD: Permission denied
  2010-05-17  8:17   ` git_user101
@ 2010-05-17  9:02     ` Michael J Gruber
  2010-05-17 11:09       ` git_user101
  0 siblings, 1 reply; 11+ messages in thread
From: Michael J Gruber @ 2010-05-17  9:02 UTC (permalink / raw)
  To: git_user101; +Cc: git

git_user101 venit, vidit, dixit 17.05.2010 10:17:
> 
> yes!
> This is about a shared repository that is allowed to be accessed by its
> owner and group.
> The group consists of some machine users.
> Users have different accounts and modify the git-repository by own account.
> 

Then you might want to read up on core.sharedRepository in git config's
man page and set it according to your situation (all users in the same
group, e.g.). Also, you'll have to fix-up permissions manually at least
on logs/HEAD (and probably others).

Cheers,
Michael

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

* Re: Error: Unable to append to logs/HEAD: Permission denied
  2010-05-17  9:02     ` Michael J Gruber
@ 2010-05-17 11:09       ` git_user101
  2010-05-17 11:40         ` Michael J Gruber
  0 siblings, 1 reply; 11+ messages in thread
From: git_user101 @ 2010-05-17 11:09 UTC (permalink / raw)
  To: git


after configuring git and setting core.sharedRepository to true at server
side, I do not get the first error any more. But the second one still
appears on the screen after every push.
error: failed to push some refs to 'ssh://remote server'

-- 
View this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5064574.html
Sent from the git mailing list archive at Nabble.com.

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

* Re: Error: Unable to append to logs/HEAD: Permission denied
  2010-05-17 11:09       ` git_user101
@ 2010-05-17 11:40         ` Michael J Gruber
  2010-05-17 12:13           ` git_user101
  0 siblings, 1 reply; 11+ messages in thread
From: Michael J Gruber @ 2010-05-17 11:40 UTC (permalink / raw)
  To: git_user101; +Cc: git

git_user101 venit, vidit, dixit 17.05.2010 13:09:
> 
> after configuring git and setting core.sharedRepository to true at server
> side, I do not get the first error any more. But the second one still
> appears on the screen after every push.
> error: failed to push some refs to 'ssh://remote server'
> 

That means that in addition to the 1st part, you'll also have to follow
the 2nd part of my advice ;)

Michael

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

* Re: Error: Unable to append to logs/HEAD: Permission denied
  2010-05-17 11:40         ` Michael J Gruber
@ 2010-05-17 12:13           ` git_user101
  2010-05-17 12:26             ` Michael J Gruber
  0 siblings, 1 reply; 11+ messages in thread
From: git_user101 @ 2010-05-17 12:13 UTC (permalink / raw)
  To: git


Thank you, Michael!
I do not understand what you exactly mean with "Also, you'll have to fix-up
permissions manually at least
on logs/HEAD (and probably others)"
If you mean that I have to change the permission of logs/HEAD to read, write
for the group, it is already done.
All files and directories in the repository are accessible for the group.
-- 
View this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5064764.html
Sent from the git mailing list archive at Nabble.com.

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

* Re: Error: Unable to append to logs/HEAD: Permission denied
  2010-05-17 12:13           ` git_user101
@ 2010-05-17 12:26             ` Michael J Gruber
  2010-05-17 12:48               ` git_user101
  0 siblings, 1 reply; 11+ messages in thread
From: Michael J Gruber @ 2010-05-17 12:26 UTC (permalink / raw)
  To: git_user101; +Cc: git

git_user101 venit, vidit, dixit 17.05.2010 14:13:
> 
> Thank you, Michael!
> I do not understand what you exactly mean with "Also, you'll have to fix-up
> permissions manually at least
> on logs/HEAD (and probably others)"
> If you mean that I have to change the permission of logs/HEAD to read, write
> for the group,

I meant all files & dirs under ${repo}.git should be owned by the group
and +rw for the group. ["All" is actually overkill but sufficient.]

> it is already done.
> All files and directories in the repository are accessible for the group.

Hmm. If really all files and dirs (!) are group writeable I'm puzzled.
What is the complete report and error message (besides failed to push)?

A push can also fail due to non fast-forward, of course.

Michael

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

* Re: Error: Unable to append to logs/HEAD: Permission denied
  2010-05-17 12:26             ` Michael J Gruber
@ 2010-05-17 12:48               ` git_user101
  2010-05-17 13:35                 ` Michael J Gruber
  0 siblings, 1 reply; 11+ messages in thread
From: git_user101 @ 2010-05-17 12:48 UTC (permalink / raw)
  To: git


The push is succeed but I get this error every time. This is de complete
message:

user@desktop:~/Documents/LRSystems$ git push 
user@server's password: 
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 302 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
To ssh://user@server:port/repositories/LRSystems
   1143c0..50b610  master -> master
error: failed to push some refs to
'ssh://user@server:port/repositories/LRSystems'
user@desktop:~/Documents/LRSystems$

As you can see the push is done but I get the error.
-- 
View this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5064900.html
Sent from the git mailing list archive at Nabble.com.

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

* Re: Error: Unable to append to logs/HEAD: Permission denied
  2010-05-17 12:48               ` git_user101
@ 2010-05-17 13:35                 ` Michael J Gruber
  2010-05-17 19:02                   ` git_user101
  0 siblings, 1 reply; 11+ messages in thread
From: Michael J Gruber @ 2010-05-17 13:35 UTC (permalink / raw)
  To: git_user101; +Cc: git

git_user101 venit, vidit, dixit 17.05.2010 14:48:
> 
> The push is succeed but I get this error every time. This is de complete
> message:
> 
> user@desktop:~/Documents/LRSystems$ git push 
> user@server's password: 
> Counting objects: 5, done.
> Delta compression using up to 8 threads.
> Compressing objects: 100% (3/3), done.
> Writing objects: 100% (3/3), 302 bytes, done.
> Total 3 (delta 2), reused 0 (delta 0)
> To ssh://user@server:port/repositories/LRSystems
>    1143c0..50b610  master -> master
> error: failed to push some refs to
> 'ssh://user@server:port/repositories/LRSystems'
> user@desktop:~/Documents/LRSystems$
> 
> As you can see the push is done but I get the error.

Is the repo on the server side in a good state? I.e., if you do

git status
git fsck
git show-ref

in the server side repo, is there something strange?
Another thing worth trying would be to

git clone --shared --mirror LRSystems LRSystems-new

and check whether pushing to that freshly set-up repo works.

Michael

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

* Re: Error: Unable to append to logs/HEAD: Permission denied
  2010-05-17 13:35                 ` Michael J Gruber
@ 2010-05-17 19:02                   ` git_user101
  0 siblings, 0 replies; 11+ messages in thread
From: git_user101 @ 2010-05-17 19:02 UTC (permalink / raw)
  To: git


Thanks Michael!
I solved the problem by making a new repository on the server and cloning to
the local computer.

-- 
View this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5066526.html
Sent from the git mailing list archive at Nabble.com.

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

end of thread, other threads:[~2010-05-17 19:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-16 23:18 Error: Unable to append to logs/HEAD: Permission denied git_user101
2010-05-17  7:54 ` Michael J Gruber
2010-05-17  8:17   ` git_user101
2010-05-17  9:02     ` Michael J Gruber
2010-05-17 11:09       ` git_user101
2010-05-17 11:40         ` Michael J Gruber
2010-05-17 12:13           ` git_user101
2010-05-17 12:26             ` Michael J Gruber
2010-05-17 12:48               ` git_user101
2010-05-17 13:35                 ` Michael J Gruber
2010-05-17 19:02                   ` git_user101

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).