{"thread":{"id":"30111","subject":"Git push to samba/cifs share fails","startedAt":"2012-03-30T16:23:21Z","lastAt":"2012-04-04T12:50:10Z","messageCount":4,"participants":["Emanuel Rietveld","Sebastian Schuberth"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"188175","messageId":"4F75DDF9.8060305@gmail.com","threadId":"30111","inReplyTo":null,"subject":"Git push to samba/cifs share fails","fromName":"Emanuel Rietveld","fromEmail":"codehotter@gmail.com","sentAt":"2012-03-30T16:23:21Z","receivedAt":"2012-03-30T16:23:21Z","isPatch":false,"sender":{"key":"codehotter@gmail.com","avatar":null},"body":"I get an error message when I try to push my git repository to a share \nmounted with mount.cifs.\n\n[emanuel@faseri01 frog]$ sudo mount.cifs //windows2003/emanuel /mnt/e -o \nuser=emanuel,uid=500\nPassword:\n[emanuel@faseri01 frog]$ mkdir /mnt/e/frog.git\n[emanuel@faseri01 frog]$ git init --bare /mnt/e/frog.git\nInitialized empty Git repository in /mnt/e/frog.git/\n[emanuel@faseri01 frog]$ git push /mnt/e/frog.git/ master\nCounting objects: 18, done.\nDelta compression using up to 2 threads.\nCompressing objects: 100% (16/16), done.\nfatal: error when closing sha1 file: Bad file descriptor\nerror: pack-objects died of signal 13\nerror: failed to push some refs to '/mnt/e/frog.git/'\n[emanuel@faseri01 frog]$ du -hs\n67M\t.\n[emanuel@faseri01 frog]$ uname -a\nLinux faseri01 3.3.0-4.fc16.x86_64 #1 SMP Tue Mar 20 18:05:40 UTC 2012 \nx86_64 x86_64 x86_64 GNU/Linux\n[emanuel@faseri01 frog]$ git --version\ngit version 1.7.7.6\n\nThis repository is 67M. I do not have any git hooks configured. Another, \nsmaller repository works without errors if I follow the same procedure. \nThe client is a fully up to date Fedora 16 machine. The server is a \nwindows 2003 server.\n\nIs this kind of usage possible with git? I just want to back up my \nrepository to the fileserver.\n\nThank you for your time.\n\nKind Regards,\n\nEmanuel Rietveld\n"},{"id":"188259","messageId":"4F77514C.10205@gmail.com","threadId":"30111","inReplyTo":"4F75DDF9.8060305@gmail.com","subject":"Re: Git push to samba/cifs share fails","fromName":"Sebastian Schuberth","fromEmail":"sschuberth@gmail.com","sentAt":"2012-03-31T18:47:40Z","receivedAt":"2012-03-31T18:47:40Z","isPatch":false,"sender":{"key":"sschuberth@gmail.com","avatar":"https://avatars.githubusercontent.com/u/349154?v=4"},"body":"On 30.03.2012 18:23, Emanuel Rietveld wrote:\n\n> I get an error message when I try to push my git repository to a share\n> mounted with mount.cifs.\n\nHmm, I wonder if this is related to msysgit's \"Cannot fetch to mapped \nnetwork drives (Samba)\" issue here:\n\nhttp://code.google.com/p/msysgit/issues/detail?id=130\n\nPlease note that the msysgit issue tracker is closed, so you should not \nplace any comments there. Post to the msysgit mailing list instead.\n\n-- \nSebastian Schuberth\n"},{"id":"188477","messageId":"4F7C07C4.4010601@gmail.com","threadId":"30111","inReplyTo":"4F77514C.10205@gmail.com","subject":"Re: Git push to samba/cifs share fails","fromName":"Emanuel Rietveld","fromEmail":"codehotter@gmail.com","sentAt":"2012-04-04T08:35:16Z","receivedAt":"2012-04-04T08:35:16Z","isPatch":false,"sender":{"key":"codehotter@gmail.com","avatar":null},"body":"On 03/31/2012 08:47 PM, Sebastian Schuberth wrote:\n> On 30.03.2012 18:23, Emanuel Rietveld wrote:\n>\n>> I get an error message when I try to push my git repository to a share\n>> mounted with mount.cifs.\n>\n> Hmm, I wonder if this is related to msysgit's \"Cannot fetch to mapped\n> network drives (Samba)\" issue here:\n>\n> http://code.google.com/p/msysgit/issues/detail?id=130\n>\n> Please note that the msysgit issue tracker is closed, so you should not\n> place any comments there. Post to the msysgit mailing list instead.\n>\n\nThank you for the link.\n\nI am not using msysgit. My client is Fedora Linux 16 using git version \n1.7.7.6. What excuse can I use to post to the msysgit mailing list for \nthis non-msys git problem?\n\nI tried a git fetch as mentioned in the ticket and it fails with the \nbelow error message (same as git clone/git push).\n\n[emanuel@f16machine /mnt/win2003share/frog.git]$ git fetch ~/proj/frog/\nremote: Counting objects: 18, done.\nremote: Compressing objects: 100% (16/16), done.\nfatal: error when closing sha1 file: Bad file descriptor\n\nI tried the suggestion in comment #14, which links to \nhttp://marc.info/?l=git&m=123797834905157&w=2 That is a very interesting \nemail thread, but the suggestions do not solve the problem.\n\nDoing git config core.fsyncobjectfiles = true on both source and \ndestination git repositories makes no difference. Same error.\n\nMy cifs server OS is not samba on Linux, but a windows 2003 server.\nA comment in the linked ticket claims that he only has problems on linux \nsamba shares, not on windows shares. The ticket says it was eventually \nfixed on the server side. Is windows 2003 broken? Do I need to upgrade \nto windows 2008 to use git over cifs shares?\n\nThanks for your time.\n\nKind Regards,\n\nEmanuel Rietveld\n"},{"id":"188486","messageId":"CAHGBnuNMg8mVPegrC6L38msXomhhGWGGBUFriL8JDmi0qXMrVg@mail.gmail.com","threadId":"30111","inReplyTo":"4F7C07C4.4010601@gmail.com","subject":"Re: Git push to samba/cifs share fails","fromName":"Sebastian Schuberth","fromEmail":"sschuberth@gmail.com","sentAt":"2012-04-04T12:50:10Z","receivedAt":"2012-04-04T12:50:10Z","isPatch":false,"sender":{"key":"sschuberth@gmail.com","avatar":"https://avatars.githubusercontent.com/u/349154?v=4"},"body":"On Wed, Apr 4, 2012 at 10:35, Emanuel Rietveld <codehotter@gmail.com> wrote:\n\n> I am not using msysgit. My client is Fedora Linux 16 using git version\n> 1.7.7.6. What excuse can I use to post to the msysgit mailing list for this\n> non-msys git problem?\n\nWell, I was thinking that if there's a problem with a Linux server and\nWindows client, a similar issue might exist when using a Windows\nserver and Linux client. You could just ask on the msysgit mailing\nlist whether someone has problems using Windows shares exported by a\nWindows Server 2003 installation.\n\n> samba shares, not on windows shares. The ticket says it was eventually fixed\n> on the server side. Is windows 2003 broken? Do I need to upgrade to windows\n> 2008 to use git over cifs shares?\n\nI have no idea, sorry, other that just trying to use Windows Server\n2008 (e.g. in a VM) to see if that solves the problem, and if so,\nupgrade your installation.\n\n-- \nSebastian Schuberth\n"}]}