-
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
fatal: update_ref failed for ref 'HEAD': cannot update the ref 'HEAD': unable to append to '..../.git/logs/HEAD': Invalid argument #2753
Comments
Yes, that does indeed look quite similar.
2.19.0 introduced Could you try naatje80's test code from that issue?
I assume it'll produce some third error (neither |
Test code returns this: |
We're talking about
So Are you sure you get the same error message? |
Yes, that's the same error message. For context, this is not critical. We are migrating off our EqualLogic storage in the next few months, and by downgrading back to a prior git version (2.18) or working off local drives we can continue working. But I can continue to help with diagnosis if you want to pursue it. |
Yes, that would be great. You'd probably need to look into debugging git or, if we assume the issue is in diff --git a/compat/mingw.c b/compat/mingw.c
index 431ade6e7b..d5783f25dd 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -684,6 +684,8 @@ static int mingw_open_append(wchar_t const *wfilename, int oflags, ...)
*/
if (err == ERROR_INVALID_PARAMETER)
err = ERROR_PATH_NOT_FOUND;
+ else if (err != ERROR_PATH_NOT_FOUND)
+ fprintf(stderr,"ERROR: %d\n", err);
errno = err_win_to_posix(err);
return -1;
--
2.27.0.windows.1 |
Make that an |
I guess we can close this now due to lack of interest? |
Yes that’s fine – I haven’t had time to successfully compile git in order to debug, and for my purposes I have a workaround. Thanks for checking in.
From: Johannes Schindelin <notifications@github.com>
Sent: Tuesday, August 25, 2020 5:41 AM
To: git-for-windows/git <git@noreply.github.com>
Cc: David Levine <DLevine@dclab.com>; Manual <manual@noreply.github.com>
Subject: Re: [git-for-windows/git] fatal: update_ref failed for ref 'HEAD': cannot update the ref 'HEAD': unable to append to '..../.git/logs/HEAD': Invalid argument (#2753)
I guess we can close this now due to lack of interest?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#2753 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQLB326W3YDJV4G3DYYBEWDSCOBMRANCNFSM4PCQJO4A>.
|
I also meet this issue when using Hyper-V virtual environment. Using old version 2.18 is a workaround. Is there any plan to fix this issue? |
@SuperWangKai You tell me... As for myself, I am not planning on it, nor am I aware of anybody working on this. So: are you interested enough in seeing this bug fixed to actually go and do the work? I can help, but I cannot do it for you. |
Hi @dscho , Thanks for the response. The issue happens when I clone/pull/commit to a UNC (Universal naming convention) path. In my case, UNC is used for representing host drivers and VM accesses the drivers by the UNC paths. Even I'm afraid there is a big gap of knowledge and skills between a normal user and the project developers. However, if no one is going to fix this, I would have a try later. |
@SuperWangKai it would go a long way if you provided a short shell script reproducing this (e.g. |
Hi, guys, I've patched to make it work temporarily, but no fully tested right now. Anyone wants to have a try or add tests for it? |
And gals. Let's not exclude half of humankind in one swift brush of the hand.
@sunzhuoshi how about tacking a test onto https://github.com/git/git/blob/e9e5ba39a78c8f5057262d49e261b42a8660d5b9/t/t5580-unc-paths.sh#L21-L37, which already uses the "administrative share" If you need help, it's always a good idea to open a draft PR. |
Signed-off-by: Zhuoshi Sun <sunzhuoshi@gmail.com>
Signed-off-by: sunzhuoshi <sunzhuoshi@gmail.com>
Many people think that, usually male people 😁 |
Fix append failure issue under remote directories #2753
Fix append failure issue under remote directories #2753
Fix append failure issue under remote directories #2753
Fix append failure issue under remote directories #2753
Fix append failure issue under remote directories #2753
Fix append failure issue under remote directories #2753
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in git-for-windows#2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories git-for-windows#2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in #2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix append failure issue under remote directories #2753 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Our network filesystem just switched over from attached storage to CIFS using an equallogic array.
Using most current release 2.27.1 64-bit. Once we switched filesystems, started getting an error with commit and clone.
W:....>git clone https://me@bitbucket.org/myproject/sample.git
Cloning into 'sample'...
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 16 (delta 1), reused 0 (delta 0)
Unpacking objects: 100% (16/16), done.
error: unable to append to 'W:..../sample/.git/logs/refs/remotes/origin/HEAD': Invalid argument
fatal: update_ref failed for ref 'HEAD': cannot update the ref 'HEAD': unable to append to 'W:.../sample/.git/logs/HEAD': Invalid argument
Same problem with commit.
I can successfully clone/commit from either my local PC c: drive and also from an attached storage network drive.
A colleague is still successfully using 2.17.1.windows.2. I started backtracking - the problem occurs in 2.19.1, but seems to work ok with 2.18.0, so maybe something happened in between those two?
I was looking at this previous issue #1345, and it seems similar, but I don't know the history of this chunk of code and if something changed between 2.18.0 and 2.19.1
Let me know what other info you need.
Setup
Windows 10 64-bit
The text was updated successfully, but these errors were encountered: