Immich installation fails - postgres issue

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.0.17
What app is this about: Immich

Describe your issue

I’m trying to install Immich, which I had installed before, I uninstalled it and I’m trying to install it again, and an error shows up, then the installation is aborted.

“sed: can’t read /etc/postgresql-common/user_clusters: No such file or directory
Unable to install immich: An error occurred inside the app installation script”

Share relevant logs or error messages

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

Hi @Pinipon
Most of the time new installation fails because some folders of previous installation are still present (eg /home/yunohost.app/immich)
EDIT: postgresql issue…

yes, it seems to be a postgresql issue, I couldn’t find a solution yet

Hum that’s strange because postgresl-15 seems already installed on your system but not anymore postgresql-client-common which should be a dependency and is the package providing the missing file.
Could you try to install postgresql-client-common and retry the immich install ?

Is there a /etc/postgresql-common/user_clusters.bak ? I guess you have already checked pg_lsclusters.
And what about manually recreating /etc/postgresql-common/user_clusters before trying reinstall ?

postgresql-client-common was installed as well.

I ended up creating a generic (* * * * *) /etc/postgresql-common/user_clusters file, probably not the best solution but it’s working at least.

I found a user_clusters.bak afterwards, not sure if it’s the original or not, because the main file is different now (* * 15 main postgres).

that’s ok, just rename it

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.