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

Nice binary not properly recognized #922

Closed
oddstr13 opened this issue Jul 22, 2023 · 7 comments
Closed

Nice binary not properly recognized #922

oddstr13 opened this issue Jul 22, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@oddstr13
Copy link

Which version of recognize are you using?

4.3.0

Enabled Modes

Object recognition, Face recognition

TensorFlow mode

WASM mode

Which Nextcloud version do you have installed?

27.0.1

Which Operating system do you have installed?

QTS 5

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

linuxserver/nextcloud:27.0.1

How much RAM does your server have?

8GiB

What processor Architecture does your CPU have?

x86_64

Describe the Bug

occ recognize:classify errors with the following due to not properly auto-detecting nice;

Running array (
  0 => '""',
  1 => '-0',
  2 => '/config/www/nextcloud/apps/recognize/bin/node',
  3 => '/config/www/nextcloud/apps/recognize/src/classifier_imagenet.js',
  4 => '-',
)
Classifier process output: sh: exec: line 0: "": not found

Classifier process output: sh: exec: line 0: "": not found


In Classifier.php line 216:
                            
  Classifier process error  
                            
recognize:classify

Expected Behavior

nice is at /bin/nice, but the setting defaulted to an empty double quote (literally "", not an empty string)

Workaround:
Manually set «Nice binary path» to /bin/nice in the Recognize settings.

To Reproduce

This was a fresh install of the addon.

Debug log

No response

@oddstr13 oddstr13 added the bug Something isn't working label Jul 22, 2023
@oddstr13
Copy link
Author

Likely related to a748a90 (#906)

@phil-lipp
Copy link

The fix has been commited two weeks ago...when can we expect a new release containing this fix, @marcelklehr?

@marcelklehr
Copy link
Member

Soon-ish (in the next two weeks). Sorry for the delay

@marcelklehr
Copy link
Member

marcelklehr commented Aug 15, 2023

Say hello to https://github.com/nextcloud/recognize/releases/tag/v4.3.1 👋 ♥️

@phil-lipp
Copy link

Say hello to https://github.com/nextcloud/recognize/releases/tag/v4.3.1 👋 ♥️

I'm still getting an error, even though using sudo -u www-data whereis nice returns /usr/bin/nice.

Classifier process output: sh: 1: exec: "/usr/bin/nice": not found

@marcelklehr
Copy link
Member

You may need to set the setting again (I'd recommend just leaving it blank as recognize should be able to figure out where nice is located on its own)

@DonPicciotto
Copy link

Hi, I still have this problem, I tried setting "Nice binary path" to /bin/nice, as well as leaving it blank, but nothing changed

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
None yet
Development

No branches or pull requests

4 participants