February 5, 20242 yr For awhile I've used Transmit on my mac to organize my files over SFTP when I need to quickly move some things around (much smarter than things like Apple's Finder that would download the file locally and upload it to the other spot on the array instead of just issuing a remote path change). As I slowly started to switch my drives over to ZFS in a Hybrid array I noticed I would occasionally get a "Protocol error" when I tried to move certain files between two different spots on the array using the two GUI panes. After not figuring out a way around this I would end up booting up a Krusader docker container to do the moves instead. Last week the last drive in my array was converted to ZFS, so now that every drive is ZFS but still using Unraid parity. That being said every single file move I try over SFTP fails now. I wanted to rule out this being an issue with the particular Transmit app so I've tried several SFTP managers now, as well as tried basic command line SFTP commands and moves (or renames as the SFTP protocol calls them) always fail now. None of the errors have been helpful either, even with verbose logging, Transmit just says protocol error, SFTP on the command like just says "Failed", and the other programs have similar basic unhelpful errors. Anyone know what is going on? Is there something I need to tweak? Would there be a log anywhere on the UnRaid side that has a more helpful error that could help get to a resolution here?
February 12, 20242 yr Author Solution Ok so I've figured out the issue. I previously had Movies / TV Shows / etc as their own top level shares, which zfs treats as datasets. I've been converting things to be under a top level "/data" share/dataset now and if I move things within this share/dataset over SFTP it works no problem. So it would appear that when using unraid zfs datasets with SFTP that the protocol doesn't understand that it will have to do a copy + delete for this type of move instead of just a rename. Is this something that could be improved in the OS? Or is this an incompatibility of zfs with sftp?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.