Welcome to Incremental Social! Learn more about this project here!
Check out lemmyverse to find more communities to join from here!

@Tywele@lemmy.dbzer0.com cover

Tywele

@Tywele@lemmy.dbzer0.com

🌿 Vegan 🌿

🏳️‍⚧️ She/Her 🏳️‍⚧️

credits:

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Tywele ,

Immich is by far the best and most convenient.

Tywele ,

I was wondering why Ecosia didn't give me any search results yesterday. Well, now I know.

Is Privacy Worth It? (blog.thenewoil.org)

When I announced I would be closing my communities earlier this year, a curious thing happened: a surprising number of regulars replied with some variation of “I think this is my exit.” While some were specifically talking about Matrix, claiming that mine was the only room they were really active in and therefore they saw no...

Tywele ,

Do you have a link to that guide of yours?

Tywele OP ,

If you look inside the file you will see that it's an encrypted file created via ansible-vault

Tywele OP ,

It should be pretty easy to adapt it for Debian. The only thing you need to change as far as I can see is the usage of the dnf module to the apt module.

Tywele OP ,

Thank you! 🙂

Tywele OP ,

The apps service just borked itself and I couldn't get it to properly start anymore. Also deploying apps always took a ridiculously and annoyingly long time (like about 15 minutes to deploy NPM).

Tywele OP ,

I know but I also learned that it's generally better to use the specific module for the package manager (just can't remember why from the top of my head) and I never intended this playbook to be generally usable.

Tywele OP ,

This confuses me because the default docker-compose.yml from Immich doesn't set these environment variables.

Tywele OP , (edited )

I added the REDIS_HOSTNAME and DB_DATA_LOCATION environment variables.
Not sure if I understood it right, but I guess not since it still doesn't work:

Ansible tasks
- name: create Immich network
  community.docker.docker_network:
    name: immich-network
    state: present

- name: deploy Immich-Redis
  community.docker.docker_container:
    name: immich-redis
    image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672
    restart_policy: always
    networks: 
      - name: immich-network
    env:
      DB_DATABASE_NAME: "{{ immich_postgres_db_name }}"
      DB_USERNAME: "{{ immich_postgres_db_user }}"
      DB_PASSWORD: "{{ immich_postgres_db_password }}"
      DB_DATA_LOCATION: "{{ nvme_mount_point }}/immich/postgres"

- name: deploy Immich-Postgres
  community.docker.docker_container:
    name: immich-postgres
    image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    restart_policy: always
    volumes:
      - "{{ nvme_mount_point }}/immich/postgres:/var/lib/postgresql/data"
    env:
      POSTGRES_DB: "{{ immich_postgres_db_name }}"
      POSTGRES_USER: "{{ immich_postgres_db_user }}"
      POSTGRES_PASSWORD: "{{ immich_postgres_db_password }}"
      REDIS_HOSTNAME: immich-redis
    networks: 
      - name: immich-network

- name: deploy Immich-Machine-Learning
  community.docker.docker_container:
    name: immich-machine-learning
    image: ghcr.io/immich-app/immich-machine-learning:release
    restart_policy: always
    volumes:
      - "{{ nvme_mount_point }}/immich/model-cache:/cache"
    networks: 
      - name: immich-network
    env:
      DB_DATABASE_NAME: "{{ immich_postgres_db_name }}"
      DB_USERNAME: "{{ immich_postgres_db_user }}"
      DB_PASSWORD: "{{ immich_postgres_db_password }}"
      DB_DATA_LOCATION: "{{ nvme_mount_point }}/immich/postgres"
      REDIS_HOSTNAME: immich-redis

- name: deploy Immich-Microservices
  community.docker.docker_container:
    name: immich-microservices
    image: ghcr.io/immich-app/immich-server:release
    restart_policy: always
    command: ['start.sh', 'microservices']
    volumes:
      - "{{ hdd_mount_point}}/immich/library:/usr/src/app/upload"
      - /etc/localtime:/etc/localtime:ro
    networks: 
      - name: immich-network
    env:
      DB_DATABASE_NAME: "{{ immich_postgres_db_name }}"
      DB_USERNAME: "{{ immich_postgres_db_user }}"
      DB_PASSWORD: "{{ immich_postgres_db_password }}"
      DB_DATA_LOCATION: "{{ nvme_mount_point }}/immich/postgres"
      REDIS_HOSTNAME: immich-redis

- name: deploy Immich-Server
  community.docker.docker_container:
    name: immich-server
    image: ghcr.io/immich-app/immich-server:release
    restart_policy: always
    command: ['start.sh', 'immich']
    volumes:
      - "{{ hdd_mount_point}}/immich/library:/usr/src/app/upload"
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "2283:3001"
    networks: 
      - name: immich-network
    env:
      DB_DATABASE_NAME: "{{ immich_postgres_db_name }}"
      DB_USERNAME: "{{ immich_postgres_db_user }}"
      DB_PASSWORD: "{{ immich_postgres_db_password }}"
      DB_DATA_LOCATION: "{{ nvme_mount_point }}/immich/postgres"
      REDIS_HOSTNAME: immich-redis

This is what I have now and I get the following error in immich-server and immich-microservices:

[Nest] 7  - 05/02/2024, 3:45:01 PM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: getaddrinfo ENOTFOUND database
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)

Edit: It works! I forgot to add DB_HOSTNAME

Tywele ,

I recently began learning Ansible and this playlist was very helpful with learning.

Is rsync.net a good service for backups?

I've been playing around with the self hosted apps for quite a while and I got to the point where I'm happy about my local setup. Next step is to setup reliable offsite backup. I'm using borgbackup as a tool to manage my backups (so far only local backups). I've been looking for an affordable yet reliable service to store my...

Tywele ,

Hetzner also supports snapshots and you can upload files uncompressed.

Tywele ,

I don't know from the top of my head and I can't check right now.

Tywele ,

One day I said that in the future I will only be available via Signal. If not there then there is still SMS. And so far everyone I have contact with regularly installed it eventually.

Tywele ,

If you wanted the AI to just create book-like texts than you could train it purely on books from a library but if you want it to converse like a human being you need training data that imitates that.

Tywele , (edited )

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

I am genuinely horrified to see how much data google collected from me

I created a google takeout and in that zip file I found some files containing a ton of data about me. It has logged every single page I visited while using the google search engine and chrome browser. It even logged every single time I opened an app on my old android phone. It even has VOICE RECORDINGS of me and a log of every...

Tywele ,

Waiting for the perfect solution that might never come without doing anything in the meantime accomplishes nothing.

Tywele ,

I was talking about law making not you specifically.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • incremental_games
  • meta
  • All magazines