tursodatabase / tursodatabase/libsql
ERROR libsql::replication: replicator sync | database disk image is malformed
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 17.2k
- Forks
- 531
- Avg merge
- 1h 12m
- Merged PRs (30d)
- 1
Description
I have an app deployed in production that has a replica db saved in the app folder, and today i checked the logs and saw this error:
ERROR libsql::replication: replicator sync error: replication error: Injector error: SQLite error: database disk image is malformed
Everything was working perfectly fine for couple of weeks, no changes to db schema were made, it just simply started to show this error in logs
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report names libsql::replication and a SQLite "database disk image is malformed" error, but no source file, test, or reproduction. Start with the affected replica database and replication-sync logs; done requires reproducing the failure, identifying its cause, and verifying a reliable resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, sqlite
- Domain
- databases, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100