julianpoy / ingredient-instruction-classifier

A TensorFlow model and tiny express server that can classify text as ingredient, instruction, or other.
GNU Affero General Public License v3.0
13 stars 2 forks source link

Running RecipeSage, and the ingredient-instruction-classifier errors out #22

Closed cesardv closed 11 months ago

cesardv commented 1 year ago

Seeing this issue on a fresh self-hosted install on x64 Linux (run of the mill VPS host). My docker logs are full of:

recipesage-selfhost-ingredient-instruction-classifier-1 | Error: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /app/node_modules/@tensorflow/tfjs-node/lib/napi-v8/../../deps/lib/libtensorflow.so.2)
recipesage-selfhost-ingredient-instruction-classifier-1 | at Module._extensions..node (node:internal/modules/cjs/loader:1338:18)
recipesage-selfhost-ingredient-instruction-classifier-1 | at Module.load (node:internal/modules/cjs/loader:1117:32)
recipesage-selfhost-ingredient-instruction-classifier-1 | at Module._load (node:internal/modules/cjs/loader:958:12)
recipesage-selfhost-ingredient-instruction-classifier-1 | at Module.require (node:internal/modules/cjs/loader:1141:19)
recipesage-selfhost-ingredient-instruction-classifier-1 | at require (node:internal/modules/cjs/helpers:110:18)
recipesage-selfhost-ingredient-instruction-classifier-1 | at Object. (/app/node_modules/@tensorflow/tfjs-node/dist/index.js:72:16)
recipesage-selfhost-ingredient-instruction-classifier-1 | at Module._compile (node:internal/modules/cjs/loader:1254:14)
recipesage-selfhost-ingredient-instruction-classifier-1 | at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
recipesage-selfhost-ingredient-instruction-classifier-1 | at Module.load (node:internal/modules/cjs/loader:1117:32)
recipesage-selfhost-ingredient-instruction-classifier-1 | at Module._load (node:internal/modules/cjs/loader:958:12) {
recipesage-selfhost-ingredient-instruction-classifier-1 | code: 'ERR_DLOPEN_FAILED'
recipesage-selfhost-ingredient-instruction-classifier-1 | }
recipesage-selfhost-ingredient-instruction-classifier-1 |
recipesage-selfhost-ingredient-instruction-classifier-1 | Node.js v18.16.0
recipesage-selfhost-ingredient-instruction-classifier-1 | Platform node has already been set. Overwriting the platform with node.
recipesage-selfhost-ingredient-instruction-classifier-1 | node:internal/modules/cjs/loader:1338
recipesage-selfhost-ingredient-instruction-classifier-1 | return process.dlopen(module, path.toNamespacedPath(filename));

Any idea on how to troubleshoot this, poke and googled at it but nothing I tried seems to work. thanks!

julianpoy commented 1 year ago

Pushed https://github.com/julianpoy/ingredient-instruction-classifier/commit/8d7fc23efd391375ceeaa44421c17506fa1632c5 to hopefully solve this issue.

Reverting to version 1.1.0 should also solve the problem.