Store::File.move('DB', 'File') Error File corrupted


  • Used Zammad version: 5.3.1-1673969095.e2363550.bullseye
  • Used Zammad installation type: package
  • Operating system: Debian 11.6
  • Browser + version: Google Chrome 108.0.5359.126

Expected behavior:

  • To move all files from database to storage

Actual behavior:

  • Get error message : File corrupted: path … does not match SHA digest … runtime error.

Full error message:
storage remove /opt/zammad/storage/fs/6ef9/42b3/75e61/1d17a/36b5067/b71ba0c/5d29aea11b9532bfa6d0afc657efae5f’
storage remove ‘/opt/zammad/storage/fs/6ef9/42b3/75e61/1d17a/36b5067/b71ba0c/5d29aea11b9532bfa6d0afc657efae5f’
/opt/zammad/app/models/store/provider/file.rb:34:in `get’: File corrupted: path /opt/zammad/storage/fs/6ef9/42b3/75e61/1d17a/36b5067/b71ba0c/5d29aea11b9532bfa6d0afc657efae5f does not match SHA digest (e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855) (RuntimeError)

Steps to reproduce the behavior:

There is something broken.

  • I just have to start the command to move the attachments.

How can i fix this? and move the rest of the files from db to file?

All help appreciated.

So I’m just gonna assume you fiddled with your files. As Zammad ensures the checksums during write operations.

Your only option is to restore a backup with the correct files.
That’s how far we can help, anything else means data loss and very individual troubleshooting, sorry.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.