{"thread":{"id":"23822","subject":"Error: Unable to append to logs/HEAD: Permission denied","startedAt":"2010-05-16T23:18:32Z","lastAt":"2010-05-17T19:02:06Z","messageCount":11,"participants":["git_user101","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"141782","messageId":"1274051912050-5063068.post@n2.nabble.com","threadId":"23822","inReplyTo":null,"subject":"Error: Unable to append to logs/HEAD: Permission denied","fromName":"git_user101","fromEmail":"m.aqadjanimemar@student.ru.nl","sentAt":"2010-05-16T23:18:32Z","receivedAt":"2010-05-16T23:18:32Z","isPatch":false,"sender":{"key":"m.aqadjanimemar@student.ru.nl","avatar":null},"body":"\nHi,\nwhen I use the command: git push\nI get these two errors:\n...\nerror: Unable to append to logs/HEAD: Permission denied\n...\nerror: failed to push some refs to 'ssh://remote server'\n\nHowever, the changes are pushed in the remote repository.\n\nDoes somebody have any ideas?\nThanx,\n-- \nView this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5063068.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"141796","messageId":"4BF0F63A.1080005@drmicha.warpmail.net","threadId":"23822","inReplyTo":"1274051912050-5063068.post@n2.nabble.com","subject":"Re: Error: Unable to append to logs/HEAD: Permission denied","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-05-17T07:54:34Z","receivedAt":"2010-05-17T07:54:34Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"git_user101 venit, vidit, dixit 17.05.2010 01:18:\n> \n> Hi,\n> when I use the command: git push\n> I get these two errors:\n> ...\n> error: Unable to append to logs/HEAD: Permission denied\n> ...\n> error: failed to push some refs to 'ssh://remote server'\n> \n> However, the changes are pushed in the remote repository.\n> \n> Does somebody have any ideas?\n> Thanx,\n\nIs this a shared repo by any chance (i.e. accessed by different user\nids, not just by different people using the same git-account)?\n\nMichael\n"},{"id":"141799","messageId":"1274084247216-5064104.post@n2.nabble.com","threadId":"23822","inReplyTo":"4BF0F63A.1080005@drmicha.warpmail.net","subject":"Re: Error: Unable to append to logs/HEAD: Permission denied","fromName":"git_user101","fromEmail":"m.aqadjanimemar@student.ru.nl","sentAt":"2010-05-17T08:17:27Z","receivedAt":"2010-05-17T08:17:27Z","isPatch":false,"sender":{"key":"m.aqadjanimemar@student.ru.nl","avatar":null},"body":"\nyes!\nThis is about a shared repository that is allowed to be accessed by its\nowner and group.\nThe group consists of some machine users.\nUsers have different accounts and modify the git-repository by own account.\n\n\n-- \nView this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5064104.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"141800","messageId":"4BF10623.5000705@drmicha.warpmail.net","threadId":"23822","inReplyTo":"1274084247216-5064104.post@n2.nabble.com","subject":"Re: Error: Unable to append to logs/HEAD: Permission denied","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-05-17T09:02:27Z","receivedAt":"2010-05-17T09:02:27Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"git_user101 venit, vidit, dixit 17.05.2010 10:17:\n> \n> yes!\n> This is about a shared repository that is allowed to be accessed by its\n> owner and group.\n> The group consists of some machine users.\n> Users have different accounts and modify the git-repository by own account.\n> \n\nThen you might want to read up on core.sharedRepository in git config's\nman page and set it according to your situation (all users in the same\ngroup, e.g.). Also, you'll have to fix-up permissions manually at least\non logs/HEAD (and probably others).\n\nCheers,\nMichael\n"},{"id":"141805","messageId":"1274094574729-5064574.post@n2.nabble.com","threadId":"23822","inReplyTo":"4BF10623.5000705@drmicha.warpmail.net","subject":"Re: Error: Unable to append to logs/HEAD: Permission denied","fromName":"git_user101","fromEmail":"m.aqadjanimemar@student.ru.nl","sentAt":"2010-05-17T11:09:34Z","receivedAt":"2010-05-17T11:09:34Z","isPatch":false,"sender":{"key":"m.aqadjanimemar@student.ru.nl","avatar":null},"body":"\nafter configuring git and setting core.sharedRepository to true at server\nside, I do not get the first error any more. But the second one still\nappears on the screen after every push.\nerror: failed to push some refs to 'ssh://remote server'\n\n-- \nView this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5064574.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"141806","messageId":"4BF12B11.2090002@drmicha.warpmail.net","threadId":"23822","inReplyTo":"1274094574729-5064574.post@n2.nabble.com","subject":"Re: Error: Unable to append to logs/HEAD: Permission denied","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-05-17T11:40:01Z","receivedAt":"2010-05-17T11:40:01Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"git_user101 venit, vidit, dixit 17.05.2010 13:09:\n> \n> after configuring git and setting core.sharedRepository to true at server\n> side, I do not get the first error any more. But the second one still\n> appears on the screen after every push.\n> error: failed to push some refs to 'ssh://remote server'\n> \n\nThat means that in addition to the 1st part, you'll also have to follow\nthe 2nd part of my advice ;)\n\nMichael\n"},{"id":"141810","messageId":"1274098383422-5064764.post@n2.nabble.com","threadId":"23822","inReplyTo":"4BF12B11.2090002@drmicha.warpmail.net","subject":"Re: Error: Unable to append to logs/HEAD: Permission denied","fromName":"git_user101","fromEmail":"m.aqadjanimemar@student.ru.nl","sentAt":"2010-05-17T12:13:03Z","receivedAt":"2010-05-17T12:13:03Z","isPatch":false,"sender":{"key":"m.aqadjanimemar@student.ru.nl","avatar":null},"body":"\nThank you, Michael!\nI do not understand what you exactly mean with \"Also, you'll have to fix-up\npermissions manually at least\non logs/HEAD (and probably others)\"\nIf you mean that I have to change the permission of logs/HEAD to read, write\nfor the group, it is already done.\nAll files and directories in the repository are accessible for the group.\n-- \nView this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5064764.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"141811","messageId":"4BF135D8.70106@drmicha.warpmail.net","threadId":"23822","inReplyTo":"1274098383422-5064764.post@n2.nabble.com","subject":"Re: Error: Unable to append to logs/HEAD: Permission denied","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-05-17T12:26:00Z","receivedAt":"2010-05-17T12:26:00Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"git_user101 venit, vidit, dixit 17.05.2010 14:13:\n> \n> Thank you, Michael!\n> I do not understand what you exactly mean with \"Also, you'll have to fix-up\n> permissions manually at least\n> on logs/HEAD (and probably others)\"\n> If you mean that I have to change the permission of logs/HEAD to read, write\n> for the group,\n\nI meant all files & dirs under ${repo}.git should be owned by the group\nand +rw for the group. [\"All\" is actually overkill but sufficient.]\n\n> it is already done.\n> All files and directories in the repository are accessible for the group.\n\nHmm. If really all files and dirs (!) are group writeable I'm puzzled.\nWhat is the complete report and error message (besides failed to push)?\n\nA push can also fail due to non fast-forward, of course.\n\nMichael\n"},{"id":"141813","messageId":"1274100503553-5064900.post@n2.nabble.com","threadId":"23822","inReplyTo":"4BF135D8.70106@drmicha.warpmail.net","subject":"Re: Error: Unable to append to logs/HEAD: Permission denied","fromName":"git_user101","fromEmail":"m.aqadjanimemar@student.ru.nl","sentAt":"2010-05-17T12:48:23Z","receivedAt":"2010-05-17T12:48:23Z","isPatch":false,"sender":{"key":"m.aqadjanimemar@student.ru.nl","avatar":null},"body":"\nThe push is succeed but I get this error every time. This is de complete\nmessage:\n\nuser@desktop:~/Documents/LRSystems$ git push \nuser@server's password: \nCounting objects: 5, done.\nDelta compression using up to 8 threads.\nCompressing objects: 100% (3/3), done.\nWriting objects: 100% (3/3), 302 bytes, done.\nTotal 3 (delta 2), reused 0 (delta 0)\nTo ssh://user@server:port/repositories/LRSystems\n   1143c0..50b610  master -> master\nerror: failed to push some refs to\n'ssh://user@server:port/repositories/LRSystems'\nuser@desktop:~/Documents/LRSystems$\n\nAs you can see the push is done but I get the error.\n-- \nView this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5064900.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"141817","messageId":"4BF1463D.9040408@drmicha.warpmail.net","threadId":"23822","inReplyTo":"1274100503553-5064900.post@n2.nabble.com","subject":"Re: Error: Unable to append to logs/HEAD: Permission denied","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-05-17T13:35:57Z","receivedAt":"2010-05-17T13:35:57Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"git_user101 venit, vidit, dixit 17.05.2010 14:48:\n> \n> The push is succeed but I get this error every time. This is de complete\n> message:\n> \n> user@desktop:~/Documents/LRSystems$ git push \n> user@server's password: \n> Counting objects: 5, done.\n> Delta compression using up to 8 threads.\n> Compressing objects: 100% (3/3), done.\n> Writing objects: 100% (3/3), 302 bytes, done.\n> Total 3 (delta 2), reused 0 (delta 0)\n> To ssh://user@server:port/repositories/LRSystems\n>    1143c0..50b610  master -> master\n> error: failed to push some refs to\n> 'ssh://user@server:port/repositories/LRSystems'\n> user@desktop:~/Documents/LRSystems$\n> \n> As you can see the push is done but I get the error.\n\nIs the repo on the server side in a good state? I.e., if you do\n\ngit status\ngit fsck\ngit show-ref\n\nin the server side repo, is there something strange?\nAnother thing worth trying would be to\n\ngit clone --shared --mirror LRSystems LRSystems-new\n\nand check whether pushing to that freshly set-up repo works.\n\nMichael\n"},{"id":"141833","messageId":"1274122926805-5066526.post@n2.nabble.com","threadId":"23822","inReplyTo":"4BF1463D.9040408@drmicha.warpmail.net","subject":"Re: Error: Unable to append to logs/HEAD: Permission denied","fromName":"git_user101","fromEmail":"m.aqadjanimemar@student.ru.nl","sentAt":"2010-05-17T19:02:06Z","receivedAt":"2010-05-17T19:02:06Z","isPatch":false,"sender":{"key":"m.aqadjanimemar@student.ru.nl","avatar":null},"body":"\nThanks Michael!\nI solved the problem by making a new repository on the server and cloning to\nthe local computer.\n\n-- \nView this message in context: http://git.661346.n2.nabble.com/Error-Unable-to-append-to-logs-HEAD-Permission-denied-tp5063068p5066526.html\nSent from the git mailing list archive at Nabble.com.\n"}]}