phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

Unable to save files on remote SSHFS file system

Open mheland opened this issue 2 years ago • 2 comments

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:

  1. 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
  1. Open remote Folder in Phoenix Remote directory appears in File Tree OK

  2. 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

  1. 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 phoenix1

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.

mheland avatar Nov 26 '22 17:11 mheland

Thanks for registering the issue @mheland . Have not tested for custom filesystem extensions with windows.

@mathewdennis1 Please verify and QA this flow.

abose avatar Nov 27 '22 11:11 abose

Hi, sorry for the delay, I tried it and can reproduce the issue.

Screenshot (3)

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

mathewdennis1 avatar Mar 08 '23 10:03 mathewdennis1