apps(osint): pg image r3 for timescaledb 2.32.1 on PG 16.16
PG 16.16 added the PortalDrop() "cannot drop portal" check that TimescaleDB <=2.32.0 trips from the background scheduler, so every policy job (refresh/compression/retention/job history) failed with SQLSTATE 24000 although CALL run_job() worked (timescale/timescaledb#11038, fixed in 2.32.1). Rebuilt apps/base/osint/pg-image/Dockerfile with: - base postgres:16.16-bookworm (was floating 16-bookworm) - timescaledb-2-postgresql-16 / -2-loader-postgresql-16 pinned to 2.32.1~debian12-1616 (built against PG 16.16) Pushed as amd64-c48788d4b614-r3 (digest sha256:b2bdc093...), verified by a throwaway restore of a fresh pg_dump: extension 2.32.0 -> ALTER EXTENSION UPDATE 2.32.1 -> all 12 jobs Success with real last_successful_finish and no portal errors.
This commit is contained in:
parent
2380cfb6ac
commit
e63c14641d
3 changed files with 32 additions and 9 deletions
|
|
@ -8,7 +8,7 @@ instead of a host Docker container on the Pi.
|
|||
|
||||
| Deployment | Image | Purpose |
|
||||
|---|---|---|
|
||||
| `osint-db` | `forgejo…/sirius/osint-dashboard-pg:amd64-c48788d4b614-r2` | TimescaleDB 2 + PostGIS 3 on Postgres 16, `local-path` PVC `osint-pgdata` 15 Gi |
|
||||
| `osint-db` | `forgejo…/sirius/osint-dashboard-pg:amd64-c48788d4b614-r3` | TimescaleDB 2.32.1 + PostGIS 3 on Postgres 16.16, `local-path-linode` PVC `osint-pgdata-linode` 15 Gi |
|
||||
| `osint-nats` | `forgejo…/sirius/nats:2.10` | JetStream event bus (`-js -m 8222`) |
|
||||
| `osint-app` | `forgejo…/sirius/osint-dashboard:amd64-915f6cbe25be` | FastAPI + static HUD; runs `alembic upgrade heads` on start; single-admin auth (`app/auth.py`) — public read-only site, admin-only keys/settings/mutations |
|
||||
| `osint-ingester` | same app image | RSS/GDELT/USGS/FIRMS/vessel ingest → NATS → Postgres |
|
||||
|
|
@ -56,13 +56,23 @@ docker build -f pg-image/Dockerfile -t 127.0.0.1:3000/sirius/osint-das
|
|||
```
|
||||
|
||||
`pg-image/Dockerfile` is the cluster copy of `Dockerfile.pg`. **It pins
|
||||
`postgres:16-bookworm`**: the upstream file's bare `postgres:16` now resolves to
|
||||
Debian trixie, whose `postgresql-16-postgis-3` (3.7.0+pgdg13) fails to load
|
||||
`postgres:16.16-bookworm`**: the upstream file's bare `postgres:16` now resolves
|
||||
to Debian trixie, whose `postgresql-16-postgis-3` (3.7.0+pgdg13) fails to load
|
||||
against PG 16.15 with `undefined symbol: heap_datum_check` — `CREATE EXTENSION
|
||||
postgis` crashes the server. On bookworm (`+pgdg12`) PostGIS 3.7 loads and
|
||||
`create_hypertable()` works. Port the one-line base-image pin upstream when the
|
||||
Pi stack is next rebuilt.
|
||||
|
||||
It also pins the TimescaleDB packages to `2.32.1~debian12-1616` (the `-1616`
|
||||
suffix = built against PG 16.16) and the base image to the 16.16 minor. PG
|
||||
16.16 added the `PortalDrop()` "cannot drop portal while it is being set up"
|
||||
check that TimescaleDB <=2.32.0 trips in its background-worker path, so every
|
||||
policy job failed with SQLSTATE 24000 while `CALL run_job()` worked
|
||||
(timescale/timescaledb#11038, fixed in 2.31.2/2.32.1). Never unpin either half:
|
||||
a pg minor bump without a matching TimescaleDB build reintroduces the failure.
|
||||
`-r3` is that build. After a pod recreate the extension itself still has to be
|
||||
moved: `ALTER EXTENSION timescaledb UPDATE TO '2.32.1'`.
|
||||
|
||||
## Secrets (never in git)
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue