bindarr icon indicating copy to clipboard operation
bindarr copied to clipboard

No possibility to update MTG and Pokemon Global Index on Docker

Open Widmo1994 opened this issue 4 months ago • 1 comments

Hi,

I'm running Bindarr as a docker image. When trying to rebuild Global Index Cache for moth MTG and Pokemon i see error in logs:

Error: EACCES: permission denied, mkdir '/app/backend/data/.staging-mtg' Error: EACCES: permission denied, mkdir '/app/backend/data/.staging-mtg' /app/backend/node_modules/opencv-wasm/opencv.js:94 throw ex ^ RuntimeError: abort(Error: EACCES: permission denied, mkdir '/app/backend/data/.staging-mtg'). Build with -s ASSERTIONS=1 for more info. at process.abort (/app/backend/node_modules/opencv-wasm/opencv.js:775:27) at process.emit (node:events:524:28) at emitUnhandledRejection (node:internal/process/promises:250:13) at throwUnhandledRejectionsMode (node:internal/process/promises:385:19) at processPromiseRejections (node:internal/process/promises:470:17) at process.processTicksAndRejections (node:internal/process/task_queues:96:32) Node.js v20.20.2

Looks like image doesn't have all scripts for backend.

Could You look at this, please?

Widmo1994 avatar Jul 26 '26 17:07 Widmo1994

Fixed in v1.4.38 (just released). Two problems were behind this:

  1. The image never included the backend/scripts/ build scripts that the rebuild spawns, so the feature couldn't run at all.
  2. The global index was written to a non-persisted, non-writable path under /app/backend/data, which produced the EACCES mkdir error.

What changed:

  • The build scripts are now shipped in the image.
  • The global embed/orb indexes now live on the persisted /app/database volume (INDEX_DATA_DIR=/app/database/index), so a rebuild has a writable target and the multi-GB output survives redeploys.
  • The container now fixes volume ownership on startup and drops to the unprivileged node user, so even a volume created by an older image is writable.

To update:

docker compose pull
docker compose up -d

(or docker pull ghcr.io/thenotoriousjeremy/bindarr:1.4.38)

Then trigger Rebuild Global Index Cache again. Note the rebuild itself is heavy (downloads ~74k images and runs the CLIP model on CPU, hours per game). Let me know if you still hit anything.

Keep in mind, it is significantly faster and MUCH more accurate assigning a specific set than trying to compare against the entire database. Most of the testing and optimization have been towards set scoped scans.

thenotoriousJeremy avatar Jul 26 '26 19:07 thenotoriousJeremy