Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not execute the Node.js binary. You may need to set the path to a working binary manually. #1130

Open
retiolus opened this issue May 9, 2024 · 8 comments
Labels
bug Something isn't working
Projects

Comments

@retiolus
Copy link

retiolus commented May 9, 2024

Which version of recognize are you using?

6.1.1

Enabled Modes

Object recognition, Face recognition

TensorFlow mode

WASM mode

Downstream App

Memories App

Which Nextcloud version do you have installed?

28.0.5

Which Operating system do you have installed?

Debian 11

Which database are you running Nextcloud on?

mysql 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

I updated from Nextcloud 27 to Nextcloud 28 and now I get this error. Node is located in /var/www/nextcloud/apps/recognize/bin/node so I guess it is automatically installed be Recognize.

root@home:/var/www/nextcloud/apps/recognize/bin# ./node --version
v14.18.2

I installed manually Node executable and changed to it, but I get the same error.

Expected Behavior

Node should work?

To Reproduce

...

Debug log

No response

@retiolus retiolus added the bug Something isn't working label May 9, 2024
@github-actions github-actions bot added this to Backlog in Recognize May 9, 2024
Copy link

github-actions bot commented May 9, 2024

Hello 👋

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 💙

@marcelklehr
Copy link
Member

Is there anything in the nextcloud logs?

@nyok92
Copy link

nyok92 commented May 9, 2024

Recognize & Node used to work correctly before.
Same issue by updating to the last version of recognize : 7.0.0
Now Node path is : /data/config/www/nextcloud/apps/recognize/bin/node
There is indeed a node in this path but it seems not working.

@marcelklehr
Copy link
Member

You need node.js v20 since recognize v7 can you check the node binary?

@marcelklehr
Copy link
Member

marcelklehr commented May 10, 2024

You may need to install your own version of node.js

@nyok92
Copy link

nyok92 commented May 10, 2024

Directly on my host, it seems the node binary installed by the Recognizez app is working (v20.9.0)

rock@rock-5b-blue:/usr/share/hassio/addons/data/db21ed7f_nextcloud_ocr/config/www/nextcloud/apps/recognize/bin$ ./node -v
v20.9.0

In my Nextcloud container,

root@db21ed7f-nextcloud-ocr:/data/config/www/nextcloud/apps/recognize/bin# ./node -v
Error relocating /data/config/www/nextcloud/apps/recognize/bin/node: fcntl64: symbol not found

Donwloaded the last prebuit binaries LTS node version 20.13.1 in my container : same issue

@nyok92
Copy link

nyok92 commented May 10, 2024

Solved by installing nodejs through the docker ENV :
https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud

Added nodejs,npm as additionnal apps

@retiolus
Copy link
Author

Hi, in my case, the node executable was not executable... chmod +x fixed the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Recognize
Backlog
Development

No branches or pull requests

3 participants