Retire BookStack (content fully migrated; 2022 image + MariaDB 10.5 unsupported) #243

Closed
opened 2026-10-27 02:20:18 +00:00 by claude-bot · 4 comments
Collaborator

Why

BookStack has been the retired wiki since 2026-04, but it still runs on Nexus:

  • the app image is linuxserver/bookstack:v22.03.1-ls11 (2022)
  • the database is linuxserver/mariadb:10.5.15-r0-ls54 (MariaDB 10.5, past end of life)

Nobody uses it. The last edit and the last activity row are both from 2026-03-30, and there were 0 successful HTTP requests in the last 30 days of container logs. Its content has been fully migrated (checked below). Upgrading it would be pointless work, and leaving it running keeps an unpatched app on the LAN that still documents default credentials on one of its own pages.

Content check (2026-10-26, against the BookStack DB)

There are 9 pages and no drafts, deleted pages, images or attachments. I went through each one:

BookStack page Last edited Now lives in
How to Restore Proxmox Containers 2025-05-04 homelab wiki → Restore-Proxmox-Containers
How to Update Apps 2026-03-16 homelab wiki → Updating-Apps (its manual Plex .deb step was replaced by the LXC 112 auto-update)
Set up Plex in Proxmox 2025-01-05 old homelab-docker wiki → Plex-in-Proxmox
Setting up a Home DNS 2025-07-25 old homelab-docker wiki → Home-DNS-Setup
Set up NAS NFS Share for LXC Docker Apps 2025-10-12 old homelab-docker wiki → NAS-NFS-Share-for-LXC
How to get a public key onto Nexus 2025-05-05 old homelab-docker wiki → SSH-Public-Key-onto-Nexus
Open WebUI and Ollama Notes 2025-05-06 old homelab-docker wiki → Open-WebUI-and-Ollama
Join Hatikvah Trade Revolution (X4 game notes) 2025-04-17 old homelab-docker wiki → Hatikvah-Trade-Revolution
Nexus Setup 2026-03-30 not carried over on purpose. It holds 2022-era docker run / Portainer / Nextcloud-on-php7.4 / pip3 install docker-compose notes, all replaced by the compose files in this repo

The homelab wiki's Home page already says the generic guides and X4 notes were deliberately left in the old homelab-docker wiki. Nothing needs migrating. Step 1 still takes a final export, just in case.

⚠️ Order matters

  • The nightly backup would fail. scripts/nexus-backup.sh (matt/homelab) runs mysqldump inside bookstack_db and calls fail when the dump is incomplete. Stop BookStack before that script changes and the whole nightly restic backup fails, which Hermes then reports as FAILED.
  • Every Komodo deploy would fail. The Komodo "Deploy Stacks" procedure's Stage 2 has an explicit Deploy Stack: bookstack action. Delete the stack while that action is still there and every push to main fails the procedure.

Steps

  1. Final export. Store these on Hyperion under /mnt/archive/server/backups/bookstack-final-2026-MM-DD/:
    • a full mysqldump of bookstackapp
    • a tarball of /mnt/server/containers/bookstack (196 MB)
    • a per-page Markdown/HTML export (from the DB, or BookStack's Export menu) so it's readable without MariaDB
    • not the plaintext .env. It stays encrypted in the git history of bookstack/.env.enc.
  2. Backup script (matt/homelab PR):
    • remove the bookstack dump block from scripts/nexus-backup.sh (lines ~42–44) and the header comment's mention
    • deploy it to /usr/local/sbin/nexus-backup.sh on Nexus (needs Matt's sudo)
    • run the service once (sudo systemctl start nexus-backup.service) and confirm it succeeds
  3. Komodo: remove the Deploy Stack: bookstack action from the Deploy Stacks procedure's Stage 2. Then trigger the procedure once and confirm the other stacks deploy.
  4. Stop the stack in Komodo (or docker compose down in bookstack/). Leave it stopped for a week as a soak, in case something still depends on it.
  5. Repo cleanup (this repo, PR):
    • delete bookstack/ (compose and .env.enc; git history keeps the encrypted env)
    • drop the BookStack tile from dashy/conf.yml
    • update README.md: the pipeline diagram, the services table (lines 42–43), the .env.enc note on line 68, the decrypt example on line 78, the auto-deploy table on line 87, the review list on line 104, and the procedure-fix note on line 112 (5 → 4 Deploy Stack actions)
  6. Delete the Komodo stack resource after the soak.
  7. Other repo references (matt/homelab):
    • .claude/agents/homelab-pr-review.md: deploy-path table, line 171
    • hermes-skills/nexus-docker/SKILL.md: port table, line 71. Redeploy the skill so the drift check stays clean.
    • homelab-git-infrastructure-plan.md: the tree on line 266 (historical, so a note is enough)
  8. Wiki (homelab):
    • mark the Bookstack page retired, with the archive location and date
    • update Services, Home, _Sidebar, Decisions (resolve the "upgrade or shut it down" line), Backup-and-Restore, Komodo, Renovate, SOPS-and-Secrets, Updating-Apps and Automation-Pipeline
  9. Delete the data in /mnt/server/containers/bookstack only after the export is verified, the soak is over, and one more good nightly backup has run. The restic snapshots keep older copies too.

Done when

  • the final export is on Hyperion and the export files open
  • the nightly backup succeeds with no bookstack dump (check the Hermes backup check the next morning)
  • the Komodo Deploy Stacks procedure runs green without bookstack
  • the bookstack and bookstack_db containers are gone, bookstack/ is gone from main, and Renovate no longer opens PRs for them
  • no stale references in this repo, matt/homelab or the wiki (git grep -i bookstack returns only history notes)

🤖 Generated with Claude Code

## Why BookStack has been the retired wiki since 2026-04, but it still runs on Nexus: - the app image is `linuxserver/bookstack:v22.03.1-ls11` (2022) - the database is `linuxserver/mariadb:10.5.15-r0-ls54` (MariaDB 10.5, past end of life) Nobody uses it. The last edit and the last activity row are both from 2026-03-30, and there were 0 successful HTTP requests in the last 30 days of container logs. Its content has been fully migrated (checked below). Upgrading it would be pointless work, and leaving it running keeps an unpatched app on the LAN that still documents default credentials on one of its own pages. ## Content check (2026-10-26, against the BookStack DB) There are 9 pages and no drafts, deleted pages, images or attachments. I went through each one: | BookStack page | Last edited | Now lives in | |---|---|---| | How to Restore Proxmox Containers | 2025-05-04 | homelab wiki → **Restore-Proxmox-Containers** | | How to Update Apps | 2026-03-16 | homelab wiki → **Updating-Apps** (its manual Plex `.deb` step was replaced by the LXC 112 auto-update) | | Set up Plex in Proxmox | 2025-01-05 | old homelab-docker wiki → Plex-in-Proxmox | | Setting up a Home DNS | 2025-07-25 | old homelab-docker wiki → Home-DNS-Setup | | Set up NAS NFS Share for LXC Docker Apps | 2025-10-12 | old homelab-docker wiki → NAS-NFS-Share-for-LXC | | How to get a public key onto Nexus | 2025-05-05 | old homelab-docker wiki → SSH-Public-Key-onto-Nexus | | Open WebUI and Ollama Notes | 2025-05-06 | old homelab-docker wiki → Open-WebUI-and-Ollama | | Join Hatikvah Trade Revolution (X4 game notes) | 2025-04-17 | old homelab-docker wiki → Hatikvah-Trade-Revolution | | Nexus Setup | 2026-03-30 | **not carried over on purpose.** It holds 2022-era `docker run` / Portainer / Nextcloud-on-php7.4 / `pip3 install docker-compose` notes, all replaced by the compose files in this repo | The homelab wiki's Home page already says the generic guides and X4 notes were deliberately left in the old homelab-docker wiki. Nothing needs migrating. Step 1 still takes a final export, just in case. ## ⚠️ Order matters - **The nightly backup would fail.** `scripts/nexus-backup.sh` (matt/homelab) runs `mysqldump` inside `bookstack_db` and calls `fail` when the dump is incomplete. Stop BookStack before that script changes and the whole nightly restic backup fails, which Hermes then reports as FAILED. - **Every Komodo deploy would fail.** The Komodo "Deploy Stacks" procedure's Stage 2 has an explicit **Deploy Stack: bookstack** action. Delete the stack while that action is still there and every push to `main` fails the procedure. ## Steps 1. **Final export.** Store these on Hyperion under `/mnt/archive/server/backups/bookstack-final-2026-MM-DD/`: - a full `mysqldump` of `bookstackapp` - a tarball of `/mnt/server/containers/bookstack` (196 MB) - a per-page Markdown/HTML export (from the DB, or BookStack's Export menu) so it's readable without MariaDB - not the plaintext `.env`. It stays encrypted in the git history of `bookstack/.env.enc`. 2. **Backup script (matt/homelab PR):** - remove the bookstack dump block from `scripts/nexus-backup.sh` (lines ~42–44) and the header comment's mention - deploy it to `/usr/local/sbin/nexus-backup.sh` on Nexus (needs Matt's sudo) - run the service once (`sudo systemctl start nexus-backup.service`) and confirm it succeeds 3. **Komodo:** remove the `Deploy Stack: bookstack` action from the Deploy Stacks procedure's Stage 2. Then trigger the procedure once and confirm the other stacks deploy. 4. **Stop the stack** in Komodo (or `docker compose down` in `bookstack/`). Leave it stopped for a week as a soak, in case something still depends on it. 5. **Repo cleanup (this repo, PR):** - delete `bookstack/` (compose and `.env.enc`; git history keeps the encrypted env) - drop the BookStack tile from `dashy/conf.yml` - update `README.md`: the pipeline diagram, the services table (lines 42–43), the `.env.enc` note on line 68, the decrypt example on line 78, the auto-deploy table on line 87, the review list on line 104, and the procedure-fix note on line 112 (5 → 4 Deploy Stack actions) 6. **Delete the Komodo stack resource** after the soak. 7. **Other repo references (matt/homelab):** - `.claude/agents/homelab-pr-review.md`: deploy-path table, line 171 - `hermes-skills/nexus-docker/SKILL.md`: port table, line 71. Redeploy the skill so the drift check stays clean. - `homelab-git-infrastructure-plan.md`: the tree on line 266 (historical, so a note is enough) 8. **Wiki (homelab):** - mark the **Bookstack** page retired, with the archive location and date - update Services, Home, _Sidebar, Decisions (resolve the "upgrade or shut it down" line), Backup-and-Restore, Komodo, Renovate, SOPS-and-Secrets, Updating-Apps and Automation-Pipeline 9. **Delete the data** in `/mnt/server/containers/bookstack` only after the export is verified, the soak is over, and one more good nightly backup has run. The restic snapshots keep older copies too. ## Done when - [x] the final export is on Hyperion and the export files open - [x] the nightly backup succeeds with no bookstack dump (check the Hermes backup check the next morning) - [x] the Komodo Deploy Stacks procedure runs green without bookstack - [ ] the `bookstack` and `bookstack_db` containers are gone, `bookstack/` is gone from main, and Renovate no longer opens PRs for them - [x] no stale references in this repo, matt/homelab or the wiki (`git grep -i bookstack` returns only history notes) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Collaborator

Progress (2026-10-26, Claude):

Step 1 done and verified. Final export at /mnt/archive/server/backups/bookstack-final-2026-10-26/ on Hyperion:

  • bookstackapp.sql.gz: mysqldump run inside bookstack_db with its own env vars, ends with -- Dump completed. Restore-tested into a throwaway linuxserver/mariadb:10.5.15-r0-ls54 container: 9 pages, 83,419 HTML bytes, the same as live.
  • bookstack-data.tar.gz: /mnt/server/containers/bookstack, excluding the two plaintext env files (.env and www/.env). 368 entries, no .env. It still contains BOOKSTACK_APP_KEY.txt and nginx's self-signed keys/cert.key.
  • pages/: one .html and one .txt per page plus index.md (9 pages; the markdown column was empty for every page, so it's HTML rather than Markdown).
  • SHA256SUMS: verified, and gzip -t is clean.

Step 2 in review: matt/homelab#50 removes the bookstack dump from nexus-backup.sh. It needs to be merged, installed and run once before anything gets stopped.

Progress (2026-10-26, Claude): **Step 1 done and verified.** Final export at `/mnt/archive/server/backups/bookstack-final-2026-10-26/` on Hyperion: - `bookstackapp.sql.gz`: mysqldump run inside `bookstack_db` with its own env vars, ends with `-- Dump completed`. Restore-tested into a throwaway `linuxserver/mariadb:10.5.15-r0-ls54` container: 9 pages, 83,419 HTML bytes, the same as live. - `bookstack-data.tar.gz`: `/mnt/server/containers/bookstack`, excluding the two plaintext env files (`.env` and `www/.env`). 368 entries, no `.env`. It still contains `BOOKSTACK_APP_KEY.txt` and nginx's self-signed `keys/cert.key`. - `pages/`: one `.html` and one `.txt` per page plus `index.md` (9 pages; the `markdown` column was empty for every page, so it's HTML rather than Markdown). - `SHA256SUMS`: verified, and `gzip -t` is clean. **Step 2 in review:** matt/homelab#50 removes the bookstack dump from `nexus-backup.sh`. It needs to be merged, installed and run once before anything gets stopped.
Author
Collaborator

Progress (2026-10-26, Claude):

  • Step 2 done. matt/homelab#50 is merged and installed. /usr/local/sbin/nexus-backup.sh sha256 fd232002… matches main and has no bookstack lines. A manual nexus-backup.service run at 22:40 EDT ended nexus-backup: OK (Result=success, exit 0). The first scheduled run without the dump is 02:31 tonight; Hermes's backup check reports at 12:25 UTC.
  • Step 3 done. Removed the Deploy Stack: bookstack action from Deploy Stacks Stage 2 via UpdateProcedure with the full stages array; every other procedure field is unchanged. Ran it once: Pull Repo plus 5 DeployStack actions (dashy, tandoor, pinchflat, homeassistant, freshrss), all green, none for bookstack. Note: Stage 2 still has 5 actions, not 4, because freshrss was already there.
  • Step 4 done. Stopped through Komodo StopStack at 22:43 EDT. Komodo shows stopped, both containers Exited (0), and :6875 no longer answers. Every bookstack deploy in Komodo's history came from a Deploy Stacks run, so nothing else should restart it. Soak until about 2026-11-02. Data and the Komodo stack are kept.
  • Step 5 in review: #244 deletes bookstack/, drops the Dashy tile and fixes the README. Renovate's server config has no bookstack or mariadb rules, and there are no open PRs for them.
  • Step 7 in review: matt/homelab#51 updates the PR-review deploy table, the nexus-docker skill (v1.2.1; I'll redeploy it after merge) and adds a history note to the infrastructure plan.
  • Wiki done: the Bookstack page is marked retired with the archive path, and Services, Home, _Sidebar, Decisions, Backup-and-Restore, Komodo, Renovate, SOPS-and-Secrets, Updating-Apps and Automation-Pipeline are updated.
  • Follow-up: HA Homelab event "Follow-up: #243 delete BookStack data + Komodo stack after soak", Mondays from 2026-11-02, repeating weekly until deleted. The same line is on the wiki Maintenance page.

Still open in Done when: the scheduled nightly backup check, the containers and stack being gone (after the soak), and the merges of #244 and matt/homelab#51 for the reference cleanup.

Progress (2026-10-26, Claude): - **Step 2 done.** matt/homelab#50 is merged and installed. `/usr/local/sbin/nexus-backup.sh` sha256 `fd232002…` matches main and has no bookstack lines. A manual `nexus-backup.service` run at 22:40 EDT ended `nexus-backup: OK` (Result=success, exit 0). The first scheduled run without the dump is 02:31 tonight; Hermes's backup check reports at 12:25 UTC. - **Step 3 done.** Removed the `Deploy Stack: bookstack` action from Deploy Stacks Stage 2 via `UpdateProcedure` with the full `stages` array; every other procedure field is unchanged. Ran it once: Pull Repo plus 5 DeployStack actions (dashy, tandoor, pinchflat, homeassistant, freshrss), all green, none for bookstack. Note: Stage 2 still has **5** actions, not 4, because freshrss was already there. - **Step 4 done.** Stopped through Komodo `StopStack` at 22:43 EDT. Komodo shows `stopped`, both containers `Exited (0)`, and :6875 no longer answers. Every bookstack deploy in Komodo's history came from a Deploy Stacks run, so nothing else should restart it. Soak until about 2026-11-02. Data and the Komodo stack are kept. - **Step 5 in review:** #244 deletes `bookstack/`, drops the Dashy tile and fixes the README. Renovate's server config has no bookstack or mariadb rules, and there are no open PRs for them. - **Step 7 in review:** matt/homelab#51 updates the PR-review deploy table, the nexus-docker skill (v1.2.1; I'll redeploy it after merge) and adds a history note to the infrastructure plan. - **Wiki done:** the Bookstack page is marked retired with the archive path, and Services, Home, _Sidebar, Decisions, Backup-and-Restore, Komodo, Renovate, SOPS-and-Secrets, Updating-Apps and Automation-Pipeline are updated. - **Follow-up:** HA Homelab event "Follow-up: #243 delete BookStack data + Komodo stack after soak", Mondays from 2026-11-02, repeating weekly until deleted. The same line is on the wiki Maintenance page. Still open in Done when: the scheduled nightly backup check, the containers and stack being gone (after the soak), and the merges of #244 and matt/homelab#51 for the reference cleanup.
Author
Collaborator

Progress (2026-10-27, Claude):

  • #244 and matt/homelab#51 are merged. Deploy Stacks ran on the push at 13:35 UTC: Pull Repo plus 5 DeployStack actions, all green. Nexus's checkout is at 121113d, bookstack/ holds only the gitignored .env, the Dashy tile is gone (Dashy returns 200), and the bookstack stack is still stopped.
  • The nexus-docker skill v1.2.1 is deployed to the hermes VM: the live sha256 matches main and the gateway restarted cleanly. A manual drift check printed nothing (clean).
  • The scheduled nightly backup at 02:35 EDT logged nexus-backup: OK without the bookstack dump, and Hermes's Nexus backup check at 12:25 UTC ran ok (silent).
  • git grep -i bookstack on main of both repos and on the wiki returns only history notes and the retired page itself.

One box left: containers gone and Renovate quiet. That's done at the soak follow-up (Mon 2026-11-02), when Matt deletes the data and the Komodo stack. Leaving #243 open until then.

Progress (2026-10-27, Claude): - #244 and matt/homelab#51 are merged. Deploy Stacks ran on the push at 13:35 UTC: Pull Repo plus 5 DeployStack actions, all green. Nexus's checkout is at `121113d`, `bookstack/` holds only the gitignored `.env`, the Dashy tile is gone (Dashy returns 200), and the bookstack stack is still `stopped`. - The nexus-docker skill v1.2.1 is deployed to the hermes VM: the live sha256 matches main and the gateway restarted cleanly. A manual drift check printed nothing (clean). - The scheduled nightly backup at 02:35 EDT logged `nexus-backup: OK` without the bookstack dump, and Hermes's Nexus backup check at 12:25 UTC ran ok (silent). - `git grep -i bookstack` on main of both repos and on the wiki returns only history notes and the retired page itself. One box left: containers gone and Renovate quiet. That's done at the soak follow-up (Mon 2026-11-02), when Matt deletes the data and the Komodo stack. Leaving #243 open until then.
Author
Collaborator

Soak follow-up done (2026-11-03, Claude):

Soak checks

  • bookstack / bookstack_db stayed Exited (0) for 7 days, nothing restarted them.
  • Nothing asked for it: no issues mention it, no Komodo procedure/action/sync references it, no live config points at it. (The stale /mnt/server/containers/dashy/conf.yml from April still has the tile, but it's shadowed by the repo's dashy/conf.yml bind mount, which has none.)
  • Nightly backup nexus-backup: OK every night 10-30 through 11-03.
  • Final export on Hyperion re-verified: sha256sum -c SHA256SUMS all OK, gzip -t clean, dump ends -- Dump completed.

Deleted

  • containers bookstack, bookstack_db, network bookstack_default, both images
  • Komodo stack bookstack (DeleteStack; GetStack now 500)
  • /mnt/server/containers/bookstack (184 MB)
  • bookstack/.env and the empty bookstack/ dir in Nexus's homelab-docker checkout (git status clean)
  • /var/backups/nexus-backup/bookstack.sql (Matt, sudo)
  • HA Homelab event "Follow-up: #243 ..." (whole series) and the matching wiki Maintenance line

All Done-when boxes are met. Closing.

🤖 Generated with Claude Code

Soak follow-up done (2026-11-03, Claude): **Soak checks** - `bookstack` / `bookstack_db` stayed `Exited (0)` for 7 days, nothing restarted them. - Nothing asked for it: no issues mention it, no Komodo procedure/action/sync references it, no live config points at it. (The stale `/mnt/server/containers/dashy/conf.yml` from April still has the tile, but it's shadowed by the repo's `dashy/conf.yml` bind mount, which has none.) - Nightly backup `nexus-backup: OK` every night 10-30 through 11-03. - Final export on Hyperion re-verified: `sha256sum -c SHA256SUMS` all OK, `gzip -t` clean, dump ends `-- Dump completed`. **Deleted** - containers `bookstack`, `bookstack_db`, network `bookstack_default`, both images - Komodo stack `bookstack` (`DeleteStack`; `GetStack` now 500) - `/mnt/server/containers/bookstack` (184 MB) - `bookstack/.env` and the empty `bookstack/` dir in Nexus's homelab-docker checkout (git status clean) - `/var/backups/nexus-backup/bookstack.sql` (Matt, sudo) - HA Homelab event "Follow-up: #243 ..." (whole series) and the matching wiki Maintenance line All Done-when boxes are met. Closing. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
matt/homelab-docker#243
No description provided.