I
Immich4mo ago
Sentry

Bad Character with ascii 0x2d

Using Immich on docker v1.125.2 Recently decided to use my PC with a GPU to do machine learning remotely. When attempting to search the library, I get the following error in the UI: "Failed to Smart Search..."
name: immich_remote_ml

services:
immich-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}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-cuda
extends:
file: hwaccel.ml.yml
service: cuda # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
restart: always
ports:
- 3003:3003

volumes:
model-cache:
name: immich_remote_ml

services:
immich-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}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-cuda
extends:
file: hwaccel.ml.yml
service: cuda # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
restart: always
ports:
- 3003:3003

volumes:
model-cache:
I'm trying to determine the best path forward to troubleshooting this, any recommendations? Note I turned off the local machine learning to troubleshoot further but will turn it back on once resolved.
9 Replies
Immich
Immich4mo ago
:wave: Hey @Sentry, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA
Immich
Immich4mo ago
Checklist I have... 1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time). 2. :blue_square: read applicable release notes. 3. :blue_square: reviewed the FAQs for known issues. 4. :blue_square: reviewed Github for known issues. 5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
GitHub
immich-app immich · Discussions
Explore the GitHub Discussions forum for immich-app immich. Discuss code, ask questions & collaborate with the developer community.
GitHub
Issues · immich-app/immich
High performance self-hosted photo and video management solution. - Issues · immich-app/immich
sogan
sogan4mo ago
Is the local server and remote ML container on the same version? There was a change in this release so they both have to be on 1.125.* for it to work
yowfung
yowfung3mo ago
I have a similar problem, I checked through the log that it is due to "PostgresError: could not open file "base/80522/91142_vm": Permission denied", but I don't know how to solve this problem.
yowfung
yowfung3mo ago
postgres log:
2025-01-31 19:27:15.648 CST [1] LOG: database system is ready to accept connections
[2025-01-31T11:27:35Z INFO service::utils::clean] Find directory "pg_vectors/indexes/319490/segments/bf2f6b48-5a40-4ef8-a113-8b441a9f3a94".
2025-01-31 19:28:08.149 CST [45] ERROR: pgvecto.rs: Bad literal.
INFORMATION: hint = Bad character with ascii 0x30.
2025-01-31 19:28:08.149 CST [45] CONTEXT: unnamed portal parameter $4 = '...'
2025-01-31 19:28:08.149 CST [45] STATEMENT: select "assets".*, to_json("exif") as "exifInfo" from "assets" inner join "exif" on "assets"."id" = "exif"."assetId" inner join "smart_search" on "assets"."id" = "smart_search"."assetId" where "assets"."ownerId" = any($1::uuid[]) and "assets"."isVisible" = $2 and "assets"."isArchived" = $3 and "assets"."deletedAt" is null order by smart_search.embedding <=> $4 limit $5 offset $6

2025-01-31 19:33:07.334 CST [42] LOG: using stale statistics instead of current ones because stats collector is not responding
2025-01-31 19:27:15.648 CST [1] LOG: database system is ready to accept connections
[2025-01-31T11:27:35Z INFO service::utils::clean] Find directory "pg_vectors/indexes/319490/segments/bf2f6b48-5a40-4ef8-a113-8b441a9f3a94".
2025-01-31 19:28:08.149 CST [45] ERROR: pgvecto.rs: Bad literal.
INFORMATION: hint = Bad character with ascii 0x30.
2025-01-31 19:28:08.149 CST [45] CONTEXT: unnamed portal parameter $4 = '...'
2025-01-31 19:28:08.149 CST [45] STATEMENT: select "assets".*, to_json("exif") as "exifInfo" from "assets" inner join "exif" on "assets"."id" = "exif"."assetId" inner join "smart_search" on "assets"."id" = "smart_search"."assetId" where "assets"."ownerId" = any($1::uuid[]) and "assets"."isVisible" = $2 and "assets"."isArchived" = $3 and "assets"."deletedAt" is null order by smart_search.embedding <=> $4 limit $5 offset $6

2025-01-31 19:33:07.334 CST [42] LOG: using stale statistics instead of current ones because stats collector is not responding
I checked the file permissions in the postgres container and it is normal.
root@bd2ad288ca6d:/var/lib/postgresql/data/base/80522# ls -alh | grep 91142_vm
-rw-r--r-- 1 postgres root 8.0K Jan 31 19:08 91142_vm
root@bd2ad288ca6d:/var/lib/postgresql/data/base/80522# ls -alh | grep 91142_vm
-rw-r--r-- 1 postgres root 8.0K Jan 31 19:08 91142_vm
Alex Tran
Alex Tran3mo ago
Have you pull the latest version for your ml container?
yowfung
yowfung3mo ago
Yes
Alex Tran
Alex Tran3mo ago
Can you post the screenshot of your ml settings, and the docker-compose file, .env you used for the remote machine learning?

Did you find this page helpful?