Chapter 01
Quick answers
The registration never arrived
Check in this order: the server_url (scheme, host, port), the firewall in between, and whether the client is allowed to back up at all (automatic backup is disabled for this client). The server log names the reason.
The client stopped reporting
The heartbeat arrives every 15 seconds by default. If it stops, the client is not running, the network is gone or the token was rotated. The service has to be running: sc query MintSmartBackup.
The protection is blocking the deletion
Check GET /api/v1/protection. A revision that is younger than immutable_days is never deleted, no matter what the retention says. Then run the collector: POST /api/v1/storage/collect.
The revision is incomplete
The chunks of the revision are missing. A revision whose session was never completed is collected as garbage — the client sends it again on the next run. The catalogue shows which revisions are complete.
Chapter 02
Troubleshooting
The client
- “the source … does not exist” — the path is wrong or the drive is not mounted. The run stops before the upload.
- “not a single source could be backed up” — every source is missing or unreadable.
- “the server refused the session” — the token is wrong or the client is disabled for the automatic backup.
- “the chunk hash mismatch” — the content changed while it was being sent. The client reads the file again.
The server
- The server does not start. The port is taken, the storage is not writable or the master key cannot be read. The message on the console names the path.
- “the chunk … failed the integrity check” — a chunk arrived damaged (a proxy, a network). The client sends it again.
- The console is empty. Check GET /api/v1/health — it works without a token. If the health answers and the fleet is empty, no client has registered yet.
The storage
- The disk is full. The server answers with an error, the client retries and the run is reported as failed. The anomaly server_storage_low warns before that happens.
- The storage was moved. The master key has to move with it — without it the chunks cannot be decrypted. It lives in master.key in the storage directory.
- The storage is read-only. The server stays alive and answers, but every write fails. The error appears in the log of the run.
Never delete master.key and never copy the chunks to another server without it. Without the master key the data is still there, but it cannot be read any more.
Chapter 03
Diagnostics
When you open a ticket, these three things make it a ten minute job instead of a two day job.
-
The health of the server
curl -s http://<server>:8787/api/v1/health curl -s -H "Authorization: Bearer <api_token>" http://<server>:8787/api/v1/clientsThe first line is the state of the server, the second the fleet with the last error of every client.
-
The log of the client
tail -n 200 <work_dir>/state.logEvery phase of the run is written there: the scan, the number of chunks, the errors.
-
The findings
curl -s -H "Authorization: Bearer <api_token>" http://<server>:8787/api/v1/anomaliesThe anomalies carry a severity, a state and — most importantly — the action to take.
Never send the master key, the session tokens or the api token in a ticket. They are secrets: rotate the token of the client and the management token of the server after a leak.
Chapter 04
Frequently asked questions
Is there a limit to the size of a backup?
Can the client back up a database that is running?
What happens when the server and the client are on different machines?
How do I move the data to another server?
Can two servers share a storage?
Does the client need the internet?
How do I uninstall it?
Chapter 05
Contact
Three ways, depending on how urgent it is.
The incident desk
For a fleet that is not backing up right now. Include the three diagnostics of the chapter above — the answer comes in hours.
incident@mintsmartbackup.example
The support desk
For a bug, a question about the configuration or a request for a feature. The answer comes in days, the bug goes into the next release.
support@mintsmartbackup.example
The sources
The whole product is in the repository: the server, the client, the 212 tests and the report of the QA round. If you can read Rust, you can verify every claim on this page.
github.com/…/MintSmartBackup
P1 — no machine is protected or a restore fails. P2 — a single client is affected. P3 — a question, a feature request, a documentation error. Please say which one it is; it decides the queue.