[immich] update fails cannot stat '/opt/immich/app/machine-learning/ml_start.sh #1305

Closed
opened 2025-11-20 05:07:56 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @gericho on GitHub (Jun 20, 2025).

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 'update' cmd

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

"update" in LXC shell

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

📝 Provide a clear and concise description of the issue.

Hi, unfortunately I had a network disconnection during the update of immich server found here https://community-scripts.github.io/ProxmoxVE/scripts?id=immich, and at the second try I get the error

🔄 Steps to reproduce the issue.

just update immich LXC

Paste the full error output (if available).

✔️ Stopped immich
cp: cannot stat '/opt/immich/app/machine-learning/ml_start.sh': No such file or directory

[ERROR] in line 219: exit code 0: while executing command cp "$ML_DIR"/ml_start.sh "$INSTALL_DIR"

root@immich:~# `

🖼️ Additional context (optional).

No response

Originally created by @gericho on GitHub (Jun 20, 2025). 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 'update' cmd ### 📂 What was the exact command used to execute the script? "update" in LXC shell ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 📝 Provide a clear and concise description of the issue. Hi, unfortunately I had a network disconnection during the update of immich server found here [https://community-scripts.github.io/ProxmoxVE/scripts?id=immich](url), and at the second try I get the error ### 🔄 Steps to reproduce the issue. just update immich LXC ### ❌ Paste the full error output (if available). ✔️ Stopped immich cp: cannot stat '/opt/immich/app/machine-learning/ml_start.sh': No such file or directory [ERROR] in line 219: exit code 0: while executing command cp "$ML_DIR"/ml_start.sh "$INSTALL_DIR" root@immich:~# ` ### 🖼️ Additional context (optional). _No response_
saavagebueno added the not a script issue label 2025-11-20 05:07:56 -05:00
Author
Owner

@MickLesk commented on GitHub (Jun 20, 2025):

@vhsdream

@MickLesk commented on GitHub (Jun 20, 2025): @vhsdream
Author
Owner

@vhsdream commented on GitHub (Jun 20, 2025):

@gericho You had a network issue at what point? And then did you just try running the update again instead of restoring from a snapshot or backup?

That means the update function deleted things and they're no longer there. Restore from a backup and then run the update again in verbose. If it fails again please post the output.

@vhsdream commented on GitHub (Jun 20, 2025): @gericho You had a network issue at what point? And then did you just try running the update again instead of restoring from a snapshot or backup? That means the update function deleted things and they're no longer there. Restore from a backup and then run the update again in verbose. If it fails again please post the output.
Author
Owner

@gericho commented on GitHub (Jun 20, 2025):

Since it was a test environment without a proper backup that had just been installed without a proper backup and only contained a few assets, I simply copied the machine-learning directory using scp from a newly created LXC instance. After that, I completed the update. The issue appears to be resolved, but I’m not sure if I would recommend this approach.

@gericho commented on GitHub (Jun 20, 2025): Since it was a test environment without a proper backup that had just been installed without a proper backup and only contained a few assets, I simply copied the `machine-learning` directory using scp from a newly created LXC instance. After that, I completed the update. The issue appears to be resolved, but I’m not sure if I would recommend this approach.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1305