nextcloud / recognize

👁 👂 Smart media tagging for Nextcloud: recognizes faces, objects, landscapes, music genres
https://apps.nextcloud.com/apps/recognize
GNU Affero General Public License v3.0
562 stars 45 forks source link

Node.js after "One Click Installation" missing #1101

Closed Zipper5004 closed 6 months ago

Zipper5004 commented 9 months ago

Which version of recognize are you using?

5.0.3

Enabled Modes

Face recognition

TensorFlow mode

WASM mode

Downstream App

Photos App

Which Nextcloud version do you have installed?

27.1.5

Which Operating system do you have installed?

Debian 11

Which database are you running Nextcloud on?

Mariadb 10.5.23

Which Docker container are you using to run Nextcloud? (if applicable)

No response

How much RAM does your server have?

4GiB

What processor Architecture does your CPU have?

aarch64

Describe the Bug

Node.js is not installed by one click installer (installation within nextcloud app framework)

Expected Behavior

Node.js should be installed automaticly

To Reproduce

As Nextcloud Admin go to: Apps -> Multimedia -> Recognize -> Download and enable -> Wait for ~14 minutes -> Go to Administrator Setting -> Recognize -> An error accurs on finding Node.js "Could not execute the Node.js binary. You may need to set the path to a working binary manually." within the unix shell I see that the directory apps/recognize/bin/ is empty

Debug log

No response

github-actions[bot] commented 9 months ago

Hello :wave:

Thank you for taking the time to open this issue with recognize. I know it's frustrating when software causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at and if possible solved. I try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it. Until then, please be patient. Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can collaborate to make this software better. For everyone. Thus, if you can, you could also look at other issues to see whether you can help other people with your knowledge and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and try to fix the odd bug yourself. Everyone will be thankful for extra helping hands! One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum, to twitter or somewhere else. But this is a technical issue tracker, so please make sure to focus on the tech and keep your opinions to yourself. (Also see our Code of Conduct. Really.)

I look forward to working with you on this issue Cheers :blue_heart:

Zipper5004 commented 9 months ago

I've tried to load it via git, but it breaks too:

git clone https://github.com/marcelklehr/recognize.git
Cloning into 'recognize'...
remote: Enumerating objects: 12250, done.
remote: Counting objects: 100% (1389/1389), done.
remote: Compressing objects: 100% (336/336), done.
error: 5210 bytes of body are still expected MiB | 1.39 MiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed
Zipper5004 commented 9 months ago

Manually installing Node.js via apt sets the directory to /usr/bin/nodejs but that Node.js does not come with module promises, so I installed it globaly: sudo npm -g install promises But I still get an error:

Error: Cannot find module 'fs/promises'
Require stack:
- /var/www/html/nextcloud/apps/recognize/src/classifier_faces.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/var/www/html/nextcloud/apps/recognize/src/classifier_faces.js:2:12)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/var/www/html/nextcloud/apps/recognize/src/classifier_faces.js' ]
}

Classifier process output: internal/modules/cjs/loader.js:818
  throw err;
marcelklehr commented 9 months ago

You need the exact node.js version required by recognize. See the recognize admin settings