-
Notifications
You must be signed in to change notification settings - Fork 852
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
git: "fatal: fsync error Permission denied" #3556
Comments
I noticed this only affects |
Having the same error in Version 1809 build 18242.1000 and mounted drives to "/" instead
Mounted as such:
Also I'm using this wsl.conf (if helps)
|
We have identified the issue and @SvenGroot is working on a fix. Thanks for filing the issue. |
@SvenGroot @benhillis any workaround for this perhaps that you can share? 🙏 |
@dannyk81 - Working outside of DrvFs would be a workaround, or reverting to an earlier Insider build (or 1803 / 1809). |
Thanks @benhillis I've moved this repo to the lxfs and it works fine, looking forward for the fix 🙏 |
As I need to access the repo from windows my temporary solution is to use git on windows to clone the repo, seems like git on wsl still works for most other things |
I've gone back to working in a HyperV VM :-( |
Ugh, painful bug. I hope the fix goes out quickly. |
+1 |
oh man this is sad. |
I've only seen this problem when cloning. Pulling and pushing work just fine. So I've been cloning outside /mnt then move the whole thing over. In rare cases I have had to run git clone from Windows. Again pulling and pushing work just fine for me. |
Confirming the issue on rs_prerelease (18252.1000) - I seem to experience it when cloning down and when using git pull. I've been doing as @khuongduybui and just cloning into a directory in the linux filesystem and then moving it into my symlinked /mnt directory (I have /srv/sites symlinked to a Sites/ directory in my Windows user folder) and this works just fine. One extra step, but it means I can stick to my setup! |
|
I've attempted to clone the repository in the linux FS and move it onto /mnt, but git thinks all of the files have been modified. Even after git reset --hard and git clean -fx and git stash
I can't even chmod files anymore (probably couldn't before actually, as this is NTFS) |
Line endings are a pain. Had the same issue. |
$ git pull |
Anyone figured out a workaround? Or ETA on fix? |
@Habitats workaround is described here: #3556 (comment) Only solution now is to not use git over the DrvFS mount (/mnt) |
The workaround is to alias |
@mqudsi I assume this is a joke, right? |
No, it’s not. It won’t work outside of /mnt/ but it works around the problem otherwise. |
@mqudsi So basically running windows git on WSL? I've removed all the windows binaries from my WSL PATH, so no option for me. But, yeah, why not? On the other hand: this issue will hopefully be resolved soon... |
@dannyk81 - Looks like the fix for this issue just missed the 18262 build. I suspect the fix will be in next week's build. |
Thanks for the update!
…On Wed, Oct 17, 2018, 17:34 Ben Hillis, ***@***.***> wrote:
@dannyk81 <https://github.com/dannyk81> - Looks like the fix for this
issue just missed the 18262 build. I suspect the fix will be in next week's
build.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3556 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AXJk7B-3HIU_4opI5ixkBX0qNUcgNugOks5ul6JagaJpZM4Wx508>
.
|
+1 for this. Please fix, this is a massive pain in the ass. If it helps anyone, the only solution I've found is to restart my machine, then it works... |
Fixed in 18267. |
Thanks @benhillis, just upgraded to 18267 and issue is gone 👏 |
I'm still getting errors in 18267 when cloning a repo in a /mnt directory so if other members can confirm this issue is gone in 18267 then #3607 is not a duplicate of this one and should probably be reopened
|
still got problems in 18267 (ubuntu 16.04) non@10PC:/mnt/f$ mkdir los16 $ cat /proc/version Tried 18.04, the same problems |
Possibly a noob question, but how do I update to 18267; Do I need to be on the Windows Insider Program, or is there some other way to do this manually? I'm currently on Windows 10 version 1803. |
Yes you do need to be on Insider Fast ring. |
@non1979 you are not supposed to use mnt. download to folders within the subsystem https://forum.xda-developers.com/android/software-hacking/guide-how-to-build-lineageos-15-1-t3750175 |
for me i found out why it would still error out in later versions of Insider |
I can confirm it's the same for me. I just formatted a drive in drvfs as NTFS and it works but it's broken for other filesystems that it used to work on. |
I've gotten into the same problem, finally found that (in my case) it's the Windows Defender problem. A feature rather than a bug. I've enabled Controlled folder access inside Windows Defender allowing only a whitelist of program to modify the content of My Documents. None of the programs inside WSL is put into my list. If a normal Windows program trying to modify the protected folder, Windows Defender will show a notification that the file operation is blocked. However, if I modify the protected file inside WSL it will just silently failed! After I turning off ransomware protection temporarily, the file operation works again. So, the same for you all, the fsync error maybe an antivirus problem. Try to disable it and try again. |
I've got the same errors and turns out it's Vscode in WSL that causes this issues. If you close Vscode - then permissions are back online =) EDIT: This is the issue described in Vscode and it has a workaround: https://code.visualstudio.com/docs/remote/wsl#_i-see-eaccess-permission-denied-error-trying-to-rename-a-folder-in-the-open-workspace |
I am running into this error on 18363:
Unsure if related but I cannot get the metadata option to work with my network shares. It just seems to swallow the option (does not show up in |
Came here to also state I see this in 1909 (18363.815)
This is on a drive mounted to a network share with full r/w. All files in the share list as owned by root:root and have full 777 permissions by default. |
running into same issue on 2004 (19041.572) |
@therealkenc i'm running the latest windows, and it doesn't look like this has been fixed |
This does not seem to me to be corrected either, does there exist a workaround ? |
This one went fixininsiderbuilds Oct 2018, 18267 To the extent interested parties would like to open a new issue following the template, please ensure you've got (1) metadata enabled, (2) that the submission has a CLI reproduction step sequence that will execute when pasted into a terminal, (3) that the current working directory of any relative paths is indicated in the steps, and, (4) that the submission includes a link to a gist of a threaded Noting that |
Ok thanks 🤗 |
I arrived on this page after doing an Internet search because I was experiencing
The solution was to to to the Windows side add I'm posting this here in case it helps anyone else who runs into a similar problem. |
"repo sync" command failed with permission denied message. I opened the Ubuntu as an administrator and it works fine now. |
Your Windows build number: Microsoft Windows [Version 10.0.18234.1000]
What you're doing and what's happening:
atlefren@atlsve-M4800:/mnt/d/code$ git --version
git version 2.7.4
atlefren@atlsve-M4800:/mnt/d/code$ git clone [email protected]:v3/path/to/repo
Cloning into 'repo'...
path/to/repo is of course edited
...
remote: Found 319 objects to send. (11 ms)
Receiving objects: 100% (319/319), 186.51 KiB | 0 bytes/s, done.
Resolving deltas: 100% (132/132), done.
fatal: fsync error on '/mnt/d/code/repo/.git/objects/pack/tmp_idx_QfTqP5': Permission denied
fatal: index-pack failed
atlefren@atlsve-M4800:/mnt/d/code$
The permission denied part and the fact that repo is not cloned.
I get the same error when doing a git pull on an existing repo. However, this does not happen with all repos.
I recently edited the /etc/wsl.conf file to contain this:
the windows drives are mapped like so:
Also: git clone of the same repo works fine /home/atlefren and works fine on Windows using git on windows. Guess it's related to the mounting in some way. Problem appeared after updating Windows and adding the [interop]-part to /etc/wsl.conf
The text was updated successfully, but these errors were encountered: