this post was submitted on 21 Feb 2024
122 points (97.7% liked)

Selfhosted

40313 readers
243 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Tywele@lemmy.dbzer0.com 3 points 9 months ago* (last edited 9 months ago)

I'm using the Immich app from TrueNAS, how do I properly update it? Or is it being taken care off by TrueNAS?

Edit: I asked on the TrueNAS discord for help and someone who already updated their Immich figured out how to fix the installation afterwards. I copy&paste the guide here:

This guide assumes that Heavyscript is installed and pgAdmin.
https://github.com/Heavybullets8/heavy_script
https://truecharts.org/charts/stable/pgadmin/

  • Upgrade Immich to v.1.95.1.

  • If Immich fails to deploy check the logs heavyscript pod --logs immich. If the logs complain that indexes need to be deleted continue with this guide.

  • Access the shell for the postgres pod heavyscript pod -s immich.

  • Select the postgres pod.

  • Inside the pod run env and record the password. Then type exit to exit the pod.

  • Get the DNS address and port for Immich postgres pod. heavyscript dns -a

  • Launch pgAdmin and right-click on Servers select Register > Server.

  • In the Connection tab put the hostname and port from step 6. The username is immich and use the password from step 3.

  • Once connected create a backup by expanding Servers > Immich > Databases and right-click on immich then select Backup.... Follow the prompts to create a backup.

  • Right-click on immich and select Query Tool.

  • Use the following query to delete your indexes.

    FROM pg_index X JOIN
         pg_class I ON I.oid = X.indexrelid JOIN
         pg_am A ON A.oid = I.relam
    WHERE A.amname = 'vectors';
  • Stop Immich with heavyscript heavyscript app --stop immich.

  • Once all pods have scaled down start Immich heavyscript app --start immich.

The SQL query will complain about a syntax error but it will work regardless. It just takes some time to redeploy immich.

Credit goes to @verbalsiegeengine on Discord