bindarr icon indicating copy to clipboard operation
bindarr copied to clipboard

Another 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, version 1.4.39. When trying to rebuild Global Index Cache for moth MTG and Pokemon i see error in logs:

globalIndex: mtg build failed: build-card-embeddings.mjs exited 1: /node_modules/onnxruntime-node/bin/napi-v6/linux/x64//libonnxruntime.so.1) at Module._extensions..node (node:internal/modules/cjs/loader:1661:18) at Module.load (node:internal/modules/cjs/loader:1266:32) at Module._load (node:internal/modules/cjs/loader:1091:12) at Module.require (node:internal/modules/cjs/loader:1289:19) at require (node:internal/modules/helpers:182:18) at Object. (/app/backend/node_modules/onnxruntime-node/dist/binding.js:10:1) at Module._compile (node:internal/modules/cjs/loader:1521:14) at Module._extensions..js (node:internal/modules/cjs/loader:1623:10) at Module.load (node:internal/modules/cjs/loader:1266:32) at Module._load (node:internal/modules/cjs/loader:1091:12) { code: 'ERR_DLOPEN_FAILED' } Node.js v20.20.2

Could You look at this, please?

Also, thx for previous quick fix!

Widmo1994 avatar Jul 26 '26 20:07 Widmo1994

Fixed in v1.4.40.

Cause: the global-index build runs CLIP inference through @huggingface/transformers, which loads onnxruntime-node. Its prebuilt binaries are glibc-linked and can't load on the alpine/musl base image, hence ERR_DLOPEN_FAILED on libonnxruntime.so.1.

Fix: the production image now uses a Debian (glibc) base (node:20-slim) instead of alpine, so the onnxruntime native addon loads. The volume-permission and script-shipping fixes from v1.4.38 are unchanged.

To update:

docker compose pull
docker compose up -d

Then run Rebuild Global Index Cache again. It's still heavy (downloads ~74k images and runs CLIP on CPU, hours per game), but it should now proceed instead of aborting. Thanks for the detailed logs, they made this easy to pin down.

thenotoriousJeremy avatar Jul 26 '26 21:07 thenotoriousJeremy