Retire BookStack (content fully migrated; 2022 image + MariaDB 10.5 unsupported) #243
Labels
No labels
blocked
needs-manual-review
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
matt/homelab-docker#243
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
BookStack has been the retired wiki since 2026-04, but it still runs on Nexus:
linuxserver/bookstack:v22.03.1-ls11(2022)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:
.debstep was replaced by the LXC 112 auto-update)docker run/ Portainer / Nextcloud-on-php7.4 /pip3 install docker-composenotes, all replaced by the compose files in this repoThe 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
scripts/nexus-backup.sh(matt/homelab) runsmysqldumpinsidebookstack_dband callsfailwhen the dump is incomplete. Stop BookStack before that script changes and the whole nightly restic backup fails, which Hermes then reports as FAILED.mainfails the procedure.Steps
/mnt/archive/server/backups/bookstack-final-2026-MM-DD/:mysqldumpofbookstackapp/mnt/server/containers/bookstack(196 MB).env. It stays encrypted in the git history ofbookstack/.env.enc.scripts/nexus-backup.sh(lines ~42–44) and the header comment's mention/usr/local/sbin/nexus-backup.shon Nexus (needs Matt's sudo)sudo systemctl start nexus-backup.service) and confirm it succeedsDeploy Stack: bookstackaction from the Deploy Stacks procedure's Stage 2. Then trigger the procedure once and confirm the other stacks deploy.docker compose downinbookstack/). Leave it stopped for a week as a soak, in case something still depends on it.bookstack/(compose and.env.enc; git history keeps the encrypted env)dashy/conf.ymlREADME.md: the pipeline diagram, the services table (lines 42–43), the.env.encnote 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).claude/agents/homelab-pr-review.md: deploy-path table, line 171hermes-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)/mnt/server/containers/bookstackonly 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
bookstackandbookstack_dbcontainers are gone,bookstack/is gone from main, and Renovate no longer opens PRs for themgit grep -i bookstackreturns only history notes)🤖 Generated with Claude Code
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 insidebookstack_dbwith its own env vars, ends with-- Dump completed. Restore-tested into a throwawaylinuxserver/mariadb:10.5.15-r0-ls54container: 9 pages, 83,419 HTML bytes, the same as live.bookstack-data.tar.gz:/mnt/server/containers/bookstack, excluding the two plaintext env files (.envandwww/.env). 368 entries, no.env. It still containsBOOKSTACK_APP_KEY.txtand nginx's self-signedkeys/cert.key.pages/: one.htmland one.txtper page plusindex.md(9 pages; themarkdowncolumn was empty for every page, so it's HTML rather than Markdown).SHA256SUMS: verified, andgzip -tis 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):
/usr/local/sbin/nexus-backup.shsha256fd232002…matches main and has no bookstack lines. A manualnexus-backup.servicerun at 22:40 EDT endednexus-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.Deploy Stack: bookstackaction from Deploy Stacks Stage 2 viaUpdateProcedurewith the fullstagesarray; 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.StopStackat 22:43 EDT. Komodo showsstopped, both containersExited (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.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.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-27, Claude):
121113d,bookstack/holds only the gitignored.env, the Dashy tile is gone (Dashy returns 200), and the bookstack stack is stillstopped.nexus-backup: OKwithout the bookstack dump, and Hermes's Nexus backup check at 12:25 UTC ran ok (silent).git grep -i bookstackon 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.
Soak follow-up done (2026-11-03, Claude):
Soak checks
bookstack/bookstack_dbstayedExited (0)for 7 days, nothing restarted them./mnt/server/containers/dashy/conf.ymlfrom April still has the tile, but it's shadowed by the repo'sdashy/conf.ymlbind mount, which has none.)nexus-backup: OKevery night 10-30 through 11-03.sha256sum -c SHA256SUMSall OK,gzip -tclean, dump ends-- Dump completed.Deleted
bookstack,bookstack_db, networkbookstack_default, both imagesbookstack(DeleteStack;GetStacknow 500)/mnt/server/containers/bookstack(184 MB)bookstack/.envand the emptybookstack/dir in Nexus's homelab-docker checkout (git status clean)/var/backups/nexus-backup/bookstack.sql(Matt, sudo)All Done-when boxes are met. Closing.
🤖 Generated with Claude Code