Tensorflow error after deploy at Shinyapp.io

Hi, I'm trying to deploy a Shiny app in shinyapp.io

Everything, for booth local and remote environment, was fine but the plot I render starting from a tensorflow generated tables (just a modelled with load_model_tf() and a predict().

I've got some error on log that I'm not able to manage. I've understand that is something related to the CUDA library in tensorflow but, as my local env. do not use CUDA, I'm stuck

Here the errors:

 2020-03-17 10:13:25.714924: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/R/3.6.1/lib/R/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server
2020-03-17T10:13:25.715297+00:00 shinyapps[1957530]: 2020-03-17 10:13:25.715244: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/R/3.6.1/lib/R/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server
2020-03-17T10:13:25.715308+00:00 shinyapps[1957530]: 2020-03-17 10:13:25.715279: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
2020-03-17T10:13:27.064305+00:00 shinyapps[1957530]: 2020-03-17 10:13:27.064227: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/R/3.6.1/lib/R/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server
2020-03-17T10:13:27.064325+00:00 shinyapps[1957530]: 2020-03-17 10:13:27.064280: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)
2020-03-17T10:13:27.064357+00:00 shinyapps[1957530]: 2020-03-17 10:13:27.064318: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (65e48bf68963): /proc/driver/nvidia/version does not exist
2020-03-17T10:13:27.064550+00:00 shinyapps[1957530]: 2020-03-17 10:13:27.064502: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2020-03-17T10:13:27.070281+00:00 shinyapps[1957530]: 2020-03-17 10:13:27.070209: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3000000000 Hz
2020-03-17T10:13:27.070829+00:00 shinyapps[1957530]: 2020-03-17 10:13:27.070754: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x10e43630 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-03-17T10:13:27.070836+00:00 shinyapps[1957530]: 2020-03-17 10:13:27.070805: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version

Any idea on how to fix?

Don't know why but, restarting the instance with a downgrade solved the issues.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.