From 8dda5ac31f6d2f1680fbdc5a690f9ff954b39c6f Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 15 Aug 2025 08:42:08 -0400 Subject: [PATCH] Immich: pin Vectorchord release; adjust extension update commands (#6878) --- ct/immich.sh | 6 ++++-- install/immich-install.sh | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ct/immich.sh b/ct/immich.sh index b84e66dda7..c6c627c150 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -74,7 +74,8 @@ function update_script() { APP_DIR="${INSTALL_DIR}/app" ML_DIR="${APP_DIR}/machine-learning" GEO_DIR="${INSTALL_DIR}/geodata" - VCHORD_RELEASE="$(curl -fsSL https://api.github.com/repos/tensorchord/vectorchord/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')" + VCHORD_RELEASE="0.4.3" + # VCHORD_RELEASE="$(curl -fsSL https://api.github.com/repos/tensorchord/vectorchord/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')" if [[ ! -f ~/.vchord_version ]] || [[ "$VCHORD_RELEASE" != "$(cat ~/.vchord_version)" ]]; then msg_info "Updating VectorChord" @@ -91,7 +92,8 @@ function update_script() { $STD sudo -u postgres psql -d immich -c "ALTER EXTENSION vchord UPDATE;" systemctl restart postgresql if [[ ! -f ~/.vchord_version ]] || [[ ! "$(cat ~/.vchord_version)" > "0.3.0" ]]; then - $STD sudo -u postgres psql -d immich -c "REINDEX DATABASE;" + $STD sudo -u postgres psql -d immich -c "REINDEX INDEX face_index;" + $STD sudo -u postgres psql -d immich -c "REINDEX INDEX clip_index;" fi echo "$VCHORD_RELEASE" >~/.vchord_version rm ./vchord.deb diff --git a/install/immich-install.sh b/install/immich-install.sh index 85b9c9be3e..b728f927f1 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -115,7 +115,8 @@ NODE_VERSION="22" setup_nodejs PG_VERSION="16" PG_MODULES="pgvector" setup_postgresql msg_info "Setting up Postgresql Database" -VCHORD_RELEASE="$(curl -fsSL https://api.github.com/repos/tensorchord/vectorchord/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')" +VCHORD_RELEASE="0.4.3" +# VCHORD_RELEASE="$(curl -fsSL https://api.github.com/repos/tensorchord/vectorchord/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')" curl -fsSL "https://github.com/tensorchord/VectorChord/releases/download/${VCHORD_RELEASE}/postgresql-16-vchord_${VCHORD_RELEASE}-1_amd64.deb" -o vchord.deb $STD apt install -y ./vchord.deb rm vchord.deb