git-for-windows / git

A fork of Git containing Windows-specific patches.
http://gitforwindows.org/
Other
8.3k stars 2.52k forks source link

Only on Windows 11 I get fsync error on '.git/objects/03/tmp_obj_Obk9gP': Bad file descriptor during update-index #4865

Closed bombjackit closed 3 months ago

bombjackit commented 6 months ago

Setup

$ git --version --build-options

git version 2.40.1.windows.1
cpu: x86_64
built from commit: ceee26d5cac05a3437097b43d034c4ad2e99d571
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon

I tried 2.44.1.windows.1 but the error is the same.

$ cmd.exe /c ver

Microsoft Windows [Versione 10.0.22621.2134]
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: Notepad++
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled

Details

I use git with TortoiseGit (latest 2.15.0 for windows 64 bit)

git.exe update-index

This is a stage of commit with TortoiseGit

No error

fsync error on '.git/objects/03/tmp_obj_Obk9gP': Bad file descriptor

My repository is in a mapped network folder, with Windows 10 22H2 64 bit (with same configurarion) I have no problem, with Windows 11 23H2 64 bit I have this problem.

I am the only that do operations on that directory.

If I wait few minutes (1 to 3) the error disappear and I am able to complete commit.

dscho commented 6 months ago

git version 2.40.1.windows.1

Does this also happen with the current version, i.e. with v2.44.0.windows.1?

bombjackit commented 6 months ago

Yes

dscho commented 6 months ago

What is the server setup of that mapped network share?

bombjackit commented 6 months ago

It's a SAN appliance not a server.

dscho commented 6 months ago

My repository is in a mapped network folder

What is the setup of that network folder, then.

dscho commented 3 months ago

Gentle ping?

bombjackit commented 3 months ago

It seems that the problem is caused by tortoise git : if I use Icon Overlays with Status cache to Shell Extended (enabling Network drives) all work fine.

dscho commented 3 months ago

It seems that the problem is caused by tortoise git : if I use Icon Overlays with Status cache to Shell Extended (enabling Network drives) all work fine.

Oh, so it is not a bug in Git and this here ticket can be closed?

bombjackit commented 3 months ago

Thanks, you can close this ticket.

dscho commented 3 months ago

Thanks, you can close this ticket.

:+1:

Next time, do feel free to close your bug report when it has been addressed or will be addressed elsewhere.