V1.140.1 crashed after file upload, downgrade to V.1.138.1 throws corrupted migrations error
This morning I did the upgrade from v135 to v140.1 Everything seems to be fine.
An hour ago I tried to upload more then 100 new images. More the 90% got an error in the UI (is there some a logfile for?)
The Immich server continuously restarts (approx. every 30 seconds) until this log entry:
2025-09-01T15:27:08.190037239Z [Nest] 18 - 09/01/2025, 5:27:08 PM LOG [Api:Bootstrap] Immich Server is listening on http://[::1]:2283 [v1.140.1] [production].
When I try to downgrade to 1.138.1, I get the error message:
[Nest] 7 - 09/01/2025, 6:25:04 PM ERROR [Microservices:DatabaseRepository] Migrations failed: Error: corrupted migrations: previously executed migration 1756318797207-AssetMetadataTables is missing
Error: corrupted migrations: previously executed migration 1756318797207-AssetMetadataTables is missing
at #ensureNoMissingMigrations (/usr/src/app/server/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)
at #getState (/usr/src/app/server/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async run (/usr/src/app/server/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)
at async /usr/src/app/server/node_modules/kysely/dist/cjs/kysely.js:569:32
at async DefaultConnectionProvider.provideConnection (/usr/src/app/server/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)
at async #migrate (/usr/src/app/server/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)
at async DatabaseRepository.runMigrations (/usr/src/app/server/dist/repositories/database.repository.js:325:36)
at async /usr/src/app/server/dist/services/database.service.js:110:17
at async /usr/src/app/server/dist/repositories/database.repository.js:379:27
This Immich instance is currently unusable. It had been running smoothly on a Raspi 4B for over 6 months.
An hour ago I tried to upload more then 100 new images. More the 90% got an error in the UI (is there some a logfile for?)
The Immich server continuously restarts (approx. every 30 seconds) until this log entry:
2025-09-01T15:27:08.190037239Z [Nest] 18 - 09/01/2025, 5:27:08 PM LOG [Api:Bootstrap] Immich Server is listening on http://[::1]:2283 [v1.140.1] [production].
When I try to downgrade to 1.138.1, I get the error message:
[Nest] 7 - 09/01/2025, 6:25:04 PM ERROR [Microservices:DatabaseRepository] Migrations failed: Error: corrupted migrations: previously executed migration 1756318797207-AssetMetadataTables is missing
Error: corrupted migrations: previously executed migration 1756318797207-AssetMetadataTables is missing
at #ensureNoMissingMigrations (/usr/src/app/server/node_modules/kysely/dist/cjs/migration/migrator.js:487:23)
at #getState (/usr/src/app/server/node_modules/kysely/dist/cjs/migration/migrator.js:439:40)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async run (/usr/src/app/server/node_modules/kysely/dist/cjs/migration/migrator.js:409:31)
at async /usr/src/app/server/node_modules/kysely/dist/cjs/kysely.js:569:32
at async DefaultConnectionProvider.provideConnection (/usr/src/app/server/node_modules/kysely/dist/cjs/driver/default-connection-provider.js:12:20)
at async #migrate (/usr/src/app/server/node_modules/kysely/dist/cjs/migration/migrator.js:268:20)
at async DatabaseRepository.runMigrations (/usr/src/app/server/dist/repositories/database.repository.js:325:36)
at async /usr/src/app/server/dist/services/database.service.js:110:17
at async /usr/src/app/server/dist/repositories/database.repository.js:379:27
This Immich instance is currently unusable. It had been running smoothly on a Raspi 4B for over 6 months.