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
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?