immich server crashing sometimes on restart with postgres/pgvecto.rs error #16053
Unanswered
electric3055
asked this question in
Q&A
Replies: 1 comment
-
Try updating your pgvecto.rs version to 0.3.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The bug
Sometimes when starting immich, the immich-server container fails with the following error. It seems that if I retry restarting multiple times it eventually succeeds.
2025-02-12 10:05:40 QueryFailedError: pgvecto.rs: IPC connection is closed unexpected.
2025-02-12 10:05:40 ADVICE: The error is raisen by background worker errors. Please check the full PostgreSQL log to get more information. Please read
https://docs.pgvecto.rs/admin/configuration.html
.2025-02-12 10:05:40 at PostgresQueryRunner.query (/usr/src/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)
2025-02-12 10:05:40 at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-02-12 10:05:40 at async DataSource.query (/usr/src/app/node_modules/typeorm/data-source/DataSource.js:350:20)
2025-02-12 10:05:40 at async DatabaseRepository.shouldReindex (/usr/src/app/dist/repositories/database.repository.js:150:25)
2025-02-12 10:05:40 at async DatabaseService.checkReindexing (/usr/src/app/dist/services/database.service.js:145:17)
2025-02-12 10:05:40 at async /usr/src/app/dist/services/database.service.js:93:13
2025-02-12 10:05:40 at async /usr/src/app/dist/repositories/database.repository.js:211:23 {
2025-02-12 10:05:40 query: 'SELECT idx_status FROM pg_vector_index_stat WHERE indexname = $1',
2025-02-12 10:05:40 parameters: [ 'clip_index' ],
2025-02-12 10:05:40 driverError: error: pgvecto.rs: IPC connection is closed unexpected.
2025-02-12 10:05:40 ADVICE: The error is raisen by background worker errors. Please check the full PostgreSQL log to get more information. Please read
https://docs.pgvecto.rs/admin/configuration.html
.2025-02-12 10:05:40 at /usr/src/app/node_modules/pg/lib/client.js:535:17
2025-02-12 10:05:40 at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-02-12 10:05:40 at async PostgresQueryRunner.query (/usr/src/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25)
2025-02-12 10:05:40 at async DataSource.query (/usr/src/app/node_modules/typeorm/data-source/DataSource.js:350:20)
2025-02-12 10:05:40 at async DatabaseRepository.shouldReindex (/usr/src/app/dist/repositories/database.repository.js:150:25)
2025-02-12 10:05:40 at async DatabaseService.checkReindexing (/usr/src/app/dist/services/database.service.js:145:17)
2025-02-12 10:05:40 at async /usr/src/app/dist/services/database.service.js:93:13
2025-02-12 10:05:40 at async /usr/src/app/dist/repositories/database.repository.js:211:23 {
2025-02-12 10:05:40 length: 272,
2025-02-12 10:05:40 severity: 'ERROR',
2025-02-12 10:05:40 code: 'XX000',
2025-02-12 10:05:40 detail: undefined,
2025-02-12 10:05:40 hint: undefined,
2025-02-12 10:05:40 position: undefined,
2025-02-12 10:05:40 internalPosition: undefined,
2025-02-12 10:05:40 internalQuery: undefined,
2025-02-12 10:05:40 where: undefined,
2025-02-12 10:05:40 schema: undefined,
2025-02-12 10:05:40 table: undefined,
2025-02-12 10:05:40 column: undefined,
2025-02-12 10:05:40 dataType: undefined,
2025-02-12 10:05:40 constraint: undefined,
2025-02-12 10:05:40 file: 'error.rs',
2025-02-12 10:05:40 line: '7',
2025-02-12 10:05:40 routine: undefined
2025-02-12 10:05:40 },
2025-02-12 10:05:40 length: 272,
2025-02-12 10:05:40 severity: 'ERROR',
2025-02-12 10:05:40 code: 'XX000',
2025-02-12 10:05:40 detail: undefined,
2025-02-12 10:05:40 hint: undefined,
2025-02-12 10:05:40 position: undefined,
2025-02-12 10:05:40 internalPosition: undefined,
2025-02-12 10:05:40 internalQuery: undefined,
2025-02-12 10:05:40 where: undefined,
2025-02-12 10:05:40 schema: undefined,
2025-02-12 10:05:40 table: undefined,
2025-02-12 10:05:40 column: undefined,
2025-02-12 10:05:40 dataType: undefined,
2025-02-12 10:05:40 constraint: undefined,
2025-02-12 10:05:40 file: 'error.rs',
2025-02-12 10:05:40 line: '7',
2025-02-12 10:05:40 routine: undefined
2025-02-12 10:05:40 }
2025-02-12 10:05:40 microservices worker error: QueryFailedError: pgvecto.rs: IPC connection is closed unexpected.
2025-02-12 10:05:40 ADVICE: The error is raisen by background worker errors. Please check the full PostgreSQL log to get more information. Please read
https://docs.pgvecto.rs/admin/configuration.html
., stack: QueryFailedError: pgvecto.rs: IPC connection is closed unexpected.2025-02-12 10:05:40 ADVICE: The error is raisen by background worker errors. Please check the full PostgreSQL log to get more information. Please read
https://docs.pgvecto.rs/admin/configuration.html
.2025-02-12 10:05:40 at PostgresQueryRunner.query (/usr/src/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)
2025-02-12 10:05:40 at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-02-12 10:05:40 at async DataSource.query (/usr/src/app/node_modules/typeorm/data-source/DataSource.js:350:20)
2025-02-12 10:05:40 at async DatabaseRepository.shouldReindex (/usr/src/app/dist/repositories/database.repository.js:150:25)
2025-02-12 10:05:40 at async DatabaseService.checkReindexing (/usr/src/app/dist/services/database.service.js:145:17)
2025-02-12 10:05:40 at async /usr/src/app/dist/services/database.service.js:93:13
2025-02-12 10:05:40 at async /usr/src/app/dist/repositories/database.repository.js:211:23
2025-02-12 10:05:40 microservices worker exited with code 1
2025-02-12 10:05:40 Killing api process
The OS that Immich Server is running on
Windows 10
Version of Immich Server
v1.125.7
Version of Immich Mobile App
N/A
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
...
Relevant log output
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions