sshfs randomly corrupts files

Bug #1949966 reported by Martin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sshfs-fuse (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

/usr/bin/sshfs the way it is packaged now is broken, tested on 20.04 focal and 21.10 impish.

This issue is not present on Debian Sid or Arch Linux.

The way the issue shows is that majority of the time, a 40MB .zip file I download from an SFTP server is broken. The stat is identical, filesize is identical to the byte, but the inside is a garbled mess that refuses to unzip anymore. Tested via (and almost always getting a random checksum):

  md5sum /mnt/file.zip && umount /mnt/sftp && mount /mnt/sftp && md5sum /mnt/file.zip

I used a definition in fstab but also manually mounted via 'sshfs -o allow_other,default_permissions'

This is not a kernel issue, this is not a network issue, I have tested in containers and across servers.

Unfortunately, I do not have administrative access to the server I am testing against, so this is the only idea I have about it:

  Remote protocol version 2.0, remote software version CrushFTPSSHD

I was able to work around this on 21.10 by replacing /usr/bin/sshfs binary(and adding an accompanying libfuse3.so to the correct path, probably could've just installed repo version) from Arch Linux.

On 20.04 I installed libfuse3-3 and replaced sshfs with the one in Debian Sid.

Martin (c0rn3j)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sshfs-fuse (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.