22:13:25 ==== Phase 2.3: the PostgreSQL 16 -> 17 conversion rehearsal (Q5)
22:13:25   removing the existing docmost so the rehearsal meets a FRESH workspace it can seed
22:13:27   [X] stop -> 200 {'ok': True, 'message': 'Stack docmost stop completed'}
22:13:32   [X] remove (with drive data) -> 200 {'ok': True, 'data': {'removed': 'docmost', 'volumes_removed': ['docmost_docmost_postgres_data', 'docmost_docmost_redis_data', 'docmost_docmost_storage'], 'hdd_
22:13:40   [X] after remove: deployed=False leftovers='/opt/docker/stacks/docmost'
22:13:40   [1] deploy -> 202 {'ok': True, 'message': 'Telepítés elindítva – az állapot a kártyán követhető'}
22:14:05   [1] deployed, controller state=running, pinned={'docmost': 'docmost/docmost:0.96.0', 'docmost-postgres': 'postgres:16-alpine', 'docmost-redis': 'redis:7-alpine'}
22:14:05     docmost: /api/auth/setup http=200 rc=0
22:14:06     docmost: login as the seeded user http=200 ok=True
22:14:09   [00-state-before] 2.7s
22:14:09       PG_VERSION (the harness's own postgres probe, verbatim):
22:14:09       16
22:14:09       engine version:
22:14:09       postgres (PostgreSQL) 16.15
22:14:09       datadir size:
22:14:09       49.0M	/var/lib/postgresql/data
22:14:09       volume:
22:14:09       docmost_docmost_postgres_data
22:14:12   [01-stop-the-app-keep-the-engine] 3.2s
22:14:12       app stopped (the engine stays up to be dumped)
22:14:12       docmost-postgres Up 31 seconds (healthy)
22:14:12       docmost-redis Up 31 seconds (healthy)
22:14:15   [02-dump-with-16] 2.6s
22:14:15       dumping as user=docmost
22:14:15       rc=0
22:14:15       dump bytes: 132201
22:14:15       CREATE TABLE statements: 48
22:14:21   [03-fresh-17-datadir-and-restore] 6.5s
22:14:21       17 up: postgres (PostgreSQL) 17.11
22:14:21       PG_VERSION on the fresh datadir: 17
22:14:21       restore rc=0
22:14:21       ERROR lines in the restore: 2
22:14:21       ERROR:  role "docmost" already exists
22:14:21       ERROR:  database "docmost" already exists
22:14:21       tables restored:
22:14:21       48
22:16:26   [04-point-the-app-at-17-and-start-it] 124.8s
22:16:26       DRILL-pg17 now answers to the name docmost-postgres on docmost_docmost-internal
22:16:26       app started
22:16:26       docmost Up 2 minutes (healthy)
22:16:26       docmost-postgres Exited (0) 2 minutes ago
22:16:26       docmost-redis Up 2 minutes (healthy)
22:16:26       {"level":"info","time":"2026-09-21T20:14:00.698Z","pid":45,"hostname":"24a35fe9b998","context":"NestApplication","msg":"Listening on http://127.0.0.1:3000 / https://docs.enkisfelhom.hu"}
22:16:26       [ELIFECYCLE] Command failed.
22:16:26       $ pnpm --filter ./apps/server run start:prod
22:16:26       $ cross-env NODE_ENV=production node dist/main
22:16:26       (node:45) ExperimentalWarning: localStorage is not available because --localstorage-file was not provided.
22:16:26       (Use `node --trace-warnings ...` to show where the warning was created)
22:16:26       {"level":"info","time":"2026-09-21T20:14:31.727Z","pid":45,"hostname":"24a35fe9b998","context":"RedisModule","msg":"default: the connection was successfully established"}
22:16:26       {"level":"info","time":"2026-09-21T20:14:32.033Z","pid":45,"hostname":"24a35fe9b998","context":"DatabaseModule","msg":"Establishing database connection"}
22:16:26       {"level":"info","time":"2026-09-21T20:14:32.065Z","pid":45,"hostname":"24a35fe9b998","context":"DatabaseModule","msg":"Database connection successful"}
22:16:27     docmost: login as the seeded user http=200 ok=True
22:16:27   [05] the seed read back on PostgreSQL 17: True
22:16:29   [06-engine-state-after] 2.3s
22:16:29       the harness's own postgres probe against the CONVERTED datadir:
22:16:29       17
22:16:29       [exit=0]
22:16:29       postgres (PostgreSQL) 17.11
22:16:29       size of the 17 datadir:
22:16:29       49.1M	/var/lib/postgresql/data
22:16:43   [99-put-everything-back] 13.8s
22:16:43       docmost docmost/docmost:0.96.0 Up 5 seconds (health: starting)
22:16:43       docmost-postgres postgres:16-alpine Up 10 seconds (healthy)
22:16:43       docmost-redis redis:7-alpine Up 3 minutes (healthy)
22:16:43       docmost-postgres postgres:16-alpine Up 10 seconds (healthy)
22:16:43       PG_VERSION back on the original datadir: 16
22:16:43     docmost: login as the seeded user http=404 ok=False
22:16:43     docmost: login body 404 page not found

22:16:43   [99] the seed still reads on the ORIGINAL 16 datadir after teardown: False
