HeyForm: MongoDB 4.4 -> 7.0, back on the real data

4.4 is end-of-life. Moved by mongodump/mongorestore into a new volume
(heyform_database7); the 4.4 volume stays for rollback.

The restore also fixes a data mix-up. From Nov 2024 the compose file set
MONGO_URI='mongodb://mongo:27017/heyform' in list form, so the quotes
became part of the value and HeyForm used a database literally named
"heyform'". The v3 upgrade (a1a79af) dropped the quotes, which switched
HeyForm to the old "heyform" database from the first week of setup, so
the real Repairs and Volunteer forms (91 submissions) disappeared. The new
volume holds "heyform'" restored as "heyform". Tested first with v3 on a
throwaway Mongo 7.0: both forms load.

Backups: ~/backups/heyform-mongo4.4-20261109 on the server (dump of both
databases + tar of the 4.4 volume).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-09 16:18:33 -07:00
1 parent 7916b0d223
commit 558b6d1a43
2 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ Tags: each category file has a category tag, each service its own tag.
| `paperlessngx` | Paperless-ngx | Image tag from `paperless_version` in `group_vars/docker/services.yml` (`latest`, auto-updated). Redis 8, Gotenberg `:8` (9 breaks the API), Tika pinned to 3.x by hand (4 is incompatible). Pocket ID through django-allauth (`paperlessngx.env.j2`). Rejects duplicate documents. Daily S3 backup of the data and media volumes. |
| `baikal` | Baikal | CalDAV/CardDAV. Caddy redirects the `.well-known` paths. |
| `syncthing` | Syncthing | Ports on the Tailscale IP only. |
| `heyform` | HeyForm v3 | `latest` (stable releases only), auto-updated. MongoDB 4.4 (Percona, as upstream) and Redis 8 (v3 needs it). Port 9157. Public sign-up is off; people join through workspace invitations. On `forms.nerder.land`. |
| `heyform` | HeyForm v3 | `latest` (stable releases only), auto-updated. MongoDB 7.0 (Percona) and Redis 8 (v3 needs it). Port 9157. Public sign-up is off; people join through workspace invitations. On `forms.nerder.land`. |
| `dawarich` | Dawarich | App, Sidekiq, PostGIS, Redis. Based on the upstream production compose file. Image tag from `dawarich_version` (pinned during the 1.7 → 1.22 step-by-step upgrade). |
| `obsidian-livesync` | CouchDB for Obsidian LiveSync | Port 5984 on the Tailscale IP only. Has a restart handler. |
| `gokapi` | Gokapi | Pocket ID login. `config.json` is only written on a fresh install, because Gokapi rewrites it on upgrade. To change it, delete `/opt/stacks/gokapi/config/config.json` and redeploy. |
@@ -31,12 +31,14 @@ services:
- SMTP_SECURE=true
mongo:
# HeyForm's own compose files still use 4.4
image: percona/percona-server-mongodb:4.4
# 7.0 is the newest Mongo that HeyForm's driver (mongodb 5.9) supports.
# Moved from 4.4 by dump/restore into a new volume on 2026-11-09; the old
# 4.4 volume (heyform_database) is kept for rollback.
image: percona/percona-server-mongodb:7.0
restart: always
volumes:
# Persist MongoDB data
- database:/data/db
- database7:/data/db
redis:
# v3 needs Redis 8 commands (HGETDEL), so KeyDB no longer works
@@ -51,7 +53,7 @@ services:
volumes:
assets:
driver: local
database:
database7:
driver: local
redis:
driver: local