Skip to content

docker image requires nvcc to run plugin #1491

@rustyscottweber

Description

@rustyscottweber

Which version of recognize are you using?

11.01

Enabled Modes

Object recognition, Face recognition, Video recognition

TensorFlow mode

GPU mode

Downstream App

Photos App

Which Nextcloud version do you have installed?

33.01

Which Operating system do you have installed?

docker

Which database are you running Nextcloud on?

postgresql

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

Stock docker container from truenas

How much RAM does your server have?

64 GiB

What processor Architecture does your CPU have?

X86_64

Describe the Bug

Attempting to run recognize in the stock docker image for truenas results in the docker image not having everything it needs to run. Looking at the configuration for the app in nextcloud:

 Successfully loaded libtensorflow in Node.js, but couldn't load GPU. Make sure CUDA Toolkit and cuDNN are installed and accessible, or turn off GPU mode.

If the shipped Node.js binary doesn't work on your system for some reason you can set the path to a custom node.js binary. Currently supported is Node v20.9 and newer v20 releases. 

The GPU is detected and the driver is loaded as determined by nvidia-smi. However, I'm curious as to what additional packages need to be installed in order to ensure that recognize will work properly.

Expected Behavior

recognize will work without needing additional intervention of creating a custom docker image.

To Reproduce

install the plugin on truenas docker with an nvidia GPU.

Debug log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions