-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fsmonitor--daemon failed to start - using git on a network path #3335
Comments
Hmm. The documentation of the The Since you mention @JohannesBe to unblock you, I would suggest to call @jeffhostetler the bigger question here is: how can we deal with this situation in the best manner? Should we maybe modify the repo config upon first start, to avoid trying again? If so, there is the very real problem that we might still want to enable the FSMonitor under certain circumstances, e.g. when running inside a VM and having "local" access. We could of course introduce a new config variable (e.g. something like |
I'm going to investigate adding a call to The advantage with this approach is that we can test the drive type in client (like git status) calls and not waste time |
I am slightly concerned that that call won't tell us whether the FSMonitor can work in this location or not. From what I understand, regular Windows file shares do support the |
Thank you already for your efforts and quick response. Temporarily disabling the fsmonitor worked as a workaround. Appreciate it that you're looking into how to make the UX better upon this failure 🙂 |
Fun fact: when you call ReadDirectoryChangesW() with a very large buffer (in overlapped I/O mode) on a network share, it does not throw the error described in my code comment -- then. It waits until you call GetOverlappedResult() to give you the buffer too large error. I guess that makes sense (read: no, not really). Moving the buffer resize logic fixes the problem. I was testing a remote repo from a shared folder on a windows file server and I was getting an GLE 87 and it now works. This should be in the next release. However, the original problem described a virtualbox pass thru and I doubt that my fix will address that, so more digging is required here. |
i agree with you ... Jeffhostetler |
@JohannesBe could you verify that the workaround in v2.33.0-rc1 works? |
I added code in v2.33.0-rc1 that disables FSMonitor on network shares. We may want to relax this in the future, but for now during the initial rollout, let's restrict FSMonitor to working on a local working directory. (I'm trying to avoid the problem where the remote OS does not support file/directory change notifications. This could cause the daemon to start, fail, and shutdown. And then every |
Could you? -rc2 is out now... https://github.com/git-for-windows/git/releases/tag/v2.33.0-rc2.windows.1 |
Hi,
I am currently on a holiday. I will follow this up shortly after.
Kind regards,
Johannes
…________________________________
From: Johannes Schindelin ***@***.***>
Sent: Sunday, August 8, 2021 8:37:09 PM
To: git-for-windows/git ***@***.***>
Cc: JohannesBe ***@***.***>; Mention ***@***.***>
Subject: Re: [git-for-windows/git] fsmonitor--daemon failed to start - using git on a network path (#3335)
@JohannesBe<https://github.com/JohannesBe> could you verify that the workaround in v2.33.0-rc1 works?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3335 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFCRAD2OS3PKECMUB5JYH73T33FFLANCNFSM5A72MAFQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
I confirmed that using version
But a
This tells me that indeed the file system monitor seems disabled and repository scanning is used as a fallback. I think this issue thus can more or less be closed, although it might be worth it to create a follow-up issue to re-enable fsmonitor for network drives that support it. If you want, I can create that subsequent issue, but I will probably not be able to follow it up. |
By the way, thanks for your fast co-operation and responses, I really appreciate that :) |
I have read this issue with a similar problem, but I think I am receiving the same error, but for a different reason.
My git repository is located on a network drive (in fact a passthrough volume in virtualbox, i.e. host windows OS > child windows OS). I am running the git commands in the child VM.
I have created a
perf.log
file as described in the other issue, and I think the relevant part of it is the following:For completeness, I have attached the rest of the file as well.
perf.log
The text was updated successfully, but these errors were encountered: