Shiny Server "Error in loadNamespace(name)"

Hello,

We are trying to run RStudio Server Pro and shiny server on a RHEL 7 machine. But encountering this error in the logs (/var/log/shiny-server), for our /srv/shiny-server/demoShinyApp

su: ignore --preserve-environment, it's mutually exclusive to --login.
Error in loadNamespace(name) : there is no package called ‘shiny’
Calls: local ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted

The Shiny Server is being started with the shiny account. When we switch to the shiny account it has no problem executing library(shiny) and .libPaths() returns the correct library with shiny installed.

The shiny account only has read and execute rights to the R library folders, because our rstudio-server account is the owner, is this error related to permissions to the library?

Thanks
Stuart

"The Shiny Server is being started with the shiny account", I have had another look at this, and shiny-server appears to be starting as root, as I've misinterpreted the /etc/shiny-server/shiny-server.conf

Instruct Shiny Server to run applications as the user "shiny"

run_as shiny;

I will check the .libPaths() for root and retest.

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