Failed to search smart ApiException: 500 Internal Server Error
My setup: Running Immich as an LXC container on proxmox using community script. On a mini pc with an i3, integrated gpu. I was able to setup Immich Remote Machine Learning to use my home PC's NVIDIA GPU for ML. So i have gone to admin settings on immich, added 2 url's in Machine Learning tab- 1st is my pc_ip:3003, 2nd is the default immich-machine-learning:3003. The problem does NOT take place when the home PC is on and all devices work fine with smart search. But when i switch off my PC, smart search doesnt work. So the problem ONLY happens when using the server solo. Logs after search error are in the image attached
Since the setup was done via proxmox helper scripts, I dont think there's a docker compose yaml file for immich. Which makes it confusing for me since all the queries online are resolved by going to the compose file. I added /dev/dri/card0 and renderD128 via proxmox GUI- add device passthrough
Here's the LXC conf file:
arch: amd64
console: 0
cores: 4
dev0: /dev/dri/card0
dev1: /dev/dri/renderD128
features: keyctl=1,nesting=1
hostname: immich
memory: 6144
mp0: /mnt/usbdrive,mp=/mnt/usbdrive
net0: name=eth0,bridge=vmbr0,hwaddr=BC:24:11:7D:59:58,ip=dhcp,type=veth
onboot: 1
ostype: debian
protection: 0
rootfs: crucial_nvme:100/vm-100-disk-0.raw,size=300G
swap: 512
tags: community-script;photos
unprivileged: 1
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
.env
MMICH_VERSION=release
NODE_ENV=production
DB_HOSTNAME=127.0.0.1
DB_USERNAME=immich
DB_PASSWORD=Ol4WWp7kCm2hv1IgGf
DB_DATABASE_NAME=immich
DB_VECTOR_EXTENSION=vectorchord
REDIS_HOSTNAME=127.0.0.1
IMMICH_MACHINE_LEARNING_URL=http://127.0.0.1:3003
MACHINE_LEARNING_CACHE_FOLDER=/opt/immich/cache
- For OpenVINO only - uncomment below to increase
- inference speed while reducing accuracy
- Default is FP32
MACHINE_LEARNING_OPENVINO_PRECISION=FP16
IMMICH_MEDIA_LOCATION=/opt/immich/upload

6 Replies
:wave: Hey @saarthak,
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
Checklist
I have...
1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
2. :ballot_box_with_check: read applicable release notes.
3. :ballot_box_with_check: reviewed the FAQs for known issues.
4. :ballot_box_with_check: reviewed Github for known issues.
5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
6. :ballot_box_with_check: uploaded the relevant information (see below).
7. :ballot_box_with_check: 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.
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:I have tried removing my homepc_ip from immich ML settings, thinking that maybe it only looks for the first IP and gives uip. ran it solo with the server-ip in the immich ML settings but it gave the same results.
I’ve seen similar issues from others running the community script. We explicitly only support docker installs, which this is not
So we would recommend switching to a supported install, or reach out to the script team for help
Oh, that's unfortunate. I've already fully shifted to this Immich LXC though so I'm a bit hesitant to change my setup. Is there an easy way to do this?
No, there isn’t, because their deployment doesn’t align with our filesystem layout
I understand, thanks for your replies. If you seem to have any idea why it may be that way, please let me know. Because it works well when the remote ML GPU is on.
When I was trying to add the remote GPU, I had accidentally removed the /dev/dri/card0 and render128 from the conf files by adding a #. But immich search worked fine when the pc was on so I didn't notice. I noticed today when the pc wasn't on, so I reconnected the passthrough that I earlier uncommented. Still didn't work tho.