I recently updated my Immich stack and saw that the immich_server container continuously is restarting.. Looking at the logs I see this error message:
api worker exited with code 1
Detected CPU Cores: 24
Starting api worker
[Nest] 17 - 10/07/2024, 10:44:22 PM LOG [Api:EventRepository] Initialized websocket server
Migration "AddThumbnailJobStatus1724080823160" failed, error: could not read block 35 in file "base/16384/17156": read only 0 of 8192 bytes
QueryFailedError: could not read block 35 in file "base/16384/17156": read only 0 of 8192 bytes
at PostgresQueryRunner.query (/usr/src/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async AddThumbnailJobStatus1724080823160.up (/usr/src/app/dist/migrations/1724080823160-AddThumbnailJobStatus.js:9:9)
at async MigrationExecutor.executePendingMigrations (/usr/src/app/node_modules/typeorm/migration/MigrationExecutor.js:225:17)
at async DataSource.runMigrations (/usr/src/app/node_modules/typeorm/data-source/DataSource.js:265:35)
at async DatabaseRepository.runMigrations (/usr/src/app/dist/repositories/database.repository.js:191:9)
at async /usr/src/app/dist/services/database.service.js:95:17
at async /usr/src/app/dist/repositories/database.repository.js:199:23 {
query: 'UPDATE "asset_job_status" SET "previewAt" = NOW() FROM "assets" WHERE "assetId" = "assets"."id" AND "assets"."previewPath" IS NOT NULL',
parameters: undefined,
driverError: error: could not read block 35 in file "base/16384/17156": read only 0 of 8192 bytes
at /usr/src/app/node_modules/pg/lib/client.js:535:17
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async PostgresQueryRunner.query (/usr/src/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25)
at async AddThumbnailJobStatus1724080823160.up (/usr/src/app/dist/migrations/1724080823160-AddThumbnailJobStatus.js:9:9)
at async MigrationExecutor.executePendingMigrations (/usr/src/app/node_modules/typeorm/migration/MigrationExecutor.js:225:17)
at async DataSource.runMigrations (/usr/src/app/node_modules/typeorm/data-source/DataSource.js:265:35)
at async DatabaseRepository.runMigrations (/usr/src/app/dist/repositories/database.repository.js:191:9)
at async /usr/src/app/dist/services/database.service.js:95:17
at async /usr/src/app/dist/repositories/database.repository.js:199:23 {
length: 124,
severity: 'ERROR',
code: 'XX001',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'md.c',
line: '685',
routine: 'mdread'
},
length: 124,
severity: 'ERROR',
code: 'XX001',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'md.c',
line: '685',
routine: 'mdread'
}
api worker exited with code 1
Everything worked fine on the last version and I checked the up-to-date docker-compose.yml and everything is correct on mine. Was hoping this is just something I overlooked on the update or a common issue but I couldn't see anything related in my search. I'll include my docker-compose and .env below, any help is appreciated, thanks!
.