Stash won't launch. "database disk image is malformed"

I had an older version of Stash (downloaded months ago) running on my Linux desktop. I downloaded a new version on my laptop, and transferred the database file stash-go.sqlite. It gave me the “Migration required” screen, and I accepted the schema migration. Stash worked properly on my laptop.

But then later I downloaded the new version of Stash on my desktop, and transferred the database file back. It no longer worked. Here is the terminal output:

INFO[2026-01-02 15:58:31] using config file: /home/liam/.stash/config.yml 
ERRO[2026-01-02 15:58:31] manager initialization error: getting database schema version: database disk image is malformed 
manager initialization error: getting database schema version: database disk image is malformed

I don’t understand why this would be, since it’s supposedly the same file that was on my laptop.

If I restore the old database file on my desktop, it works as it should, showing the same “Migration required” page that I saw earlier on my laptop.

I resolved it on my own. I just needed to transfer the newer version of config.yml from my laptop, then it worked.