Files
felhom.eu/documentation/audits/upgrade-spike-2026-09-06/evidence/E2/compose-full.log
T
admin a1a6c73fe1
gates / gates (push) Successful in 19s
SPIKE: an upgrade test that runs again — and a real defect in our own bookstack template
R-449. Until today one app upgrade out of 53 had ever been measured, by hand, and
the whole update arc was designed against that single data point.

C3 first: the negative control, whose TO image exits immediately, came back
failed. That is what makes the greens mean anything, and it cost 556s because a
negative is only honest if it waits out the full settle window.

Seven edges, three apps. All five real catalog upgrades kept the customer's data.

The finding that changes an assumption the arc was carrying: whether an upgrade
can be UNDONE is a property of the individual APP, not of upgrades. Docmost
refuses - 'corrupted migrations: previously executed migration
20260213T085259-notifications is missing' - and privatebin does not. That
reproduces the Nextcloud result on a second app by a DIFFERENT mechanism, so the
struck word 'rollback' now rests on two measurements instead of one.

The finding nobody was looking for, R-459: our own bookstack template moves
MariaDB across a major and sets no MARIADB_* env at all, so the engine logs that
the datadir upgrade it requires is being skipped, and serves anyway. The cause is
assigned rather than guessed - the app half alone produces no upgrade line, both
edges that move the engine produce it - which is exactly what decomposing E3 into
E3a and E3b was for. It also explains why E3's abort looked like it worked: the
datadir was never converted. Whether that ever breaks is NOT established, and the
row says so.

Also opened: R-460 (bookstack's file half cannot be seeded headlessly), R-461
(target-selection.md names a venue that does not exist and fences a VM that is
gone), R-462 (the widening, costed with this run's real numbers - and the cost is
dominated by fixtures, which do not amortise).

Teardown all three layers, hub checked rather than asserted. local-lvm read 30.50
percent before and after. The capability map was deliberately NOT edited: this
measured apps, not the product.
2026-09-06 11:48:57 +02:00

257 lines
48 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
docmost-redis | 1:C 06 Sep 2026 11:26:52.375 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
docmost-redis | 1:C 06 Sep 2026 11:26:52.375 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
docmost-redis | 1:C 06 Sep 2026 11:26:52.375 * Redis version=7.4.11, bits=64, commit=00000000, modified=0, pid=1, just started
docmost-redis | 1:C 06 Sep 2026 11:26:52.375 * Configuration loaded
docmost-redis | 1:M 06 Sep 2026 11:26:52.376 * Increased maximum number of open files to 10032 (it was originally set to 1024).
docmost-redis | 1:M 06 Sep 2026 11:26:52.376 * monotonic clock: POSIX clock_gettime
docmost-redis | 1:M 06 Sep 2026 11:26:52.377 * Running mode=standalone, port=6379.
docmost-redis | 1:M 06 Sep 2026 11:26:52.377 * Server initialized
docmost-redis | 1:M 06 Sep 2026 11:26:52.381 * Creating AOF base file appendonly.aof.1.base.rdb on server start
docmost-redis | 1:M 06 Sep 2026 11:26:52.389 * Creating AOF incr file appendonly.aof.1.incr.aof on server start
docmost-redis | 1:M 06 Sep 2026 11:26:52.389 * Ready to accept connections tcp
docmost-postgres | The files belonging to this database system will be owned by user "postgres".
docmost-postgres | This user must also own the server process.
docmost-postgres |
docmost-postgres | The database cluster will be initialized with locale "en_US.utf8".
docmost-postgres | The default database encoding has accordingly been set to "UTF8".
docmost-postgres | The default text search configuration will be set to "english".
docmost-postgres |
docmost-postgres | Data page checksums are disabled.
docmost-postgres |
docmost-postgres | fixing permissions on existing directory /var/lib/postgresql/data ... ok
docmost-postgres | creating subdirectories ... ok
docmost-postgres | selecting dynamic shared memory implementation ... posix
docmost-postgres | selecting default max_connections ... 100
docmost-postgres | selecting default shared_buffers ... 128MB
docmost-postgres | selecting default time zone ... Europe/Budapest
docmost-postgres | creating configuration files ... ok
docmost-postgres | running bootstrap script ... ok
docmost-postgres | sh: locale: not found
docmost-postgres | 2026-09-06 11:26:53.029 CEST [35] WARNING: no usable system locales were found
docmost-postgres | performing post-bootstrap initialization ... ok
docmost-postgres | initdb: warning: enabling "trust" authentication for local connections
docmost-postgres | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
docmost-postgres | syncing data to disk ... ok
docmost-postgres |
docmost-postgres |
docmost-postgres | Success. You can now start the database server using:
docmost-postgres |
docmost-postgres | pg_ctl -D /var/lib/postgresql/data -l logfile start
docmost-postgres |
docmost-postgres | waiting for server to start....2026-09-06 11:26:53.769 CEST [41] LOG: starting PostgreSQL 16.15 on x86_64-pc-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit
docmost-postgres | 2026-09-06 11:26:53.772 CEST [41] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
docmost-postgres | 2026-09-06 11:26:53.785 CEST [44] LOG: database system was shut down at 2026-09-06 11:26:53 CEST
docmost-postgres | 2026-09-06 11:26:53.794 CEST [41] LOG: database system is ready to accept connections
docmost-postgres | done
docmost-postgres | server started
docmost-postgres | CREATE DATABASE
docmost-postgres |
docmost-postgres |
docmost-postgres | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
docmost-postgres |
docmost-postgres | waiting for server to shut down....2026-09-06 11:26:53.946 CEST [41] LOG: received fast shutdown request
docmost-postgres | 2026-09-06 11:26:53.950 CEST [41] LOG: aborting any active transactions
docmost-postgres | 2026-09-06 11:26:53.953 CEST [41] LOG: background worker "logical replication launcher" (PID 47) exited with exit code 1
docmost-postgres | 2026-09-06 11:26:53.955 CEST [42] LOG: shutting down
docmost-postgres | 2026-09-06 11:26:53.958 CEST [42] LOG: checkpoint starting: shutdown immediate
docmost-postgres | 2026-09-06 11:26:54.083 CEST [42] LOG: checkpoint complete: wrote 926 buffers (5.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.023 s, sync=0.089 s, total=0.128 s; sync files=301, longest=0.006 s, average=0.001 s; distance=4283 kB, estimate=4283 kB; lsn=0/1925D58, redo lsn=0/1925D58
docmost-postgres | 2026-09-06 11:26:54.097 CEST [41] LOG: database system is shut down
docmost-postgres | done
docmost-postgres | server stopped
docmost-postgres |
docmost-postgres | PostgreSQL init process complete; ready for start up.
docmost-postgres |
docmost-postgres | 2026-09-06 11:26:54.181 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
docmost-postgres | 2026-09-06 11:26:54.181 CEST [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
docmost-postgres | 2026-09-06 11:26:54.181 CEST [1] LOG: listening on IPv6 address "::", port 5432
docmost-postgres | 2026-09-06 11:26:54.188 CEST [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
docmost-postgres | 2026-09-06 11:26:54.197 CEST [57] LOG: database system was shut down at 2026-09-06 11:26:54 CEST
docmost-postgres | 2026-09-06 11:26:54.207 CEST [1] LOG: database system is ready to accept connections
docmost |
docmost | > docmost@0.25.3 start /app
docmost | > pnpm --filter ./apps/server run start:prod
docmost |
docmost |
docmost | > server@0.25.3 start:prod /app/apps/server
docmost | > cross-env NODE_ENV=production node dist/main
docmost |
docmost | {"level":"info","time":"2026-09-06T09:28:17.842Z","pid":43,"hostname":"136cff373e66","context":"RedisModule","msg":"default: the connection was successfully established"}
docmost | {"level":"info","time":"2026-09-06T09:28:18.127Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Establishing database connection"}
docmost | {"level":"info","time":"2026-09-06T09:28:18.149Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Database connection successful"}
docmost | {"level":"error","time":"2026-09-06T09:28:18.277Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","msg":"Failed to run database migration. Exiting program."}
docmost | {"level":"error","time":"2026-09-06T09:28:18.277Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","err":{"type":"Error","message":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing","stack":"Error: corrupted migrations: previously executed migration 20260213T085259-notifications is missing\n at #ensureNoMissingMigrations (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)\n at #getState (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async run (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)\n at async /app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/kysely.js:569:32\n at async DefaultConnectionProvider.provideConnection (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)\n at async #migrate (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)\n at async MigrationService.migrateToLatest (/app/apps/server/dist/database/services/migration.service.js:36:36)\n at async DatabaseModule.onApplicationBootstrap (/app/apps/server/dist/database/database.module.js:50:13)\n at async callModuleBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/hooks/on-app-bootstrap.hook.js:51:9)\n at async NestApplication.callBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application-context.js:274:13)\n at async NestApplication.init (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:105:9)\n at async NestApplication.listen (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:175:13)\n at async bootstrap (/app/apps/server/dist/main.js:82:5)"},"msg":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing"}
docmost | /app/apps/server:
docmost |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.25.3 start:prod: `cross-env NODE_ENV=production node dist/main`
docmost | Exit status 1
docmost |  ELIFECYCLE  Command failed with exit code 1.
docmost |
docmost | > docmost@0.25.3 start /app
docmost | > pnpm --filter ./apps/server run start:prod
docmost |
docmost |
docmost | > server@0.25.3 start:prod /app/apps/server
docmost | > cross-env NODE_ENV=production node dist/main
docmost |
docmost | {"level":"info","time":"2026-09-06T09:28:24.334Z","pid":43,"hostname":"136cff373e66","context":"RedisModule","msg":"default: the connection was successfully established"}
docmost | {"level":"info","time":"2026-09-06T09:28:24.581Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Establishing database connection"}
docmost | {"level":"info","time":"2026-09-06T09:28:24.613Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Database connection successful"}
docmost | {"level":"error","time":"2026-09-06T09:28:24.773Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","msg":"Failed to run database migration. Exiting program."}
docmost | {"level":"error","time":"2026-09-06T09:28:24.773Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","err":{"type":"Error","message":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing","stack":"Error: corrupted migrations: previously executed migration 20260213T085259-notifications is missing\n at #ensureNoMissingMigrations (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)\n at #getState (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async run (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)\n at async /app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/kysely.js:569:32\n at async DefaultConnectionProvider.provideConnection (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)\n at async #migrate (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)\n at async MigrationService.migrateToLatest (/app/apps/server/dist/database/services/migration.service.js:36:36)\n at async DatabaseModule.onApplicationBootstrap (/app/apps/server/dist/database/database.module.js:50:13)\n at async callModuleBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/hooks/on-app-bootstrap.hook.js:51:9)\n at async NestApplication.callBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application-context.js:274:13)\n at async NestApplication.init (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:105:9)\n at async NestApplication.listen (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:175:13)\n at async bootstrap (/app/apps/server/dist/main.js:82:5)"},"msg":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing"}
docmost | /app/apps/server:
docmost |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.25.3 start:prod: `cross-env NODE_ENV=production node dist/main`
docmost | Exit status 1
docmost |  ELIFECYCLE  Command failed with exit code 1.
docmost |
docmost | > docmost@0.25.3 start /app
docmost | > pnpm --filter ./apps/server run start:prod
docmost |
docmost |
docmost | > server@0.25.3 start:prod /app/apps/server
docmost | > cross-env NODE_ENV=production node dist/main
docmost |
docmost | {"level":"info","time":"2026-09-06T09:28:30.873Z","pid":43,"hostname":"136cff373e66","context":"RedisModule","msg":"default: the connection was successfully established"}
docmost | {"level":"info","time":"2026-09-06T09:28:31.148Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Establishing database connection"}
docmost | {"level":"info","time":"2026-09-06T09:28:31.169Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Database connection successful"}
docmost | {"level":"error","time":"2026-09-06T09:28:31.292Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","msg":"Failed to run database migration. Exiting program."}
docmost | {"level":"error","time":"2026-09-06T09:28:31.292Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","err":{"type":"Error","message":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing","stack":"Error: corrupted migrations: previously executed migration 20260213T085259-notifications is missing\n at #ensureNoMissingMigrations (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)\n at #getState (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async run (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)\n at async /app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/kysely.js:569:32\n at async DefaultConnectionProvider.provideConnection (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)\n at async #migrate (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)\n at async MigrationService.migrateToLatest (/app/apps/server/dist/database/services/migration.service.js:36:36)\n at async DatabaseModule.onApplicationBootstrap (/app/apps/server/dist/database/database.module.js:50:13)\n at async callModuleBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/hooks/on-app-bootstrap.hook.js:51:9)\n at async NestApplication.callBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application-context.js:274:13)\n at async NestApplication.init (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:105:9)\n at async NestApplication.listen (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:175:13)\n at async bootstrap (/app/apps/server/dist/main.js:82:5)"},"msg":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing"}
docmost | /app/apps/server:
docmost |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.25.3 start:prod: `cross-env NODE_ENV=production node dist/main`
docmost | Exit status 1
docmost |  ELIFECYCLE  Command failed with exit code 1.
docmost |
docmost | > docmost@0.25.3 start /app
docmost | > pnpm --filter ./apps/server run start:prod
docmost |
docmost |
docmost | > server@0.25.3 start:prod /app/apps/server
docmost | > cross-env NODE_ENV=production node dist/main
docmost |
docmost | {"level":"info","time":"2026-09-06T09:28:37.603Z","pid":43,"hostname":"136cff373e66","context":"RedisModule","msg":"default: the connection was successfully established"}
docmost | {"level":"info","time":"2026-09-06T09:28:37.835Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Establishing database connection"}
docmost | {"level":"info","time":"2026-09-06T09:28:37.860Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Database connection successful"}
docmost | {"level":"error","time":"2026-09-06T09:28:38.032Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","msg":"Failed to run database migration. Exiting program."}
docmost | {"level":"error","time":"2026-09-06T09:28:38.033Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","err":{"type":"Error","message":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing","stack":"Error: corrupted migrations: previously executed migration 20260213T085259-notifications is missing\n at #ensureNoMissingMigrations (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)\n at #getState (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async run (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)\n at async /app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/kysely.js:569:32\n at async DefaultConnectionProvider.provideConnection (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)\n at async #migrate (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)\n at async MigrationService.migrateToLatest (/app/apps/server/dist/database/services/migration.service.js:36:36)\n at async DatabaseModule.onApplicationBootstrap (/app/apps/server/dist/database/database.module.js:50:13)\n at async callModuleBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/hooks/on-app-bootstrap.hook.js:51:9)\n at async NestApplication.callBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application-context.js:274:13)\n at async NestApplication.init (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:105:9)\n at async NestApplication.listen (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:175:13)\n at async bootstrap (/app/apps/server/dist/main.js:82:5)"},"msg":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing"}
docmost | /app/apps/server:
docmost |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.25.3 start:prod: `cross-env NODE_ENV=production node dist/main`
docmost | Exit status 1
docmost |  ELIFECYCLE  Command failed with exit code 1.
docmost |
docmost | > docmost@0.25.3 start /app
docmost | > pnpm --filter ./apps/server run start:prod
docmost |
docmost |
docmost | > server@0.25.3 start:prod /app/apps/server
docmost | > cross-env NODE_ENV=production node dist/main
docmost |
docmost | {"level":"info","time":"2026-09-06T09:28:44.800Z","pid":43,"hostname":"136cff373e66","context":"RedisModule","msg":"default: the connection was successfully established"}
docmost | {"level":"info","time":"2026-09-06T09:28:45.047Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Establishing database connection"}
docmost | {"level":"info","time":"2026-09-06T09:28:45.073Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Database connection successful"}
docmost | {"level":"error","time":"2026-09-06T09:28:45.206Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","err":{"type":"Error","message":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing","stack":"Error: corrupted migrations: previously executed migration 20260213T085259-notifications is missing\n at #ensureNoMissingMigrations (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)\n at #getState (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async run (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)\n at async /app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/kysely.js:569:32\n at async DefaultConnectionProvider.provideConnection (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)\n at async #migrate (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)\n at async MigrationService.migrateToLatest (/app/apps/server/dist/database/services/migration.service.js:36:36)\n at async DatabaseModule.onApplicationBootstrap (/app/apps/server/dist/database/database.module.js:50:13)\n at async callModuleBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/hooks/on-app-bootstrap.hook.js:51:9)\n at async NestApplication.callBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application-context.js:274:13)\n at async NestApplication.init (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:105:9)\n at async NestApplication.listen (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:175:13)\n at async bootstrap (/app/apps/server/dist/main.js:82:5)"},"msg":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing"}
docmost | {"level":"error","time":"2026-09-06T09:28:45.206Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","msg":"Failed to run database migration. Exiting program."}
docmost | /app/apps/server:
docmost |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.25.3 start:prod: `cross-env NODE_ENV=production node dist/main`
docmost | Exit status 1
docmost |  ELIFECYCLE  Command failed with exit code 1.
docmost |
docmost | > docmost@0.25.3 start /app
docmost | > pnpm --filter ./apps/server run start:prod
docmost |
docmost |
docmost | > server@0.25.3 start:prod /app/apps/server
docmost | > cross-env NODE_ENV=production node dist/main
docmost |
docmost | {"level":"info","time":"2026-09-06T09:28:52.665Z","pid":43,"hostname":"136cff373e66","context":"RedisModule","msg":"default: the connection was successfully established"}
docmost | {"level":"info","time":"2026-09-06T09:28:52.895Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Establishing database connection"}
docmost | {"level":"info","time":"2026-09-06T09:28:52.922Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Database connection successful"}
docmost | {"level":"error","time":"2026-09-06T09:28:53.073Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","msg":"Failed to run database migration. Exiting program."}
docmost | {"level":"error","time":"2026-09-06T09:28:53.073Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","err":{"type":"Error","message":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing","stack":"Error: corrupted migrations: previously executed migration 20260213T085259-notifications is missing\n at #ensureNoMissingMigrations (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)\n at #getState (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async run (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)\n at async /app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/kysely.js:569:32\n at async DefaultConnectionProvider.provideConnection (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)\n at async #migrate (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)\n at async MigrationService.migrateToLatest (/app/apps/server/dist/database/services/migration.service.js:36:36)\n at async DatabaseModule.onApplicationBootstrap (/app/apps/server/dist/database/database.module.js:50:13)\n at async callModuleBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/hooks/on-app-bootstrap.hook.js:51:9)\n at async NestApplication.callBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application-context.js:274:13)\n at async NestApplication.init (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:105:9)\n at async NestApplication.listen (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:175:13)\n at async bootstrap (/app/apps/server/dist/main.js:82:5)"},"msg":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing"}
docmost | /app/apps/server:
docmost |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.25.3 start:prod: `cross-env NODE_ENV=production node dist/main`
docmost | Exit status 1
docmost |  ELIFECYCLE  Command failed with exit code 1.
docmost |
docmost | > docmost@0.25.3 start /app
docmost | > pnpm --filter ./apps/server run start:prod
docmost |
docmost |
docmost | > server@0.25.3 start:prod /app/apps/server
docmost | > cross-env NODE_ENV=production node dist/main
docmost |
docmost | {"level":"info","time":"2026-09-06T09:29:02.220Z","pid":43,"hostname":"136cff373e66","context":"RedisModule","msg":"default: the connection was successfully established"}
docmost | {"level":"info","time":"2026-09-06T09:29:02.465Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Establishing database connection"}
docmost | {"level":"info","time":"2026-09-06T09:29:02.487Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Database connection successful"}
docmost | {"level":"error","time":"2026-09-06T09:29:02.611Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","msg":"Failed to run database migration. Exiting program."}
docmost | {"level":"error","time":"2026-09-06T09:29:02.611Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","err":{"type":"Error","message":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing","stack":"Error: corrupted migrations: previously executed migration 20260213T085259-notifications is missing\n at #ensureNoMissingMigrations (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)\n at #getState (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async run (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)\n at async /app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/kysely.js:569:32\n at async DefaultConnectionProvider.provideConnection (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)\n at async #migrate (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)\n at async MigrationService.migrateToLatest (/app/apps/server/dist/database/services/migration.service.js:36:36)\n at async DatabaseModule.onApplicationBootstrap (/app/apps/server/dist/database/database.module.js:50:13)\n at async callModuleBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/hooks/on-app-bootstrap.hook.js:51:9)\n at async NestApplication.callBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application-context.js:274:13)\n at async NestApplication.init (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:105:9)\n at async NestApplication.listen (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:175:13)\n at async bootstrap (/app/apps/server/dist/main.js:82:5)"},"msg":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing"}
docmost | /app/apps/server:
docmost |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.25.3 start:prod: `cross-env NODE_ENV=production node dist/main`
docmost | Exit status 1
docmost |  ELIFECYCLE  Command failed with exit code 1.
docmost |
docmost | > docmost@0.25.3 start /app
docmost | > pnpm --filter ./apps/server run start:prod
docmost |
docmost |
docmost | > server@0.25.3 start:prod /app/apps/server
docmost | > cross-env NODE_ENV=production node dist/main
docmost |
docmost | {"level":"info","time":"2026-09-06T09:29:15.072Z","pid":43,"hostname":"136cff373e66","context":"RedisModule","msg":"default: the connection was successfully established"}
docmost | {"level":"info","time":"2026-09-06T09:29:15.375Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Establishing database connection"}
docmost | {"level":"info","time":"2026-09-06T09:29:15.399Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Database connection successful"}
docmost | {"level":"error","time":"2026-09-06T09:29:15.538Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","msg":"Failed to run database migration. Exiting program."}
docmost | {"level":"error","time":"2026-09-06T09:29:15.538Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","err":{"type":"Error","message":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing","stack":"Error: corrupted migrations: previously executed migration 20260213T085259-notifications is missing\n at #ensureNoMissingMigrations (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)\n at #getState (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async run (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)\n at async /app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/kysely.js:569:32\n at async DefaultConnectionProvider.provideConnection (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)\n at async #migrate (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)\n at async MigrationService.migrateToLatest (/app/apps/server/dist/database/services/migration.service.js:36:36)\n at async DatabaseModule.onApplicationBootstrap (/app/apps/server/dist/database/database.module.js:50:13)\n at async callModuleBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/hooks/on-app-bootstrap.hook.js:51:9)\n at async NestApplication.callBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application-context.js:274:13)\n at async NestApplication.init (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:105:9)\n at async NestApplication.listen (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:175:13)\n at async bootstrap (/app/apps/server/dist/main.js:82:5)"},"msg":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing"}
docmost | /app/apps/server:
docmost |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.25.3 start:prod: `cross-env NODE_ENV=production node dist/main`
docmost | Exit status 1
docmost |  ELIFECYCLE  Command failed with exit code 1.
docmost |
docmost | > docmost@0.25.3 start /app
docmost | > pnpm --filter ./apps/server run start:prod
docmost |
docmost |
docmost | > server@0.25.3 start:prod /app/apps/server
docmost | > cross-env NODE_ENV=production node dist/main
docmost |
docmost | {"level":"info","time":"2026-09-06T09:29:34.431Z","pid":43,"hostname":"136cff373e66","context":"RedisModule","msg":"default: the connection was successfully established"}
docmost | {"level":"info","time":"2026-09-06T09:29:34.695Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Establishing database connection"}
docmost | {"level":"info","time":"2026-09-06T09:29:34.716Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Database connection successful"}
docmost | {"level":"error","time":"2026-09-06T09:29:34.884Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","msg":"Failed to run database migration. Exiting program."}
docmost | {"level":"error","time":"2026-09-06T09:29:34.884Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","err":{"type":"Error","message":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing","stack":"Error: corrupted migrations: previously executed migration 20260213T085259-notifications is missing\n at #ensureNoMissingMigrations (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)\n at #getState (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async run (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)\n at async /app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/kysely.js:569:32\n at async DefaultConnectionProvider.provideConnection (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)\n at async #migrate (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)\n at async MigrationService.migrateToLatest (/app/apps/server/dist/database/services/migration.service.js:36:36)\n at async DatabaseModule.onApplicationBootstrap (/app/apps/server/dist/database/database.module.js:50:13)\n at async callModuleBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/hooks/on-app-bootstrap.hook.js:51:9)\n at async NestApplication.callBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application-context.js:274:13)\n at async NestApplication.init (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:105:9)\n at async NestApplication.listen (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:175:13)\n at async bootstrap (/app/apps/server/dist/main.js:82:5)"},"msg":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing"}
docmost | /app/apps/server:
docmost |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.25.3 start:prod: `cross-env NODE_ENV=production node dist/main`
docmost | Exit status 1
docmost |  ELIFECYCLE  Command failed with exit code 1.
docmost |
docmost | > docmost@0.25.3 start /app
docmost | > pnpm --filter ./apps/server run start:prod
docmost |
docmost |
docmost | > server@0.25.3 start:prod /app/apps/server
docmost | > cross-env NODE_ENV=production node dist/main
docmost |
docmost | {"level":"info","time":"2026-09-06T09:30:06.457Z","pid":43,"hostname":"136cff373e66","context":"RedisModule","msg":"default: the connection was successfully established"}
docmost | {"level":"info","time":"2026-09-06T09:30:06.689Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Establishing database connection"}
docmost | {"level":"info","time":"2026-09-06T09:30:06.711Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Database connection successful"}
docmost | {"level":"error","time":"2026-09-06T09:30:06.830Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","msg":"Failed to run database migration. Exiting program."}
docmost | {"level":"error","time":"2026-09-06T09:30:06.830Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","err":{"type":"Error","message":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing","stack":"Error: corrupted migrations: previously executed migration 20260213T085259-notifications is missing\n at #ensureNoMissingMigrations (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)\n at #getState (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async run (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)\n at async /app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/kysely.js:569:32\n at async DefaultConnectionProvider.provideConnection (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)\n at async #migrate (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)\n at async MigrationService.migrateToLatest (/app/apps/server/dist/database/services/migration.service.js:36:36)\n at async DatabaseModule.onApplicationBootstrap (/app/apps/server/dist/database/database.module.js:50:13)\n at async callModuleBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/hooks/on-app-bootstrap.hook.js:51:9)\n at async NestApplication.callBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application-context.js:274:13)\n at async NestApplication.init (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:105:9)\n at async NestApplication.listen (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:175:13)\n at async bootstrap (/app/apps/server/dist/main.js:82:5)"},"msg":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing"}
docmost | /app/apps/server:
docmost |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.25.3 start:prod: `cross-env NODE_ENV=production node dist/main`
docmost | Exit status 1
docmost |  ELIFECYCLE  Command failed with exit code 1.
docmost |
docmost | > docmost@0.25.3 start /app
docmost | > pnpm --filter ./apps/server run start:prod
docmost |
docmost |
docmost | > server@0.25.3 start:prod /app/apps/server
docmost | > cross-env NODE_ENV=production node dist/main
docmost |
docmost | {"level":"info","time":"2026-09-06T09:31:03.944Z","pid":43,"hostname":"136cff373e66","context":"RedisModule","msg":"default: the connection was successfully established"}
docmost | {"level":"info","time":"2026-09-06T09:31:04.196Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Establishing database connection"}
docmost | {"level":"info","time":"2026-09-06T09:31:04.219Z","pid":43,"hostname":"136cff373e66","context":"DatabaseModule","msg":"Database connection successful"}
docmost | {"level":"error","time":"2026-09-06T09:31:04.343Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","msg":"Failed to run database migration. Exiting program."}
docmost | {"level":"error","time":"2026-09-06T09:31:04.343Z","pid":43,"hostname":"136cff373e66","context":"DatabaseMigrationService","err":{"type":"Error","message":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing","stack":"Error: corrupted migrations: previously executed migration 20260213T085259-notifications is missing\n at #ensureNoMissingMigrations (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)\n at #getState (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async run (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)\n at async /app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/kysely.js:569:32\n at async DefaultConnectionProvider.provideConnection (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)\n at async #migrate (/app/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)\n at async MigrationService.migrateToLatest (/app/apps/server/dist/database/services/migration.service.js:36:36)\n at async DatabaseModule.onApplicationBootstrap (/app/apps/server/dist/database/database.module.js:50:13)\n at async callModuleBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/hooks/on-app-bootstrap.hook.js:51:9)\n at async NestApplication.callBootstrapHook (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application-context.js:274:13)\n at async NestApplication.init (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:105:9)\n at async NestApplication.listen (/app/node_modules/.pnpm/@nestjs+core@11.1.13_@nestjs+common@11.1.11_class-transformer@0.5.1_class-validator@0.1_12f3fd19d13f7701792c53839f3f8286/node_modules/@nestjs/core/nest-application.js:175:13)\n at async bootstrap (/app/apps/server/dist/main.js:82:5)"},"msg":"corrupted migrations: previously executed migration 20260213T085259-notifications is missing"}
docmost | /app/apps/server:
docmost |  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  server@0.25.3 start:prod: `cross-env NODE_ENV=production node dist/main`
docmost | Exit status 1
docmost |  ELIFECYCLE  Command failed with exit code 1.