phoenix
phoenix copied to clipboard
Unable to save files on remote SSHFS file system
Describe the bug Unable to save on remote filesystem over SSHFS on Windows 10 Local Windows file system read/write OK
To Reproduce
Steps to reproduce the behavior:
- Mount remote Linux file system over SSHFS in Windows Explorer as drive letter.
- WinFSP https://github.com/winfsp/winfsp/releases
- SSHFS-Win https://github.com/winfsp/sshfs-win/releases
-
Open remote Folder in Phoenix Remote directory appears in File Tree OK
-
Create new file in remote directory from File Tree using right-click, New File.
File is created, 0 bytes file verified in SSH terminal session
- Edit file and Save file.
Error message in Chrome console: AppshellFileSystem.js:148 unknown error: DOMException: An attempt was made to write to a file or directory which could not be modified due to the state of the underlying filesystem.
Expected behavior File is saved/updated on remote server
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Chrome 107.0.5304.107 (Official Build) (64-bit)
Additional context Remote writes over SSHFS are slow compared to local writes, I would guess an async function got tired of waiting. Folder creation is possible, and I have verified write access to remote files and directory using Windows Explorer.
Thanks for registering the issue @mheland . Have not tested for custom filesystem extensions with windows.
@mathewdennis1 Please verify and QA this flow.
Hi, sorry for the delay, I tried it and can reproduce the issue.
Procedure followed :
Server side
- setup shh
- installed sshfs
sudo apt install sshfs
Client side
- installed https://github.com/winfsp/winfsp/releases and https://github.com/winfsp/sshfs-win/releases
- mapped network drive:: explorer > right click on "this pc " > more options > map network drive.
- gave sshfs address eg: \\sshfs\username@device-name
Created a file on that mapped drive and saved it File was not saved and thare was an error in console