rstudio / shiny-server

Host Shiny applications over the web.
https://rstudio.com/shiny/server
Other
713 stars 290 forks source link

Administrator Guide Lacks Bookmarking Directory Information #239

Open DarioS opened 8 years ago

DarioS commented 8 years ago

Presently, the Administrator's Guide has no details about customising the bookmarks directory. The server fails to start if the directory can't be written to.

[2016-09-15 12:54:57.095] [ERROR] shiny-server - Bookmark state directory creation failed: /var/lib/shiny-server/bookmarks

Then, an error message is shown in green font, which should only be used for success messages.

[2016-09-15 12:54:57.096] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
jcheng5 commented 8 years ago

Thanks for the bug report! Are you running your Shiny Server as a root or non-root user?

DarioS commented 8 years ago

Actually, the server does start, but the Shiny applications don't, to correct the first statement.

I am running as a non-root user with Shiny Server installed from source into a non-system directory.

Also, I used the git clone instructions from your Wiki article, but the version isn't v1.4.4.807 like for the DEB package, but 1.4.4.0:

[2016-09-15 14:37:29.958] [INFO] shiny-server - Shiny Server v1.4.4.0 (Node.js v0.10.46)

Is the version string wrong or have I really downloaded an outdated version of the server with git clone?

wch commented 8 years ago

You should be able to use bookmark_state_dir. It's described here: https://github.com/rstudio/shiny-server/blob/cf0bf13/config/shiny-server-rules.config#L171-L176

However, it looks like it's not yet in the published admin guide.

wch commented 8 years ago

It looks like we have to update the Shiny Server Pro docs for it to show up in the published documents. Until then, we can keep this issue open.