Immich: version check confirmed live; say that the key must be made by an administrator

A second Inspect showed /server/version-check now answers, while statistics, jobs and queues answer a plain "Forbidden": the key is accepted but its user is not an administrator. The Immich page now says so where the counts and the job queues would be (in Swedish too), and the docs and the adapter's header say the key must be made by an administrator user.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-17 20:12:35 +01:00
1 parent 517a1b9544
commit 7857c4297e
4 files changed
+7 -4

No files matched your search

+2 -2
View File
@@ -408,7 +408,7 @@ osTicket's API cannot close a ticket, so this is the one place in the app that *
### Immich
- **Config fields:** the **address** of Immich (`http://host:2283`), an **API key** (Immich → Account Settings → API Keys; stored encrypted) and, for an https address with a certificate you made yourself, *insecure*.
- **Required access:** read only. Give the key just these permissions: `server.about`, `server.storage`, `server.versionCheck`, `server.statistics` and `job.read` (`queue.read` on newer versions) — statistics and jobs need an administrator's key. Without one of them that part is left out (and **Inspect** shows the reason Immich gave, such as *Missing required permission: server.versionCheck*). This app only ever sends GET requests; **nothing is changed, and no job is started, paused or cleared**.
- **Required access:** read only. Give the key just these permissions: `server.about`, `server.storage`, `server.versionCheck`, `server.statistics` and `job.read` (`queue.read` on newer versions) — statistics and jobs need a key **made by an administrator user** (the permissions alone are not enough; Immich answers “Forbidden”). Without one of them that part is left out (and **Inspect** shows the reason Immich gave, such as *Missing required permission: server.versionCheck*). This app only ever sends GET requests; **nothing is changed, and no job is started, paused or cleared**.
If one of those is refused, that part is left out and the rest still works.
- **What it does:** every **five minutes** Immich is read and stored — its version (and whether a newer one is out), how full the **disk under the library** is, how many **photos and videos** there are and what they take, and the **background job queues** with how many jobs **failed** in each.
**Apps → Immich** shows it.
@@ -416,7 +416,7 @@ osTicket's API cannot close a ticket, so this is the one place in the app that *
Failed jobs stay counted until you run them again or clear them in Immich, so the alert stays until you do).
- If Immich cannot be read for 20 minutes its alerts are neither raised nor cleared, the Alerts page says it could not check, and the integration is raised as failing like any other. A part that could not be asked is *unknown*, never *none*.
- `/metrics` has `homelab_immich_photos`, `homelab_immich_videos`, `homelab_immich_library_bytes`, `homelab_immich_disk_used_percent` and `homelab_immich_failed_jobs` for each Immich that was read lately.
- **Partly checked against a live Immich** (Inspect): `/api/server/about` and `/api/server/storage` answered as the reader expects (version, disk size, used and percent). On the first check the other four (`/server/statistics`, `/server/version-check`, `/jobs`, `/queues`) were refused with a short message instead of data — most likely a key without those permissions or not an administrator's — so photos, videos, usage, the latest version and the job queues are **not yet seen with data**. The endpoints (`/api/server/about`, `/server/storage`, `/server/statistics`, `/server/version-check`, `/api/jobs`, and `/api/queues` on newer versions) and their fields are as Immich publishes them, and the reader is tried against a pretend server that answers both ways. Immich renames
- **Partly checked against a live Immich** (Inspect): `/api/server/about` and `/api/server/storage` answered as the reader expects (version, disk size, used and percent). On the second check `/server/version-check` answered too (`checkedAt`, `releaseVersion`, which gives the latest version). `/server/statistics`, `/jobs` and `/queues` were refused with a plain **“Forbidden”**, which Immich says when the key is fine but **its user is not an administrator** (a missing permission reads “Missing required permission: …” instead) — so photos, videos, usage and the job queues are **not yet seen with data**; make the API key while signed in as an administrator. The page says so where those figures would be. The endpoints (`/api/server/about`, `/server/storage`, `/server/statistics`, `/server/version-check`, `/api/jobs`, and `/api/queues` on newer versions) and their fields are as Immich publishes them, and the reader is tried against a pretend server that answers both ways. Immich renames
these now and then; the **Diagnostic Log** has what was asked and answered if something comes back empty. Whether a *waiting* backlog is a problem is not judged: a big import has one for days.
### Nextcloud