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
NTFS hidden files are not visible when shared through gRPC Fuse #5808
Comments
I've just tested with Docker Stable 2.1.0.5 (40693) which was pre-gRPC FUSE and I confirm that hidden files were indeed showing up. |
Thanks for the report, @dbolkensteyn. @djs55, is there a simple flag we can toggle in the FUSE library that would just make this work? |
We're currently filtering out files with |
Sorry for the delay getting back to you. I've got a development build suitable for testing: https://download-stage.docker.com/win/edge/43083/Docker%20Desktop%20Installer.exe It reports as version 2.2.2.0 (43083). It has prototype fixes for
If you have a chance to test the build, let me know how it goes! If something goes wrong, please describe what happened in as much detail as you can and please include diagnostics. |
Thank you @djs55 , I have tested the build and I can confirm that this issue is indeed solved. I still am getting another issue though for which I'll file a separate issue with a diagnostics, but it'll take a bit more time to come up with a minimal reproducer. This is
Thanks a lot, I'll close this issue as it is resolved! |
@dbolkensteyn thanks for letting me know about the hidden files issue. Regarding the Thanks again for your help! |
This fix is now released in 2.2.0.4. |
Hi @stephen-turner, i am having the same issue than @dbolkensteyn cloning a git repository with libgit2 using 2.2.0.5 release. Last release working properly is 2.1.0.5. Same error: LibGit2Sharp.LibGit2SharpException: 'failed to truncate pack file '/app/repository/.git/objects/pack/pack_git2_gMlADA': Operation not permitted' |
@djs55 I know the "failed to truncate" was not the primary issue in this ticket, but where did the fix reach? I'm guessing it's on Edge 2.2.3.0 but not Stable 2.2.0.5 so that @eugenioestrada's observation is expected? |
@stephen-turner @eugenioestrada yes I believe that's correct -- the fix for the read-only file issue (which caused |
@djs55 @stephen-turner I've tested the 2.2.3.0 edge release, still failing when cloning a repo but different error. "LibGit2Sharp.LibGit2SharpException: 'failed to mmap. Could not write data: Permission denied'" |
@eugenioestrada could you reproduce the error and then upload a diagnostics report? The diagnostics option is in the whale menu in the system tray -> Troubleshoot -> Diagnostics. Once it uploads it provides an ID which you can quote here -- this will allow me to look at your logs. Thanks in advance! |
hi @djs55, i've published a repo with an example of the issue: https://github.com/eugenioestrada/docker-for-win-issue-example I've also uploaded the diagnostics data with ID: 41FE822B-5B64-4E26-BE56-FCE8C8E9F548/20200408143336 Hope it can help you to solve this :) |
hi @djs55 @stephen-turner, was it useful to reproduce the issue? |
hello @djs55 @stephen-turner issue is already happening in 2.3 release using WSL2 |
@eugenioestrada sorry for the delay getting back to you and thanks for the repro example. On latest edge 2.3.0.0 (44472) I get the error:
which corresponds to the low-level trace
where |
@eugenioestrada I've made a prototype fix and have a test build: https://download-stage.docker.com/win/edge/44749/Docker%20Desktop%20Installer.exe For me the repro example runs to completion and prints "Hello World". If you have time, could you let me know if it fixes the problem for you? If not, could you upload a fresh set of diagnostics. Thanks again! |
Hi @djs55, with the edge release 44749 is working in the demo project and also in my real life project. So it's fixed ;) I've also tested the new edge release 44875 and it's fixed too there. Thanks you!!! |
@eugenioestrada I'm glad to hear the problem is fixed! Thanks for your help tracking this down -- the repro case was invaluable. |
@djs55 sorry, i think i made a mistake testing the issue. I tested it locally instead of running on Docker :( 44749 and 44875 still failing on my computer in demo project, the real life project fails in another point of the code but it could be because a change of code. Running the repro case I've still getting the exception:
Sorry for my previous message!!! |
hi @djs55, when docker is running using Hyper-V doesn't fail but when you use the WSL2 backend it's still failing with the error "failed to mmap. Could not write data: Permission denied". |
@eugenioestrada I assume the error is coming from the WSL 2 built-in 9P filesystem which can be used to access files from the Windows host. To make the best use of WSL 2 I recommend using the "Linux workspaces" feature described here. The trick is to
Let me know if that works for you! |
Hi @djs55, the Linux workspaces can be used with VS Code but not with Visual Studio 2019 because it can't load the solution:
\wsl$ host can't be mapped to a letter... I don't know if the new Tux option in Windows explorer could solve this. I will give it a try. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
I could reproduce with both the stable and edge channels:
Expected behavior
All shared files, regardless of whether or not they have the
hidden
NTFS attribute, should show up in the file listing produced byls -al
from a container on a shared folder.Actual behavior
Hidden files are omitted from
ls -al
's listing.Information
Because of the new caching mechanism that comes with gRPC Fuse, simply removing the
hidden
attribute from the file will not make it appear inls -al
's output. One way to workaround that is to create and delete a random file in the same folder, which seems to invalidate the cache.The text was updated successfully, but these errors were encountered: