# S5-restore-tier2-window — restore pressed at 2026-09-26T07:42:58Z (second-drive unit restore)
POST /backup/tier2/unit-restore -> HTTP/2 302 ['location: /backups/apps?flash=flash.restore.full_started']
restore-status at end: {"running": false, "op": "tier2-unit-restore", "stack": "docmost", "started_at": "2026-09-26T07:42:59.597470183Z", "last": {"op": "tier2-unit-restore", "stack": "docmost", "ok": true, "message": "A(z) docmost: 3 adatk\u00f6tet \u00e9s az adatb\u00e1zis vissza\u00e1ll\u00edtva \u2014 az alkalmaz\u00e1s \u00fajraindult. A vissza\u00e1ll\u00edt\u00e1s forr\u00e1sa a m\u00e1sodik meghajt\u00f3n l\u00e9v\u0151 m\u00e1solat volt (2026-09-26 09:29).", "finished_at": "2026-09-26T07:43:28.98815976Z"}, "last_recent": true}
controller lines:
2026/09/26 07:42:59 handlers.go:2106: [WARN] [web] Tier-2 UNIT restore requested (async, OVERWRITES live data): stack=docmost from 172.18.0.6:42900
2026/09/26 07:42:59 tier2_restore.go:206: [WARN] [backup] Tier-2 UNIT restore for docmost from the secondary mirror /mnt/felhom-drives/scratch_hdd/backups/secondary/docmost/recovery-unit — this OVERWRITES live app data
2026/09/26 07:42:59 restore_unit.go:383: [INFO] [backup] Restoring docmost from recovery unit /mnt/felhom-drives/scratch_hdd/backups/secondary/docmost/recovery-unit: images=3, secrets recovered=2/2, data_keys=0
2026/09/26 07:42:59 manager.go:1305: [INFO] [stacks] Stopping stack: docmost
2026/09/26 07:43:00 manager.go:1314: [INFO] [stacks] Stack docmost stopped successfully (took 0.4s)
2026/09/26 07:43:00 restore.go:152: [INFO] [backup] Restoring Docker volume docmost_docmost_postgres_data for docmost
2026/09/26 07:43:01 restore.go:152: [INFO] [backup] Restoring Docker volume docmost_docmost_redis_data for docmost
2026/09/26 07:43:01 restore.go:152: [INFO] [backup] Restoring Docker volume docmost_docmost_storage for docmost
2026/09/26 07:43:01 restore.go:195: [INFO] [backup] Restored 3 Docker volume(s) for docmost
2026/09/26 07:43:01 [INFO] [stacks] SaveAppConfig: saved config for docmost
2026/09/26 07:43:01 deploy.go:708: [INFO] [stacks] Redeploying docmost from recovery unit with 4 env vars
2026/09/26 07:43:01 pin.go:93: [INFO] [stacks] pin docmost: docmost=docmost/docmost:0.96.0, docmost-postgres=postgres:16-alpine, docmost-redis=redis:7-alpine
2026/09/26 07:43:01 [INFO] [stacks] SaveAppConfig: saved config for docmost
2026/09/26 07:43:01 manager.go:1269: [INFO] [stacks] Starting stack docmost services only: [docmost-postgres]
2026/09/26 07:43:02 manager.go:1280: [INFO] [stacks] Stack docmost services [docmost-postgres] started (took 0.4s)
2026/09/26 07:43:02 restore_db.go:87: [INFO] [backup] Restore docmost: replaying DB dump into docmost-postgres (postgres)
2026/09/26 07:43:04 dbdump.go:801: [INFO] [backup] Imported DB dump docmost-postgres.sql into docmost-postgres (postgres)
2026/09/26 07:43:04 restore_db.go:97: [INFO] [backup] Restore docmost: replayed 1 DB dump(s)
2026/09/26 07:43:04 manager.go:1216: [INFO] [stacks] Starting stack: docmost
2026/09/26 07:43:15 manager.go:1231: [INFO] [stacks] Stack docmost started successfully (took 11.1s)
2026/09/26 07:43:15 [INFO] [stacks] SaveAppConfig: saved config for docmost
2026/09/26 07:43:15 installed.go:420: [INFO] [stacks] installed-images docmost: recorded 3 service(s) (docmost=docmost/docmost:0.96.0 (sha256:b56947fcfd08…), docmost-postgres=postgres:16-alpine (sha256:721873c34ceb…), docmost-redis=redis:7-alpine (sha256:858f009f9709…))
2026/09/26 07:43:19 manager.go:1562: [INFO] [stacks] Stack docmost post-start status:
2026/09/26 07:43:19 manager.go:1565: [INFO] [stacks]   docmost            docmost/docmost:0.96.0@sha256:b56947fcfd08aab8fae12a377e1792784786adbf8b96e4281f14ef4fc072685a   running   Up 3 seconds (health: starting)
2026/09/26 07:43:19 manager.go:1565: [INFO] [stacks]   docmost-postgres   postgres:16-alpine@sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea       running   Up 16 seconds (healthy)
2026/09/26 07:43:19 manager.go:1565: [INFO] [stacks]   docmost-redis      redis:7-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499           running   Up 14 seconds (healthy)
2026/09/26 07:43:28 restore_unit.go:468: [INFO] [backup] Restore-from-unit completed: docmost — 3 volume(s) of 3 listed, 1 database(s) of 1 listed
2026/09/26 07:43:28 tier2_restore.go:251: [INFO] [backup] docmost: primary unit already carries data — left untouched (R-403 never overwrites a richer package with a poorer one)
2026/09/26 07:43:28 handlers.go:2116: [INFO] [web] Tier-2 unit restore completed (async): stack=docmost in 29.390287688s (volumes 3/3, dbs 1/1)

docmost-postgres log (tail):

PostgreSQL Database directory appears to contain a database; Skipping initialization

2026-09-26 09:43:02.469 CEST [1] LOG:  starting PostgreSQL 16.15 on x86_64-pc-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit
2026-09-26 09:43:02.469 CEST [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2026-09-26 09:43:02.469 CEST [1] LOG:  listening on IPv6 address "::", port 5432
2026-09-26 09:43:02.475 CEST [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2026-09-26 09:43:02.484 CEST [29] LOG:  database system was shut down at 2026-09-26 09:29:46 CEST
2026-09-26 09:43:02.495 CEST [1] LOG:  database system is ready to accept connections

docmost log (tail):
$ pnpm --filter ./apps/server run start:prod
$ cross-env NODE_ENV=production node dist/main
(node:45) ExperimentalWarning: localStorage is not available because --localstorage-file was not provided.
(Use `node --trace-warnings ...` to show where the warning was created)
{"level":"info","time":"2026-09-26T07:43:22.964Z","pid":45,"hostname":"905c49590089","context":"RedisModule","msg":"default: the connection was successfully established"}
{"level":"info","time":"2026-09-26T07:43:23.210Z","pid":45,"hostname":"905c49590089","context":"DatabaseModule","msg":"Establishing database connection"}
{"level":"info","time":"2026-09-26T07:43:23.238Z","pid":45,"hostname":"905c49590089","context":"DatabaseModule","msg":"Database connection successful"}
{"level":"info","time":"2026-09-26T07:43:23.399Z","pid":45,"hostname":"905c49590089","context":"DatabaseMigrationService","msg":"No pending database migrations"}
{"level":"info","time":"2026-09-26T07:43:23.437Z","pid":45,"hostname":"905c49590089","context":"NestApplication","msg":"Nest application successfully started"}
{"level":"info","time":"2026-09-26T07:43:23.448Z","pid":45,"hostname":"905c49590089","context":"NestApplication","msg":"Listening on http://127.0.0.1:3000 / https://c-docs.enkisfelhom.hu"}

seed reads back through the front door: True
# S5-restore-tier2-window — 2026-09-26T09:43:50+0200; controller gitea.dooplex.hu/admin/felhom-controller:0.274.0
pinned={'docmost': 'docmost/docmost:0.96.0', 'docmost-postgres': 'postgres:16-alpine', 'docmost-redis': 'redis:7-alpine'}
installed={"docmost": {"ref": "docmost/docmost:0.96.0", "digest": "sha256:b56947fcfd08aab8fae12a377e1792784786adbf8b96e4281f14ef4fc072685a", "at": "2026-09-26T07:43:15Z"}, "docmost-postgres": {"ref": "postgres:16-alpine", "digest": "sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea", "at": "2026-09-26T07:43:15Z"}, "docmost-redis": {"ref": "redis:7-alpine", "digest": "sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499", "at": "2026-09-26T07:43:15Z"}}
conversion_copy=None
state=running phase=done
== unit /mnt/sys_drive/felhom-data/backups/primary/docmost
  manifest.controller_version = "0.274.0"
  manifest.created_at = "2026-09-26T07:32:53Z"
  manifest.image_pins = ["docmost/docmost:0.96.0@sha256:b56947fcfd08aab8fae12a377e1792784786adbf8b96e4281f14ef4fc072685a", "postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873", "redis:7-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499"]
  manifest.db_dumps = ["docmost-postgres.sql"]
  manifest.volume_dumps = ["docmost_docmost_postgres_data.tar", "docmost_docmost_redis_data.tar", "docmost_docmost_storage.tar"]
  compose/ images:
    image: docmost/docmost:0.96.0@sha256:b56947fcfd08aab8fae12a377e1792784786adbf8b96e4281f14ef4fc072685a
    image: postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873
    image: redis:7-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499
  compose/ postgres mount:
    - docmost_postgres_data:/var/lib/postgresql
    docmost_postgres_data:
  mtimes (UTC):
    2026-09-26T07:32:53.8191999810Z       6426 compose/.felhom.yml
    2026-09-26T07:32:53.8201999930Z        447 compose/app.yaml
    2026-09-26T07:32:53.8191999810Z       3545 compose/docker-compose.yml
    2026-09-26T07:29:45.4578891810Z     154012 db-dumps/docmost-postgres.sql
    2026-09-26T07:32:53.8201999930Z       1514 manifest.json
    2026-09-26T07:29:47.5169144410Z   70258176 volume-dumps/docmost_docmost_postgres_data.tar
    2026-09-26T07:29:48.0792382720Z      58880 volume-dumps/docmost_docmost_redis_data.tar
    2026-09-26T07:29:47.0539087610Z       1536 volume-dumps/docmost_docmost_storage.tar
  docmost-postgres.sql: Dumped from database version 16.15
  pre-restore-20260926T072557Z-docmost-postgres.sql: Dumped from database version 16.15
  pre-restore-20260926T073000Z-docmost-postgres.sql: Dumped from database version 16.15
== unit /mnt/felhom-drives/scratch_hdd/backups/secondary/docmost/recovery-unit
  manifest.controller_version = "0.274.0"
  manifest.created_at = "2026-09-26T07:27:53Z"
  manifest.image_pins = ["docmost/docmost:0.96.0@sha256:b56947fcfd08aab8fae12a377e1792784786adbf8b96e4281f14ef4fc072685a", "postgres:16-alpine@sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea", "redis:7-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499"]
  manifest.db_dumps = ["docmost-postgres.sql"]
  manifest.volume_dumps = ["docmost_docmost_postgres_data.tar", "docmost_docmost_redis_data.tar", "docmost_docmost_storage.tar"]
  compose/ images:
    image: docmost/docmost:0.96.0@sha256:b56947fcfd08aab8fae12a377e1792784786adbf8b96e4281f14ef4fc072685a
    image: postgres:16-alpine@sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea
    image: redis:7-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499
  compose/ postgres mount:
    - docmost_postgres_data:/var/lib/postgresql/data
    docmost_postgres_data:
  mtimes (UTC):
    2026-09-26T07:27:53.7705190140Z       3998 compose/.felhom.yml
    2026-09-26T07:27:53.7715190260Z        447 compose/app.yaml
    2026-09-26T07:27:53.7705190140Z       3321 compose/docker-compose.yml
    2026-09-26T07:29:45.4578891810Z     154012 db-dumps/docmost-postgres.sql
    2026-09-26T07:29:59.6671961880Z       1514 manifest.json
    2026-09-26T07:29:47.5169144410Z   70258176 volume-dumps/docmost_docmost_postgres_data.tar
    2026-09-26T07:29:48.0792382720Z      58880 volume-dumps/docmost_docmost_redis_data.tar
    2026-09-26T07:29:47.0539087610Z       1536 volume-dumps/docmost_docmost_storage.tar
  docmost-postgres.sql: Dumped from database version 16.15
  pre-restore-20260926T072557Z-docmost-postgres.sql: Dumped from database version 16.15
== live
  compose image: docmost/docmost:0.96.0@sha256:b56947fcfd08aab8fae12a377e1792784786adbf8b96e4281f14ef4fc072685a
  compose image: postgres:16-alpine@sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea
  compose image: redis:7-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499
  PGDATA=/var/lib/postgresql/data PG_VERSION=16
docmost docmost/docmost:0.96.0 Up 40 seconds (healthy)
docmost-redis redis:7-alpine Up 50 seconds (healthy)
docmost-postgres postgres:16-alpine Up 53 seconds (healthy)
  volume docmost_docmost_postgres_data
  volume docmost_docmost_postgres_data.pre-update-20260926T073003Z
  volume docmost_docmost_redis_data
  volume docmost_docmost_storage
  pg volume root:
PG_VERSION base global pg_commit_ts pg_dynshmem pg_hba.conf pg_ident.conf pg_logical pg_multixact pg_notify pg_replslot pg_serial pg_snapshots pg_stat pg_stat_tmp pg_subtrans pg_tblspc pg_twophase pg_wal pg_xact postgresql.auto.conf postgresql.conf postmaster.opts postmaster.pid 
restore points offered (GET /api/backup/snapshots): 200 [{"time": "2026-09-26T07:32:53Z", "short_id": "helyi", "tier": 1, "drive_label": "Bels\u0151 SSD (rendszer)"}]
docmost_docmost_postgres_data
docmost_docmost_postgres_data.pre-update-20260926T073003Z
docmost_docmost_redis_data
docmost_docmost_storage
