Skip to content
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

[WSL 1] Symlinks cause IO error on ntfs drive #6276

Closed
2 tasks done
greyphoenix opened this issue Apr 9, 2020 · 11 comments
Closed
2 tasks done

[WSL 1] Symlinks cause IO error on ntfs drive #6276

greyphoenix opened this issue Apr 9, 2020 · 11 comments

Comments

@greyphoenix
Copy link

greyphoenix commented Apr 9, 2020

Short summary of issue
Creating a symlink on ntfs volume, and trying to access it within the container is causing IO error.

Repro steps below (Using ubuntu 18.04 bash on windows 10)

[satya@DESKTOP-DEG2QFE] /mnt/d/test
$ touch abcd

[satya@DESKTOP-DEG2QFE] /mnt/d/test
$ ln -s abcd abcdsym

[satya@DESKTOP-DEG2QFE] /mnt/d/test
$ ls -l
total 0
-rwxrwxrwx 1 satya satya 0 Apr  8 21:18 abcd
lrwxrwxrwx 1 satya satya 4 Apr  8 21:18 abcdsym -> abcd

[satya@DESKTOP-DEG2QFE] /mnt/d/test
$ docker run -v "D:\test:/test" -it ubuntu:18.04 bash
root@5860ce26111f:/# ls /test
ls: cannot read symbolic link '/test/abcdsym': Input/output error
abcd  abcdsym
root@5860ce26111f:/# ls /test -l
**ls: cannot read symbolic link '/test/abcdsym': Input/output error**
total 0
-rwxr-xr-x 1 root root 0 Apr  9 04:18 abcd
lrwxr-xr-x 1 root root 0 Apr  9 04:18 abcdsym

root@583981b44408:/# mount | grep test
grpcfuse on /test type fuse.grpcfuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,max_read=1048576)

More details:

  • Windows 10, pro 1903, 18362.720
  • Docker 2.2.0.5
  • D: is NTFS volume
  • Using windows wsl1 bash
[satya@DESKTOP-DEG2QFE] /mnt/d/apstra
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

I noticed issue: #5582
I tried it on bleeding edge 2.2.3.0 also. similarly bad result.. The symlink is not even found..

[satya@DESKTOP-DEG2QFE] /mnt/d/test
$ docker run -v "D:\test:/test" -it ubuntu:18.04 bash
root@27d08579967d:/# ls -l /test
total 0
-rwxr-xr-x 1 root root 0 Apr  9 04:18 abcd
root@27d08579967d:/#
root@27d08579967d:/# exit

[satya@DESKTOP-DEG2QFE] /mnt/d/test
$ docker --version
Docker version 19.03.6, build 369ce74a3c

I am able to consistently reproduce it..

This used to be working with
Docker Community Edition 18.06.1-ce-win73 2018-08-29

  • I have tried with the latest version of my channel (Stable or Edge)
    Stable - 2.2.05 & also edge 2.2.3.0
  • I have uploaded Diagnostics
  • Diagnostics ID: CE8D6A22-A19E-433B-9828-E0E67E3339BC/20200409044215
@greyphoenix greyphoenix changed the title Symlinks cause IO error on ntfs platform Symlinks cause IO error on ntfs drive Apr 9, 2020
@stephen-turner stephen-turner changed the title Symlinks cause IO error on ntfs drive [WSL 1] Symlinks cause IO error on ntfs drive Apr 9, 2020
@greyphoenix
Copy link
Author

any update on this?

@mat007
Copy link
Member

mat007 commented Jun 2, 2020

We’ve fixed some file sharing bugs recently, have you tried with the latest Stable (2.3.0.3)?

@docker-robott
Copy link
Collaborator

Issues go stale after 90 days of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@G-Rath
Copy link

G-Rath commented Sep 17, 2020

@mat007 I've just upgraded to 2.3.0.5 from 2.1.x.x, and for me docker isn't even showing my symlinks:

image

I'm using WSLv1, and would love to get this resolved - I also can't remove folders with symlinks, which causes commands like npm install to fail at times because it can't remove the .bin folder.

I've been stuck on 2.1.x.x due to a number of problems in the new file sharing system that I've been pleased to see get fixed - this looks like the last blocker so am very keen to see it resolved.

(I'm hoping this is causing the problems in #7503 as well).

Let me know if you'd like me to make a new ticket :)

@G-Rath
Copy link

G-Rath commented Sep 17, 2020

I've just downgraded to 2.1.0.5, which does result in the symlinks showing up but with the same problem described in the original issue:

image

So @mat007 I'd say no 2.3.0.3 does not fix this :)

I am at least able to remove these symlinks in 2.1.0.5, which means it's not as blocking.

@G-Rath
Copy link

G-Rath commented Oct 1, 2020

/lifecycle frozen

@G-Rath
Copy link

G-Rath commented Oct 1, 2020

/remove-lifecycle stale

@stephen-turner
Copy link
Contributor

Is the WSL 1 only? If so, it's a "Won't Fix". I know some people blogged about how to make WSL 1 work, but we have never supported it, and indeed advised against using it.

@G-Rath
Copy link

G-Rath commented Nov 26, 2020

@stephen-turner Yes this is with WSLv1 - I'll admit having it labeled as a "Won't Fix" is a little sad given that this was working enough in 2.1.0.5 to be usable, and that this is the first I've heard of WSLv1 not being supported and advised against.

I know of a number of issues reported here for problems experienced on WSLv1 that were fixed - there was never any mention of it not being supported.

As I've said this is the only blocker I know left for WSLv1 - is there any chance of getting some eyes on it to see if it could be an easy fix? I can't switch to WSLv2 until WSLG ships, which won't be for another year at least.

@stephen-turner
Copy link
Contributor

Sorry, I'd love to say yes, but realistically we do not have capacity to look at any WSL 1 bugs.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

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.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Dec 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants