Package Details: immich-server 1.131.3-2

Git Clone URL: https://aur.archlinux.org/immich.git (read-only, click to copy)
Package Base: immich
Description: Self-hosted photos and videos backup tool
Upstream URL: https://github.com/immich-app/immich
Licenses: MIT
Conflicts: immich
Replaces: immich
Submitter: wabi
Maintainer: wabi (pikl)
Last Packager: pikl
Votes: 14
Popularity: 0.54
First Submitted: 2022-12-30 11:41 (UTC)
Last Updated: 2025-04-03 19:10 (UTC)

Pinned Comments

pikl commented on 2025-01-25 21:54 (UTC) (edited on 2025-01-26 08:23 (UTC) by pikl)

Upgrading to postgresql-17 is awkward because of pgvecto.rs if you have been using 0.2.0 as provided by AUR package pgvecto.rs-immich. If you have been using 0.3.0 as provided by AUR package pgvecto.rs-immich-bin then these extra steps are likely not required and I suggest the wiki instructions for upgrades for major version increments of postgresql are followed.

If you would like to stick at postgresql-16 please add the following to pacman.conf:

IgnorePkgs = postgresql postgresql-libs

Following the manual dump and reload in the wiki does appear to work, with a few extra steps to consider the pgvecto.rs upgrade.

Starting point is postgresql-old-upgrade installed with pgvector.rs-0.2.0. Symlink the installation outputs of pgvecto.rs into the directories used by the parallel installation of postgresql-old-upgrade.

ln -s /usr/share/postgresql/extension/vectors.control /opt/pgsql-16/share/extension/vectors.control
ln -s /usr/share/postgresql/extension/vectors--0.2.0.sql /opt/pgsql-16/share/extension/vectors--0.2.0.sql
ln -s /usr/lib/postgresql/vectors.so /opt/pgsql-16/lib/vectors.so

Then perform the database start (/opt/psql-16/bin/pg_ctl .. start), "dump" (pg_dumpall...) and database stop (/opt/psql-16/bin/pg_ctl .. start) steps in the wiki.

Upgrade to postgresql-17 and pgvecto.rs-0.3.0 (provided by pgvector.rs-immich-bin). Clear out /var/lib/postgresql/data then initialise the database (initdb...) as per the wiki.

Start the service using systemctl start postgresql and install the pgvecto.rs using the following command:

psql -c 'ALTER SYSTEM SET shared_preload_libraries = "vectors.so"'

Finally restart the postgresql service and perform the reload (psql...) steps in the wiki.

EDITED: Various clarifications

pikl commented on 2024-08-05 09:52 (UTC)

From v1.111.0, this package does not build with nodejs < v20.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 Next › Last »

jwh commented on 2024-06-17 23:51 (UTC)

This is now a real problem as the client will logout and refuse to login with mismatched version - if you don't have time (which is understandable) can you add me so I can at least update it and get it working again?

szymon_j commented on 2024-06-14 19:47 (UTC)

Versions from 1.106 renamed a few environment variables:

  • SERVER_PORT, MICROSERVICES_PORT, and MACHINE_LEARNING_PORT were renamed to IMMICH_PORT
  • HOST and MACHINE_LEARNING_HOST were renamed to IMMICH_HOST

I also found that i had to specify MACHINE_LEARNING_CACHE_FOLDER. I opted for /var/cache/immich added via CacheDirectory=immich directive in immich-machine-learning.service

Hope it helps with updating!

hrdl commented on 2024-04-29 19:34 (UTC)

For v1.103 DB_HOSTNAME needs to be set to in immich.conf, as its default value changed from localhost to database: https://github.com/immich-app/immich/commit/7ea539b753b1993cd0735db408e5954288bf6b68

pikl commented on 2024-04-28 09:46 (UTC) (edited on 2024-04-28 09:46 (UTC) by pikl)

Upgrade to python 3.12 breaks immich-machinelearning. v1.102.3-3 adds version dependency for either python 3.10 or python 3.11. Note that python 3.11 is available on the AUR and can be installed alongside the default 3.12 but build appears broken at the moment. See python311 for a workaround.

pikl commented on 2024-04-14 10:25 (UTC)

pgvecto.rs-immich exists for the occurrence when the required version for immich is different to the latest release from upstream. At the moment both are at the same version but this hasn't been the case in the past. The dependency is defined with a version pgvecto.rs=0.2.0, both pgvecto.rs and pgvecto.rs-immich can provide that dependency at the moment.

ksj commented on 2024-04-14 09:55 (UTC)

And is there needed pgvecto.rs or pgvecto.rs-immich package as dependency? If pgvecto.rs-immich, why it is not as dependency? I'm using build from docker too and this is confusing, what to install. It always choose pgvecto.rs as it is in dependency.

pikl commented on 2024-04-14 09:44 (UTC)

@ksj orc is included as dependency due to liborc dep in the upstream Dockerfile. I've removed it completely in 1.101.0-2 and it builds and runs OK.

ksj commented on 2024-04-13 12:37 (UTC) (edited on 2024-04-13 19:27 (UTC) by ksj)

I was checking security of my server and I have found that immich-server is dependent on orc package (compiler). Is it necessary to have it as dependency or can it be moved under make dependency?

Also, is there needed pgvecto.rs or pgvecto.rs-immich package as dependency?

simona commented on 2024-04-04 13:25 (UTC)

yes... fixed. thx

Senventise commented on 2024-04-04 12:54 (UTC)

@simona Same here, installing clang16 and adding /usr/lib/llvm16/bin/ to PATH fixed it for me.