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

ls: cannot access '.': Transport endpoint is not connected. After wakeup from sleep. #3344

Open
dibalavs opened this Issue Jul 1, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@dibalavs

dibalavs commented Jul 1, 2018

WIndows 10 pro. build 1803.

  1. launch bash

  2. mount network share drive:
    sudo mount -t drvfs x: /mnt/x

  3. cd /mnt/x
    try to call:
    ls -alF
    or
    find .

Everything is work
4) do windows sleep mode (suspend to RAM + suspend to SSD) (I close notebook cover)
5) wake from suspend to SSD
6) try to call:
ls -alF or find .

I got for ls:
ls: cannot access '.': Transport endpoint is not connected
ls: cannot access '..': Transport endpoint is not connected
total 0
d????????? ? ? ? ? ? ./
d????????? ? ? ? ? ? ../
drwxrwxrwx 1 root root 512 Dec 2 2017 2008/
drwxrwxrwx 1 root root 512 Dec 2 2017 2009/
drwxrwxrwx 1 root root 512 Dec 2 2017 2010/
drwxrwxrwx 1 root root 512 Dec 2 2017 2011/
drwxrwxrwx 1 root root 512 Dec 2 2017 2012/
drwxrwxrwx 1 root root 512 Jul 1 23:00 2013/

and got for find . :
find .
find: ‘.’: Transport endpoint is not connected

Directories different from '.' and '..' are working.

@ldemattos

This comment has been minimized.

Show comment
Hide comment
@ldemattos

ldemattos Aug 19, 2018

I confirm this behavior under WSL with Ubuntu 18.04 after suspending and resuming in a desktop. Something is broken after that, check an simple df:
$ df -h
df: /mnt/x: Input/output error
df: /mnt/w: Input/output error
Filesystem Size Used Avail Use% Mounted on
rootfs 210G 50G 160G 24% /
none 210G 50G 160G 24% /dev
none 210G 50G 160G 24% /run
none 210G 50G 160G 24% /run/lock
none 210G 50G 160G 24% /run/shm
none 210G 50G 160G 24% /run/user
C: 210G 50G 160G 24% /mnt/c

However, after manually remounting the drive share it works as expected:
$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 210G 50G 160G 24% /
none 210G 50G 160G 24% /dev
none 210G 50G 160G 24% /run
none 210G 50G 160G 24% /run/lock
none 210G 50G 160G 24% /run/shm
none 210G 50G 160G 24% /run/user
C: 210G 50G 160G 24% /mnt/c
X: 3.6T 2.3T 1.4T 63% /mnt/x
W: 3.6T 2.3T 1.4T 63% /mnt/w

ldemattos commented Aug 19, 2018

I confirm this behavior under WSL with Ubuntu 18.04 after suspending and resuming in a desktop. Something is broken after that, check an simple df:
$ df -h
df: /mnt/x: Input/output error
df: /mnt/w: Input/output error
Filesystem Size Used Avail Use% Mounted on
rootfs 210G 50G 160G 24% /
none 210G 50G 160G 24% /dev
none 210G 50G 160G 24% /run
none 210G 50G 160G 24% /run/lock
none 210G 50G 160G 24% /run/shm
none 210G 50G 160G 24% /run/user
C: 210G 50G 160G 24% /mnt/c

However, after manually remounting the drive share it works as expected:
$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 210G 50G 160G 24% /
none 210G 50G 160G 24% /dev
none 210G 50G 160G 24% /run
none 210G 50G 160G 24% /run/lock
none 210G 50G 160G 24% /run/shm
none 210G 50G 160G 24% /run/user
C: 210G 50G 160G 24% /mnt/c
X: 3.6T 2.3T 1.4T 63% /mnt/x
W: 3.6T 2.3T 1.4T 63% /mnt/w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment