Package Details: immich-cli 2.4.1-1

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
Keywords: backup photos
Licenses: AGPL-3.0-only
Submitter: wabi
Maintainer: aliu
Last Packager: aliu
Votes: 20
Popularity: 0.45
First Submitted: 2022-12-30 11:41 (UTC)
Last Updated: 2025-12-20 19:49 (UTC)

Pinned Comments

aliu commented on 2025-10-25 02:49 (UTC)

PostgreSQL 18 is coming to the Arch repos. Before upgrading, backup the files for vectorchord and pgvector somewhere, and then follow https://wiki.archlinux.org/title/PostgreSQL#Upgrading_PostgreSQL instructions. (In the next release, I'll also update the postinstall message to recommend changing postgresql.conf instead of doing ALTER SYSTEM SET.)

Also, you may find yourself updating VectorChord in this process. When doing so, remember to follow the migration steps at https://docs.immich.app/administration/postgres-standalone/#updating-vectorchord .

aliu commented on 2025-08-21 15:21 (UTC)

immich-web (localhost/immich-server:2283) used to be broken for some users of this package.

As @yparitcher also noticed, this was most likely caused by the following additions to .gitignore from f4e0aad2c495, which have since be reverted:

src/
pkg/
*.pkg.tar.zst
LICENSES/

The reason—for both this change sometimes and unpredictably breaking the build, and builds under a clean chroot still working—is unknown. I meant to investigate this on 2025-08-19 while updating the package but called it a day due to the unpredictability and long time of building. Help with figuring out why this happened would be greatly appreciated.

aliu commented on 2025-06-30 02:49 (UTC) (edited on 2025-07-01 16:35 (UTC) by aliu)

You may notice pacman refuse to upgrade this package, saying warning: cannot resolve "vectorchord", a dependency of "immich-server".

This is due to required manual intervention within the immich server database.

Newer versions of immich server have deprecated pgvecto.rs in favor of vectorchord.

Before updating from 1.133.1 or older, please follow steps 1 and 2 of the manual migration steps (should be the second dropdown) at https://immich.app/docs/administration/postgres-standalone/#migrating-to-vectorchord and uninstall pgvecto.rs.

Remember to remove references to "vectors.so" (which is shipped by pgvecto.rs) in shared_preload_libraries before pgvecto.rs in uninstalled. (For vectorchord to work, you'll need to add "vchord.so" to shared_preload_libraries after the upgrade as well.)

After that, you may upgrade this package. Please remember to follow steps 4 and 5 of the manual migration steps after the upgrade is finished to prevent data loss.

Latest Comments

1 2 3 4 5 6 .. 28 Next › Last »

dmig commented on 2026-01-17 20:27 (UTC)

now it crashes with out of memory during UI build:

web build$ vite build
│ [dotenv@17.2.3] injecting env (0) from .env -- tip: ⚙️  enable debug logging with { debug: true }
│ vite v7.3.0 building ssr environment for production...
│ transforming...
│ ✓ 2348 modules transformed.
│ rendering chunks...
│ [dotenv@17.2.3] injecting env (0) from .env -- tip: ✅ audit secrets and track compliance: https://dotenvx.com/ops
│ [dotenv@17.2.3] injecting env (0) from .env -- tip: 🔐 encrypt with Dotenvx: https://dotenvx.com
│ vite v7.3.0 building client environment for production...
│ transforming...
│ <--- Last few GCs --->
│ [112244:0x558609727000]    92334 ms: Scavenge (during sweeping) 970.9 (980.9) -> 970.6 (981.9) MB, pooled: 0.0 MB, 9.51 / 0.00 ms (average mu = 0.406, current mu = 0.362) alloca…
│ [112244:0x558609727000]    93181 ms: Mark-Compact (reduce) 974.2 (984.1) -> 972.9 (982.4) MB, pooled: 0.0 MB, 463.66 / 0.00 ms (+ 259.5 ms in 50 steps since start of marking, bi…
│ FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
...

just watched the process closely: - swap is not used at all, but this is definitely an OOM -- core dumper process is executed and node is killed with SIGABRT - build process continues after this failure

dmig commented on 2026-01-17 20:05 (UTC)

Installing npm resolved ELIFECYCLE error. It seems I got same issue as in https://aur.archlinux.org/pkgbase/immich#comment-1052460

aliu commented on 2026-01-17 19:53 (UTC)

Do you have npm installed? This might be the problem with requiring npm when the --force flag is present mentioned above; I'll have to solve it. In the meantime, you might have to install npm.

dmig commented on 2026-01-17 19:44 (UTC)

No luck. Is it possible to get detailed build log, especially from npm?

aliu commented on 2026-01-17 18:23 (UTC)

I don't know much about the error, but try https://stackoverflow.com/questions/42308879/how-to-solve-npm-error-npm-err-code-elifecycle .

dmig commented on 2026-01-17 17:28 (UTC)

Installation fails:

==> Starting build()...
Importing packages to virtual store
Already up to date
Progress: resolved 2340, reused 2333, downloaded 0, added 2340, done
node_modules/.pnpm/sharp@0.34.5/node_modules/sharp: Running install script...
 ELIFECYCLE  Command failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: immich-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
immich-server - exit status 4

Any advice?

aliu commented on 2025-12-23 02:32 (UTC)

@musta_ruhtinas Interestingly this doesn't reproduce when I just remove npm instead of using an entire chroot. Perhaps a common dependency... This might be related to the PKGBUILD's differences from the Dockerfile in treatment of sharp.js and libvips but I don't have the time to investigate this right now.

@AID Will do when I figure the above issue out!

AlD commented on 2025-12-23 00:22 (UTC)

This fixes the three dependency:

diff --git a/immich-2.4.1/web/package.json b/immich-2.4.1/web/package.json
index 9addfb6..040bee0 100644
--- a/immich-2.4.1/web/package.json
+++ b/immich-2.4.1/web/package.json
@@ -62,7 +62,8 @@
     "svelte-persisted-store": "^0.12.0",
     "tabbable": "^6.2.0",
     "thumbhash": "^0.1.1",
-    "uplot": "^1.6.32"
+    "uplot": "^1.6.32",
+    "three": "^0.170.1"
   },
   "devDependencies": {
     "@eslint/js": "^9.36.0",

AlD commented on 2025-12-22 23:29 (UTC)

Only saw your recent changes now.

[[ $(grep MemTotal /proc/meminfo | awk '{print $2}') > $(expr 5 * 1024 * 1024) ]]

Not sure whether this check is really useful, I think compilation is guaranteed to fail with less memory, but the comparison operator is string based, you meant to use -gt.

$(expr …) can just be replaced with $((…)) and no need for escaping *.

musta_ruhtinas commented on 2025-12-21 09:49 (UTC)

cannot build in a clean chroot unless adding npm to makedepends

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 1a29634 chore: libvips 8.17.3 (#291)
==> Starting build()...
Importing packages to virtual store
Already up to date
Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 2340, reused 0, downloaded 92, added 43
Progress: resolved 2340, reused 0, downloaded 495, added 383
Progress: resolved 2340, reused 0, downloaded 1002, added 833
Progress: resolved 2340, reused 0, downloaded 1512, added 1515
Progress: resolved 2340, reused 0, downloaded 1842, added 1814
Progress: resolved 2340, reused 0, downloaded 2086, added 2038
Progress: resolved 2340, reused 0, downloaded 2181, added 2062
Progress: resolved 2340, reused 0, downloaded 2329, added 2327
Progress: resolved 2340, reused 0, downloaded 2333, added 2340, done
.../sharp@0.34.5/node_modules/sharp install$ node install/check.js || npm run build
.../bcrypt@6.0.0/node_modules/bcrypt install$ node-gyp-build
.../sharp@0.34.5/node_modules/sharp install: sh: line 1: npm: command not found
 ELIFECYCLE  Command failed.