public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Permissionproblem on CIFS share.
@ 2015-04-27 13:25 Björn Kautler
  2015-04-27 14:08 ` Peter Rosin
  0 siblings, 1 reply; 3+ messages in thread
From: Björn Kautler @ 2015-04-27 13:25 UTC (permalink / raw)
  To: cygwin

Hi,

I have a permissionproblem on a CIFS share.

The line in fstab reads "//fileserver.company.de/git    /mnt/git
 cifs    binary,posix=0,user,noacl"

I then try to push some Git changes, but it does only work by
repeating the push multiple times.
Following you see the execution history, I did not change anything in
between, I just retried the push until it was finally through and all
changes are there in the end. My workaround is to do "watch -n 1 'git
push 2>&1'" and waiting for it to finish successfully, but this only
works for small repos. For bigger repos this needs ages.

Has anyone any idea what is the cause and how to resolve it?
As a sidenote, the same worked fine when the CIFS share was from a
NetApp Linux server.
But then it died and now it is a CIFS share on a Windows server.
Before it worked fine, now I see this strange behaviour.

I hope someone has a good idea.
And here the execution transcript:

bkautler@lt045 /d/Sourcecode/foo [master|smu] $ git push
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 233 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 0 (delta 0)
remote: error: unable to set permission to
'objects/65/b67dadce10ca93c31238748d2181cc888284da'
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To file:///mnt/git/bkautler/foo
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'file:///mnt/git/bkautler/foo'
bkautler@lt045 /d/Sourcecode/foo [master|smu] $ git push
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 233 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 0 (delta 0)
remote: error: unable to set permission to
'objects/65/b67dadce10ca93c31238748d2181cc888284da'
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To file:///mnt/git/bkautler/foo
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'file:///mnt/git/bkautler/foo'
bkautler@lt045 /d/Sourcecode/foo [master|smu] $ git push
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 233 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 0 (delta 0)
remote: error: unable to set permission to
'objects/65/b67dadce10ca93c31238748d2181cc888284da'
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To file:///mnt/git/bkautler/foo
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'file:///mnt/git/bkautler/foo'
bkautler@lt045 /d/Sourcecode/foo [master|smu] $ git push
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 233 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 0 (delta 0)
remote: error: unable to set permission to
'objects/65/b67dadce10ca93c31238748d2181cc888284da'
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To file:///mnt/git/bkautler/foo
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'file:///mnt/git/bkautler/foo'
bkautler@lt045 /d/Sourcecode/foo [master|smu] $ git push
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 233 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 0 (delta 0)
remote: error: unable to set permission to
'objects/29/6e56023cdc034d2735fee8c0d85a659d1b07f4'
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To file:///mnt/git/bkautler/foo
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'file:///mnt/git/bkautler/foo'
bkautler@lt045 /d/Sourcecode/foo [master|smu] $ git push
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 233 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 0 (delta 0)
remote: error: unable to set permission to
'objects/29/6e56023cdc034d2735fee8c0d85a659d1b07f4'
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To file:///mnt/git/bkautler/foo
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'file:///mnt/git/bkautler/foo'
bkautler@lt045 /d/Sourcecode/foo [master|smu] $ git push
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 233 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 0 (delta 0)
remote: error: unable to set permission to
'objects/29/6e56023cdc034d2735fee8c0d85a659d1b07f4'
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To file:///mnt/git/bkautler/foo
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'file:///mnt/git/bkautler/foo'
bkautler@lt045 /d/Sourcecode/foo [master|smu] $ git push
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 233 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 0 (delta 0)
remote: error: unable to set permission to
'objects/29/6e56023cdc034d2735fee8c0d85a659d1b07f4'
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To file:///mnt/git/bkautler/foo
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'file:///mnt/git/bkautler/foo'
bkautler@lt045 /d/Sourcecode/foo [master|smu] $ git push
Counting objects: 2, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 233 bytes | 0 bytes/s, done.
Total 2 (delta 0), reused 0 (delta 0)
To file:///mnt/git/bkautler/foo
   1c64e62..65b67da  master -> master
bkautler@lt045 /d/Sourcecode/foo [master|smu] $ git push
Everything up-to-date


Regards
Björn

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Permissionproblem on CIFS share.
  2015-04-27 13:25 Permissionproblem on CIFS share Björn Kautler
@ 2015-04-27 14:08 ` Peter Rosin
  2015-04-27 14:39   ` Björn Kautler
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Rosin @ 2015-04-27 14:08 UTC (permalink / raw)
  To: cygwin

On 2015-04-27 15:25, Björn Kautler wrote:
> Hi,
> 
> I have a permissionproblem on a CIFS share.
> 
> The line in fstab reads "//fileserver.company.de/git    /mnt/git
>  cifs    binary,posix=0,user,noacl"
> 
> I then try to push some Git changes, but it does only work by
> repeating the push multiple times.
> Following you see the execution history, I did not change anything in
> between, I just retried the push until it was finally through and all
> changes are there in the end. My workaround is to do "watch -n 1 'git
> push 2>&1'" and waiting for it to finish successfully, but this only
> works for small repos. For bigger repos this needs ages.
> 
> Has anyone any idea what is the cause and how to resolve it?
> As a sidenote, the same worked fine when the CIFS share was from a
> NetApp Linux server.
> But then it died and now it is a CIFS share on a Windows server.
> Before it worked fine, now I see this strange behaviour.
> 
> I hope someone has a good idea.

Please try:
git config --global core.createobject rename

Cheers,
Peter


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Permissionproblem on CIFS share.
  2015-04-27 14:08 ` Peter Rosin
@ 2015-04-27 14:39   ` Björn Kautler
  0 siblings, 0 replies; 3+ messages in thread
From: Björn Kautler @ 2015-04-27 14:39 UTC (permalink / raw)
  To: cygwin

Ah, nice, that works. Many thanks Peter.

2015-04-27 16:08 GMT+02:00 Peter Rosin <peda@lysator.liu.se>:
> On 2015-04-27 15:25, Björn Kautler wrote:
>> Hi,
>>
>> I have a permissionproblem on a CIFS share.
>>
>> The line in fstab reads "//fileserver.company.de/git    /mnt/git
>>  cifs    binary,posix=0,user,noacl"
>>
>> I then try to push some Git changes, but it does only work by
>> repeating the push multiple times.
>> Following you see the execution history, I did not change anything in
>> between, I just retried the push until it was finally through and all
>> changes are there in the end. My workaround is to do "watch -n 1 'git
>> push 2>&1'" and waiting for it to finish successfully, but this only
>> works for small repos. For bigger repos this needs ages.
>>
>> Has anyone any idea what is the cause and how to resolve it?
>> As a sidenote, the same worked fine when the CIFS share was from a
>> NetApp Linux server.
>> But then it died and now it is a CIFS share on a Windows server.
>> Before it worked fine, now I see this strange behaviour.
>>
>> I hope someone has a good idea.
>
> Please try:
> git config --global core.createobject rename
>
> Cheers,
> Peter
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2015-04-27 14:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27 13:25 Permissionproblem on CIFS share Björn Kautler
2015-04-27 14:08 ` Peter Rosin
2015-04-27 14:39   ` Björn Kautler

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 read-only IMAP folder(s) and NNTP newsgroup(s).