-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Immich updates but does not startΒ #13417
Description
β Have you read and understood the above guidelines?
yes
π Did you run the script with verbose mode enabled?
Yes, verbose mode was enabled and the output is included below
π What is the name of the script you are using?
immich.sh
π What was the exact command used to execute the script?
update
βοΈ What settings are you using?
- Default Settings
- Advanced Settings
π₯οΈ Which Linux distribution are you using?
Debian 13
π Which Proxmox version are you on?
pve-manager/9.1.6/71482d1833ded40a (running kernel: 6.17.4-1-pve)
π Provide a clear and concise description of the issue.
I am not an expert on this. I tried to some things with the help of Claude. I also do not know if it is for my installation only, but i thought I report it anyway. Please dismiss the issues if applicable. Thank you.
Issue:
After running update in the Immich LXC console, both immich-web and immich-ml services fail to start. The root cause seems to be that the ml-venv Python virtual environment is not created during the update because the sudo --preserve-env invocation in update_script() fails silently with Invalid argument on this LXC setup.
π Steps to reproduce the issue.
- Install Immich using the community-scripts helper
- Run update in the LXC console
- Update reports success
- Immich is unreachable β 502 Bad Gateway
- systemctl status immich-ml shows exit-code failure
- Running
bash /opt/immich/app/machine-learning/ml_start.shreveals:/opt/immich/app/machine-learning/ml-venv/bin/activate: No such file or directory
β Paste the full error output (if available).
sudo: unable to set runas group vector: Invalid argument
sudo: uv: Invalid argument
/opt/immich/app/machine-learning/ml_start.sh: line 4:
/opt/immich/app/machine-learning/ml-venv/bin/activate: No such file or directory
ModuleNotFoundError: No module named 'gunicorn'
πΌοΈ Additional context (optional).
Manually recreate the venv after a failed update:
bashcd /opt/immich/source/machine-learning
su -s /bin/bash immich -c "VIRTUAL_ENV=/opt/immich/app/machine-learning/ml-venv uv sync --extra cpu --active -n -p python3.11 --managed-python"
systemctl reset-failed immich-ml && systemctl start immich-mlPossible fix:
Fall back to su -s /bin/bash immich -c "..." if the sudo --preserve-env invocation fails, or add error checking so the update does not report success when the venv creation step fails.