dolthub / dolthub/dolt

Bad error message `error bootstrapping chunk journal: journal index is malformed` when a new client connects to an older version of the server

Open
#8,002 0 comments 0 reactions 0 assignees View on GitHub
bad error message sql server
Dominant language
Go
Stars
24.4k
Forks
873
Avg merge
1d 5h
Merged PRs (30d)
108

Description

I have a long running server process to process the wikipedia import. I build `dolt` from main every day or so. I use the `dolt` CLI to connect to the server, make commits, push and gc. If the dolt used for the client gets too far ahead of the dolt used for the server, I get the following scary error message:

```
$ dolt push
Failed to load database.
error bootstrapping chunk journal: journal index is malformed
$ dolt gc
Failed to load database.
error bootstrapping chunk journal: journal index is malformed
$ dolt commit -am "3,063,000 pages imported"
error: Failed to commit changes.
```

The fix is to stop the server and start it again as the error is a symptom of the client being too far ahead of the server.

We should make the error message less scary and suggest the user restarts their server with the latest Dolt.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.