Can't install Immich

What type of hardware are you using: Other(?)
What YunoHost version are you running: 12.0.16
What app is this about: Immich

Describe your issue

Hardware: Lenovo ThinkServer TS140 - 4 x Intel(R) Xeon(R) CPU E3-1225 v3 – 2 Cores - 4GB RAM
YunoHost version: Latest LXC container
I have access to my server: SSH & Web Admin

Hi, I have tried multiple times to install the app, but it fails everytime. Does anyone have any ideas how I can get this working?

Please see the log below.

Share relevant logs or error messages

https://paste.yunohost.org/raw/asalukezug

Did you install your LXC with GitHub - community-scripts/ProxmoxVE: Proxmox VE Helper-Scripts (Community Edition) ?

Yes, I did.

That’s the problem…
Starting with a fresh install with a debian LXC and following the yunohost doc to install is certainly the best thing to do.
See Immich - Install error (Nodejs issues?) - #11 by Diffusion2

Ah, okay, thank you. So installing YuNoHost on the Proxmox VE Debian LXC on Proxmox VE Helper-Scripts would work?

That’s not suuported by yunohost, you need to avoid it. Install a pure Debian LXC and then follow the official yunohost installation documentation.

2025-05-05 20:44:36,622: DEBUG - + _ynh_replace_vars /var/www/immich/env
2025-05-05 20:44:36,623: DEBUG - + local file=/var/www/immich/env
2025-05-05 20:44:36,623: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/immich/env
2025-05-05 20:44:36,624: DEBUG - ++ sort --unique
2025-05-05 20:44:36,624: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2025-05-05 20:44:36,626: DEBUG - + uniques_vars=('app' 'data_dir' 'db_port' 'db_pwd' 'install_dir' 'port' 'port_machinelearning')
2025-05-05 20:44:36,632: WARNING - sed: -e expression #1, char 14: unterminated `s' command
2025-05-05 20:44:37,249: ERROR - Unable to install immich: An error occurred inside the app installation script

hmmm considering the error message (syntax issue in sed) that would typically be symptomatic of something like a password with special char being replaced in a template … but the variables listed ('app' 'data_dir' 'db_port' 'db_pwd' 'install_dir' 'port' 'port_machinelearning') are all pretty regular / straightforward stuff so I don’t get it …

Though indeed in the post pointed by @ewilly the issue is like exactly the same … super weird … maybe the system has a special version of sed or something idk