[GH-ISSUE #5960] Immich LXC fails to install #1267

Closed
opened 2026-02-26 12:48:18 +03:00 by kerem · 6 comments
Owner

Originally created by @BenLaneUK2004 on GitHub (Jul 13, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/5960

Originally assigned to: @vhsdream on GitHub.

Have you read and understood the above guidelines?

Yes

📜 What is the name of the script you are using?

Immich

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/ct/immich.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

I'm trying to setup Immich using the helper script, it gets as far as starting to install machine learning then spits out the below error code. I tried both the GitHub and Gitea commands, both of which result in this error.

🔄 Steps to reproduce the issue.

  1. Paste install command in Proxmox web shell and run
  2. Enter y when prompted Automatically mount all available VAAPI devices? [Y/n]:
  3. Enter y when prompted Install OpenVINO dependencies for Intel HW-accelerated machine-learning? y/N
  4. Wait for the error message

Paste the full error output (if available).

 ✔️   Installed Immich Web Components
Using CPython 3.11.2 interpreter at: /usr/bin/python3
Creating virtual environment at: /opt/immich/app/machine-learning/ml-venv
Activate with: source /opt/immich/app/machine-learning/ml-venv/bin/activate
  ⏳   Installing machine-learning  x Failed to download `tokenizers==0.21.1`
  |-> Failed to write to the distribution cache
  |-> error decoding response body
  |-> request or response body error
  |-> error reading a body from connection
  `-> connection reset
  help: `tokenizers` (v0.21.1) was included because `immich-ml` (v1.129.0) depends on `tokenizers`

[ERROR] in line 321: exit code 0: while executing command uv -q sync --extra cpu --no-cache --active

[ERROR] in line 1233: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/install/"$var_install".sh)" $?

🖼️ Additional context (optional).

No response

Originally created by @BenLaneUK2004 on GitHub (Jul 13, 2025). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/5960 Originally assigned to: @vhsdream on GitHub. ### ✅ Have you read and understood the above guidelines? Yes ### 📜 What is the name of the script you are using? Immich ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/ct/immich.sh)" ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. I'm trying to setup Immich using the helper script, it gets as far as starting to install machine learning then spits out the below error code. I tried both the GitHub and Gitea commands, both of which result in this error. ### 🔄 Steps to reproduce the issue. 1. Paste install command in Proxmox web shell and run 2. Enter `y` when prompted `Automatically mount all available VAAPI devices? [Y/n]:` 3. Enter `y` when prompted `Install OpenVINO dependencies for Intel HW-accelerated machine-learning? y/N` 4. Wait for the error message ### ❌ Paste the full error output (if available). ``` ✔️ Installed Immich Web Components Using CPython 3.11.2 interpreter at: /usr/bin/python3 Creating virtual environment at: /opt/immich/app/machine-learning/ml-venv Activate with: source /opt/immich/app/machine-learning/ml-venv/bin/activate ⏳ Installing machine-learning x Failed to download `tokenizers==0.21.1` |-> Failed to write to the distribution cache |-> error decoding response body |-> request or response body error |-> error reading a body from connection `-> connection reset help: `tokenizers` (v0.21.1) was included because `immich-ml` (v1.129.0) depends on `tokenizers` [ERROR] in line 321: exit code 0: while executing command uv -q sync --extra cpu --no-cache --active [ERROR] in line 1233: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/install/"$var_install".sh)" $? ``` ### 🖼️ Additional context (optional). _No response_
kerem 2026-02-26 12:48:18 +03:00
Author
Owner

@MickLesk commented on GitHub (Jul 14, 2025):

@vhsdream

<!-- gh-comment-id:3067933433 --> @MickLesk commented on GitHub (Jul 14, 2025): @vhsdream
Author
Owner

@vhsdream commented on GitHub (Jul 14, 2025):

@BenLaneUK2004 just to make sure I'm reading this correctly: At the OpenVINO prompt, you selected y? The error indicates that the script failed at the machine-learning installation, but for the CPU version of ML, not the OpenVINO version.

<!-- gh-comment-id:3069161168 --> @vhsdream commented on GitHub (Jul 14, 2025): @BenLaneUK2004 just to make sure I'm reading this correctly: At the OpenVINO prompt, you selected y? The error indicates that the script failed at the machine-learning installation, but for the CPU version of ML, not the OpenVINO version.
Author
Owner

@BenLaneUK2004 commented on GitHub (Jul 14, 2025):

At the OpenVINO prompt, you selected y?

Yes

<!-- gh-comment-id:3069208961 --> @BenLaneUK2004 commented on GitHub (Jul 14, 2025): > At the OpenVINO prompt, you selected y? Yes
Author
Owner

@vhsdream commented on GitHub (Jul 14, 2025):

@BenLaneUK2004 Thank you for confirming.

I'm afraid I can't reproduce this at all. If you still have the LXC, would you mind entering it and running a few commands:

rm -rf /opt/immich/app/machine-learning/*
export VIRTUAL_ENV="/opt/immich/app/machine-learning/ml-venv"
/usr/local/bin/uv venv "$VIRTUAL_ENV"
cd /opt/immich/source/machine-learning
/usr/local/bin/uv sync --extra openvino --no-cache --active

That's going to give a little bit more output for us, and we'll see if it manages to install all the ML deps.

<!-- gh-comment-id:3069319506 --> @vhsdream commented on GitHub (Jul 14, 2025): @BenLaneUK2004 Thank you for confirming. I'm afraid I can't reproduce this at all. If you still have the LXC, would you mind entering it and running a few commands: ``` rm -rf /opt/immich/app/machine-learning/* export VIRTUAL_ENV="/opt/immich/app/machine-learning/ml-venv" /usr/local/bin/uv venv "$VIRTUAL_ENV" cd /opt/immich/source/machine-learning /usr/local/bin/uv sync --extra openvino --no-cache --active ``` That's going to give a little bit more output for us, and we'll see if it manages to install all the ML deps.
Author
Owner

@BenLaneUK2004 commented on GitHub (Jul 14, 2025):

Yeah sure, here is the output:

root@immich:~# rm -rf /opt/immich/app/machine-learning/*
export VIRTUAL_ENV="/opt/immich/app/machine-learning/ml-venv"
/usr/local/bin/uv venv "$VIRTUAL_ENV"
cd /opt/immich/source/machine-learning
/usr/local/bin/uv sync --extra openvino --no-cache --active
Using CPython 3.11.2 interpreter at: /usr/bin/python3
Creating virtual environment at: /opt/immich/app/machine-learning/ml-venv
Activate with: source /opt/immich/app/machine-learning/ml-venv/bin/activate
Resolved 135 packages in 4ms
      Built immich-ml @ file:///opt/immich/source/machine-learning
  x Failed to download and build `insightface==0.7.3`
  |-> Failed to extract archive: insightface==0.7.3
  |-> I/O operation failed during extraction
  |-> failed to unpack `/tmp/.tmpF1q4tW/sdists-v9/.tmpOqGXow/insightface-0.7.3/insightface/data/images/t1.jpg`
  |-> failed to unpack `insightface-0.7.3/insightface/data/images/t1.jpg` into
  |   `/tmp/.tmpF1q4tW/sdists-v9/.tmpOqGXow/insightface-0.7.3/insightface/data/images/t1.jpg`
  |-> error decoding response body
  |-> request or response body error
  |-> error reading a body from connection
  `-> connection reset
  help: `insightface` (v0.7.3) was included because `immich-ml` (v1.129.0) depends on `insightface`
root@immich:/opt/immich/source/machine-learning#
<!-- gh-comment-id:3071355828 --> @BenLaneUK2004 commented on GitHub (Jul 14, 2025): Yeah sure, here is the output: ``` root@immich:~# rm -rf /opt/immich/app/machine-learning/* export VIRTUAL_ENV="/opt/immich/app/machine-learning/ml-venv" /usr/local/bin/uv venv "$VIRTUAL_ENV" cd /opt/immich/source/machine-learning /usr/local/bin/uv sync --extra openvino --no-cache --active Using CPython 3.11.2 interpreter at: /usr/bin/python3 Creating virtual environment at: /opt/immich/app/machine-learning/ml-venv Activate with: source /opt/immich/app/machine-learning/ml-venv/bin/activate Resolved 135 packages in 4ms Built immich-ml @ file:///opt/immich/source/machine-learning x Failed to download and build `insightface==0.7.3` |-> Failed to extract archive: insightface==0.7.3 |-> I/O operation failed during extraction |-> failed to unpack `/tmp/.tmpF1q4tW/sdists-v9/.tmpOqGXow/insightface-0.7.3/insightface/data/images/t1.jpg` |-> failed to unpack `insightface-0.7.3/insightface/data/images/t1.jpg` into | `/tmp/.tmpF1q4tW/sdists-v9/.tmpOqGXow/insightface-0.7.3/insightface/data/images/t1.jpg` |-> error decoding response body |-> request or response body error |-> error reading a body from connection `-> connection reset help: `insightface` (v0.7.3) was included because `immich-ml` (v1.129.0) depends on `insightface` root@immich:/opt/immich/source/machine-learning# ```
Author
Owner

@vhsdream commented on GitHub (Jul 15, 2025):

That looks the same as what originally happened, just with a different package. I should have asked you to add the -v flag to the uv sync so we can see why the download is failing. Run everything from above again and add the verbose if you can, but this seems like a peculiar networking problem on your end, and not an issue with the script itself.

<!-- gh-comment-id:3073605118 --> @vhsdream commented on GitHub (Jul 15, 2025): That looks the same as what originally happened, just with a different package. I should have asked you to add the `-v` flag to the `uv sync` so we can see why the download is failing. Run everything from above again and add the verbose if you can, but this seems like a peculiar networking problem on your end, and not an issue with the script itself.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#1267
No description provided.