You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My search is not working and I can see this error in the log:
immich_server | at async /usr/src/app/dist/repositories/search.repository.js:108:23
immich_server | at async EntityManager.transaction (/usr/src/app/node_modules/typeorm/entity-manager/EntityManager.js:73:28)
immich_server | at async SearchRepository.searchSmart (/usr/src/app/dist/repositories/search.repository.js:92:9)] QueryFailedError: pgvecto.rs: The given vector is invalid for input.
immich_server | ADVICE: Check if dimensions and scalar type of the vector is matched with the index.
When I run the smart search job I see a lot of errors like this:
immich_microservices | [Nest] 8 - 05/02/2024, 11:04:00 AM ERROR [JobService] Unable to run job handler (smartSearch/smart-search): QueryFailedError: pgvecto.rs: The given vector is invalid for input.
immich_microservices | ADVICE: Check if dimensions and scalar type of the vector is matched with the index.
immich_microservices | [Nest] 8 - 05/02/2024, 11:04:00 AM ERROR [JobService] QueryFailedError: pgvecto.rs: The given vector is invalid for input.
immich_microservices | ADVICE: Check if dimensions and scalar type of the vector is matched with the index.
immich_microservices | at PostgresQueryRunner.query (/usr/src/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)
immich_microservices | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Smart search job makes my GPU work well as you can see in the attached picture
Machine learning clip model is set to: ViT-B-32__openai
Database has vectors as you can see in the attached picture
Server version: v1.103.1
My docker compose is pretty standard:
Error when search:
The OS that Immich Server is running on
Ubuntu 22.04
Version of Immich Server
v1.103.1
Version of Immich Mobile App
v1.103.1
Platform with the issue
Server
Web
Mobile
Your docker-compose.yml content
name: immichservices:
immich-server:
container_name: immich_serverimage: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}command: ['start.sh', 'immich']volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- ${LIBRARY_LOCATION}:/usr/src/app/upload/library
- /etc/localtime:/etc/localtime:roenv_file:
- .envports:
- 2283:3001depends_on:
- redis
- databaserestart: alwaysimmich-microservices:
container_name: immich_microservicesimage: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/hardware-transcodingfile: hwaccel.transcoding.ymlservice: quicksync # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcodingcommand: ['start.sh', 'microservices']volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- ${LIBRARY_LOCATION}:/usr/src/app/upload/library
- /etc/localtime:/etc/localtime:roenv_file:
- .envdepends_on:
- redis
- databaserestart: alwaysimmich-machine-learning:
container_name: immich_machine_learning# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.# Example tag: ${IMMICH_VERSION:-release}-cudaimage: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-accelerationfile: hwaccel.ml.ymlservice: openvino # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicablevolumes:
- ./volumes/model-cache:/cacheenv_file:
- .envrestart: alwaysredis:
container_name: immich_redisimage: registry.hub.docker.com/library/redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672restart: alwaysdatabase:
container_name: immich_postgresimage: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}POSTGRES_USER: ${DB_USERNAME}POSTGRES_DB: ${DB_DATABASE_NAME}volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/datarestart: always
Your .env content
########## PATH SETTINGS####################
UPLOAD_LOCATION=/mnt/nas/program_files/immich/
LIBRARY_LOCATION=/mnt/nas/midia/images/immich/
####### DB SETTINGS ########
DB_PASSWORD=[REMOVED FOR PRIVACY]
DB_HOSTNAME=immich_postgres
DB_USERNAME=immich
DB_DATABASE_NAME=immichdb
DB_DATA_LOCATION=./postgres
## The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release
REDIS_HOSTNAME=immich_redis
Reproduction steps
1.Open the search
2.Type something
3.Server error message
...
Relevant log output
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
The bug
Hello,
Smart search job makes my GPU work well as you can see in the attached picture
Machine learning clip model is set to: ViT-B-32__openai
Database has vectors as you can see in the attached picture
Server version: v1.103.1
My docker compose is pretty standard:
Error when search:
The OS that Immich Server is running on
Ubuntu 22.04
Version of Immich Server
v1.103.1
Version of Immich Mobile App
v1.103.1
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: