Login
You're viewing the code4lib.social public feed.
  • Nov 25, 2025, 3:49 PM

    I'm shocked. I transferred 310 GB of audiovisual files via SFTP to be ingested into Rosetta's long term storage, and habitually compared checksums. Turns out, 6 of the 3300 files don't match.

    I knew not to trust a simple non-checksummed copy process, but I'm still quite amazed it actually happened. I wonder how? Aren't there supposed to be safeguards in TCP/IP and all that? #digipres

    💬 1🔄 6⭐ 1

Replies

  • Nov 25, 2025, 4:17 PM

    @cusie IME it's not the TCP/IP stack missing things, it's the connection dropping at the higher-level copying/scripting process not noticing or handling the error. But if this is the actual network stack missing things that would be fascinating!

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 25, 2025, 4:31 PM

    @cusie or both?! Maybe that's just me. Any idea of the kind of damage? In the past I've only seen empty or truncated files, rather than random damage.

    💬 1🔄 0⭐ 0
  • 💬 3🔄 0⭐ 1
  • Nov 25, 2025, 5:39 PM

    @cusie @anj I haven't had this happen to me, but have seen the results many times, files with all zeros or a portion of the file with zeros. Hard troubleshoot when I come across it later, I am interested in if you can replicate the issue again.

    💬 1🔄 0⭐ 0
  • Nov 25, 2025, 6:02 PM

    @Thorsted @cusie IME software and processes mishandling/ignoring transient connection issues is distressingly common. As soon as you're running a transfer that takes too long to manually oversee, you need to implement double-checks. The file move code I wrote for the UK Web Archive was extremely careful in this regard. Moving files is the most dangerous part of any workflow IMO.

    💬 0🔄 1⭐ 1
  • Nov 25, 2025, 5:56 PM

    @cusie interesting, thanks. FWIW this is more consistent with the SFTP client mishandling connection problems than the low level TCP/IP connection going wrong. The low level only sees connections and data packets, it's the FTP layer that's responsible for managing connections and stringing data packets together into files.

    💬 1🔄 0⭐ 1
  • 💬 0🔄 0⭐ 0