vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Merge release channels into the account database and rename it instance.db
3047be84e9bce79372051c09854ce9b05f12a9bf · Keenan Nemetz · 17d ago · parent 262e516e
Merge release channels into the account database and rename it instance.db The instance keeps four SQLite files instead of five. Release channels were in a file of their own only because they were added beside the derived index; they are authoritative source state, like the roster, so they belong in the file an operator restores. Nothing has to be migrated: channels.db never shipped in a release, so only an instance tracking main can have one. The account database is now data/instance.db. The package comments already called it that; only the filename disagreed. Moving an existing instance is an operator step, by decision: a rename under a live server can lose the -wal file a hook subprocess still has open. Vole refuses to start while data/users.db is still in place, and says what to move, rather than creating an empty database beside it that would look like a successful upgrade. The list of databases now lives in Config.Databases, which TightenSecrets, the hook plumbing, and the admin commands read, so a missed -wal file is no longer a nine-file change. `vole admin account backup <path>` becomes `vole admin db backup <dir>` and covers every authoritative database; `db list` and `db check` answer what to back up and whether it is intact.
docs/packaging.md +12−3
| @@ -64,13 +64,22 @@ older binary. Back up and test recovery before upgrading: | |||
| 64 | 64 | ### 1. Back up the instance | |
| 65 | 65 | ||
| 66 | 66 | Follow [Back up an instance](operations.md#back-up-an-instance), including | |
| 67 | `users.db`, `runs.db`, secrets, repositories, objects, logs, and host keys. | ||
| 67 | `instance.db`, `runs.db`, secrets, repositories, objects, logs, and host keys. | ||
| 68 | 68 | ||
| 69 | 69 | ### 2. Install the new package | |
| 70 | 70 | ||
| 71 | 71 | Install with `dpkg -i`, `apt install ./<package>`, or `dnf install ./<package>`. | |
| 72 | 72 | ||
| 73 | ### 3. Restart the service | ||
| 73 | ### 3. Rename a pre-channel account database | ||
| 74 | |||
| 75 | If `data/` still holds `users.db`, this version reads `instance.db` and will | ||
| 76 | refuse to start rather than create an empty one beside it. Move the file and its | ||
| 77 | write-ahead sibling as described in | ||
| 78 | [Upgrade to the instance database](operations.md#upgrade-to-the-instance-database). | ||
| 79 | An instance installed from a package has no `data/channels.db`; only one tracking | ||
| 80 | `main` in the release-channel window can have that file. | ||
| 81 | |||
| 82 | ### 4. Restart the service | ||
| 74 | 83 | ||
| 75 | 84 | Restart it if the package manager did not: | |
| 76 | 85 | ||
| @@ -78,7 +87,7 @@ Restart it if the package manager did not: | |||
| 78 | 87 | sudo systemctl restart vole | |
| 79 | 88 | ``` | |
| 80 | 89 | ||
| 81 | ### 4. Verify the upgrade | ||
| 90 | ### 5. Verify the upgrade | ||
| 82 | 91 | ||
| 83 | 92 | Check `vole version`, the service log, account sign-in, an SSH clone, and CI | |
| 84 | 93 | runner connectivity. | |