Immich: reads checked against a live server
Inspect with an administrator-made key showed about, storage, version-check, statistics and /jobs (19 queues) all answer as the reader expects, with nothing empty. /queues (newer versions) is not seen live. Docs and the adapter's header say so; no code change. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7857c4297e
commit
313ef81faf
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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).
|
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*.
|
- 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.
|
- `/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 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
|
- **Checked against a live Immich** (Inspect, with a key made by an administrator): `/api/server/about`, `/server/storage`, `/server/version-check`, `/server/statistics` (photos, videos, usage, and usage for each user) and `/api/jobs` (19 queues, with active, waiting, failed and paused) all answered as the reader expects, and nothing the reader uses was empty. Without an administrator's key, statistics and the job queues are refused with a plain “Forbidden” (a missing permission reads “Missing required permission: …” instead), and the page says so where those figures would be. This Immich answers on `/jobs`; `/queues` (newer versions) has **not been seen live**. `/api/queues` is as Immich publishes it, 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.
|
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
|
### Nextcloud
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* background job queues — above all how many jobs have **failed** (thumbnails or metadata that were never made). Nothing is sent to Immich but GET requests for these.
|
* background job queues — above all how many jobs have **failed** (thumbnails or metadata that were never made). Nothing is sent to Immich but GET requests for these.
|
||||||
*
|
*
|
||||||
* Endpoints and field names are from Immich's published API (`/api/server/about`, `/server/storage`, `/server/statistics`, `/server/version-check`, `/jobs` — `/queues` on newer
|
* Endpoints and field names are from Immich's published API (`/api/server/about`, `/server/storage`, `/server/statistics`, `/server/version-check`, `/jobs` — `/queues` on newer
|
||||||
* versions) and were checked against a live server for `/server/about`, `/server/storage` and `/server/version-check` (statistics and the job queues answered "Forbidden": they need a key made by an administrator user); every field is read defensively, and a part that cannot be read (statistics need an administrator's key) is left out.
|
* versions) and were checked against a live server (about, storage, version-check, statistics and `/jobs`; with a key made by an administrator user — without one, statistics and jobs answer "Forbidden"; `/queues` not seen live); every field is read defensively, and a part that cannot be read (statistics need an administrator's key) is left out.
|
||||||
*/
|
*/
|
||||||
import { requestJson } from "../httpJson.js";
|
import { requestJson } from "../httpJson.js";
|
||||||
import { withDiagLogging } from "../../services/diagLog.js";
|
import { withDiagLogging } from "../../services/diagLog.js";
|
||||||
|
|||||||
Reference in new issue
Block a user