Immich - Install error (Nodejs issues?)

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.71
What app is this about: Immich

Describe your issue

When trying to install Immich app, I’m givin an “unable to install” error. The install begins just fine - however around the time nodejs tries to install (along with postgres) I’m thrown an error and the install abandons. I did some digging around on Github and found this (npm issue during latest upgrade when building web · Issue #185 · YunoHost-Apps/immich_ynh · GitHub) but I can’t seem to figure it out.

Sorry if this is vague - I am not really much of a developer so Im a bit hamstrung here. Let me know if you need more info!

Thanks

Share relevant logs or error messages

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

humm there is some weird icon in your log…
The issue is not linked to node as i see
Could you post the result of sudo --login --user=postgres PGUSER=postgres PGPASSWORD=$(cat /etc/yunohost/psql) psql '--command=\conninfo' ?

Hi ewilly!

Thanks for the reply. Sorry for my delayed response - busy days :slight_smile:

Heres the output you requested:

You are connected to database “postgres” as user “postgres” via socket in “/var/run/postgresql” at port “5432”.

ok and now : sudo --login --user=postgres PGUSER=postgres PGPASSWORD=$(cat /etc/yunohost/psql) psql '--command=\conninfo' | awk -F '"' '{ print $(NF-1) }'

That line returns:

awk: cmd. line:1: (FILENAME=- FNR=1) fatal: attempt to access field -1

Out of curiosity, for my own knowledge, what are we checking here? :slight_smile:

Thanks for your help thus far!

if you look at your log you will see:
2025-04-03 07:36:42,076: DEBUG - ++ sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql --cluster=16/main '' '--command=\conninfo'
2025-04-03 07:36:42,096: WARNING - awk: cmd. line:1: (FILENAME=- FNR=1) fatal: attempt to access field -1
which is what we reproduce with the comand i gave you

can you try now: sudo --login --user=postgres PGUSER=postgres PGPASSWORD=$(cat /etc/yunohost/psql) psql '--command=\conninfo' | awk -F '“' '{ print $(NF-1) }'

That appears to be returning the same error as above:

awk: cmd. line:1: (FILENAME=- FNR=1) fatal: attempt to access field -1

I’m sorry I can’t provide more input on this. I’ve tried doing some research for this particular issue but only get other threads for different issues and can’t piece this one together.

Is my DB corrupt?

No risk for your db.
That’s not normal that the awk command produce that error. It could be due to the way you install yunohost apprently thanks to GitHub - community-scripts/ProxmoxVE: Proxmox VE Helper-Scripts (Community Edition) which is not, a far i know, a recommended way.
I tried something new to avoid using awk could you try to reinstall and report here ?

Do you mean to reinstall Yunohost? That would be a significant undertaking as Im relying on other services.

I can - but it will take some time to reconfigure.

I think he talked about trying again to install immich :slight_smile:

1 Like