Permissions problem with rmarkdown and shiny

1,288 views
Skip to first unread message

Ewen Harrison

unread,
Dec 10, 2014, 3:18:51 PM12/10/14
to shiny-...@googlegroups.com
Appreciate any thoughts on this.

Running rstudio server and shiny server (both pro) on ubuntu 13.04.

Rmarkdown created and saved as per a user shiny application in ShinyApps folder.

User 1 accesses their rmarkdown file via server/user1/app/index.Rmd with no problem.

User 2 attempts to access rmarkdown via server/user2/app/index.Rmd and gets "Error: cannot open connection".

This is because the folder tmp/rmarkdown is created with user1s permissions and no subsequent user can write to this.

Deleteing /tmp/rmarkdown allows user2 to access server/user2/app/index.Rmd as expected.

My fault or bug?

Thank you!

Ewen


log
--
processing file: index.Rmd
output file: /tmp/Rtmp5gyakC/index.knit.md


Output created: /tmp/Rtmp5gyakC/file5c0a656d854.html
Warning in dir.create(dirname(output_dest), recursive = TRUE, mode = "0700") :
  cannot create dir '/tmp/rmarkdown/40539613c141abc6d820b70e58103081', reason 'Permission denied'

Warning in dir.create(intermediates_dir) :
  cannot create dir '/tmp/rmarkdown/40539613c141abc6d820b70e58103081', reason 'Permission denied'
Warning in dir.create(output_dir) :
  cannot create dir '/tmp/rmarkdown/40539613c141abc6d820b70e58103081', reason 'Permission denied'

Fereshteh Karimeddini

unread,
Dec 12, 2014, 4:11:57 PM12/12/14
to shiny-...@googlegroups.com
Ewen,

I see a lightly different behavior. What version of Shiny Server are you using? (shiny-server --version)
Also, is your code saving any files on the disk? 
Do you see this behavior with all Rmd files?


Fereshteh

Patrick Kopps

unread,
Dec 20, 2017, 6:09:17 PM12/20/17
to Shiny - Web Framework for R
sudo chmod 777 -R /tmp did the trick for me
Reply all
Reply to author
Forward
0 new messages