Can't unmount a directory. Transport endpoint is not connected
by Single Sig from LinuxQuestions.org on (#6PNBK)
Hi, I have some problem with unmounting a remote directory. Currently I have two servers, one is called "booking" and another one is "admin". I need to mount a dirctory from "booking" to "admin" and I know an sshfs command to do it. The problem is that after restarting "admin" the directory was not unmounted and is still present. However, it's not accessible and generally I can't do anything with it:
Code:ls -lah
ls: cannot access 'app': Transport endpoint is not connected
total 212K
drwxrwxrwx 7 root root 4.0K Jul 31 14:13 .
drwxr-xr-x 15 root root 4.0K Dec 11 2023 ..
d????????? ? ? ? ? ? app
drwxrwxrwx 1 root root 4.0K Dec 14 2023 app2
drwxrwxrwx 2 root root 188K Aug 1 09:22 debugbar
drwxrwxrwx 6 root root 4.0K Jun 1 2023 framework
drwxrwxrwx 2 root root 4.0K Jun 1 2023 logsThe directory is called "app" and it seems that it has some broken access rights. When I do
Code:umount -lf appI get no output and nothing changes. "app" is still there. Also I've tried
Code:fusermount -uz appand the result is the same. No output and "app" is there. When I try to delete it
Code:rm -rf app
rm: cannot remove 'app': Is a directoryIf I check the contents of this directory
Code:$ ls -lah app
ls: cannot access 'app': Transport endpoint is not connected
$ cd app
-bash: cd: app: Transport endpoint is not connectedthe output is the same. Does anyone have any ideas? :(
Code:ls -lah
ls: cannot access 'app': Transport endpoint is not connected
total 212K
drwxrwxrwx 7 root root 4.0K Jul 31 14:13 .
drwxr-xr-x 15 root root 4.0K Dec 11 2023 ..
d????????? ? ? ? ? ? app
drwxrwxrwx 1 root root 4.0K Dec 14 2023 app2
drwxrwxrwx 2 root root 188K Aug 1 09:22 debugbar
drwxrwxrwx 6 root root 4.0K Jun 1 2023 framework
drwxrwxrwx 2 root root 4.0K Jun 1 2023 logsThe directory is called "app" and it seems that it has some broken access rights. When I do
Code:umount -lf appI get no output and nothing changes. "app" is still there. Also I've tried
Code:fusermount -uz appand the result is the same. No output and "app" is there. When I try to delete it
Code:rm -rf app
rm: cannot remove 'app': Is a directoryIf I check the contents of this directory
Code:$ ls -lah app
ls: cannot access 'app': Transport endpoint is not connected
$ cd app
-bash: cd: app: Transport endpoint is not connectedthe output is the same. Does anyone have any ideas? :(