What type of hardware are you using: Virtual machine What YunoHost version are you running: 12.1.27 How are you able to access your server: The webadmin
SSH
Direct access via physical keyboard/screen Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: i tried to reinstall immich
Describe your issue
Some weeks ago during an update my immich installation broke - the backup didn’t work so tried to reinstall the app and ran into several issues. The language and the format weren’t correct etc. So I tried to repair it with help from the internet by removing legacy parts off installed postgres-installation which hat no dependencies
I followed also this thread as well:
Now I’m still not able to reinstall my immich instance as well my paperless server is not reachable anymore.
If I can provide specific logs or terminal output I’m very greatful for your help
Thanks in advance
*database name may be different: see the output of step 2
You may now have to change paperless_ngx user password:
sudo -u postgres psql -p 5432 -d paperless* -c "ALTER USER paperless_ngx WITH PASSWORD '<password set in /etc/yunohost/apps/paperless_ngx/settings.yml:db_password';"
running the commant shows that postgres 16/17 are installed as well, the output is:
Ver Cluster Port Status Owner Data directory Log file
15 main 5499 online postgres /var/lib/postgresql/15/main /var/log/postgresql/postresql-15-main.log
16 main 5498 online postgres /var/lib/postgresql/16/main /var/log/postgresql/postresql-16-main.log
17 main 5432 online postgres /var/lib/postgresql/17/main /var/log/postgresql/postresql-17-main.log
So if I run the second step I get an output but only after switching to root with su, with sudo I get an error.
Two questions remain for me:
how do I change the port?
My sorting and my typset is set to de_DE.UTF-8 what got me in trouble in the first place - should I switch it to en and how do I do that?
Check if there is an existing paperless database on one of the three psql versions installed.
NB: Before changing port, check which databases are available on each version of psql. Changing port will break apps if you can’t update this param in their settings.
Thank you for your help - while paperless is running again after restarting postgresql the version 16 is shown as down.
Also the installation-script for immich is failing - it seems the postgresql 16 installation is somewhat broken … https://paste.yunohost.org/raw/uyiwicisuj
Any idea how to continue?
In the logs I saw that immich is forcing a reinstall of postgresql-16 as well and then aborts because there is no response from the set port.
How can I fix that - or is this an upstream (immich) problem?
Thanks man for your patients and your support. But after running your commands it still not working - now I do have a folder in postgresql/ → 16 but this folder is empty ???
Thanks @otm33 it worked out everything. I marked the solution.
The problem were the following:
wrong port in first place for postgresql-15
the other postgresql instances were somewhat broken/not correctly installed by the application with the marked solution it is possible to fix the postgresql installation, afterwards it is nessesary to restart. If the expected port durring an installation differs from the actuall port you can change the port with the commands from the linked thread.