-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use rmdshot()
on a remote server?
#51
Comments
If it's on a remote server, you should be using If you can point a web browser to an address that shows the app/document, |
These Shiny apps/docs on the VM are secured via Google Oauth and not publicly accessible. This is the reason why I am trying to create thumbnails from an R session on the VM directly. I feel that if |
Oh OK, I didn't realize you were logged into RStudio on the VM. This works for me on a remote RStudio Server:
I don't know why it's not working on your setup. It's possible that your server is blocking all incoming traffic except on specific ports. If that's the case, you'll probably need to configure your server to unblock a specific port (say, 5000), and then pass that port number as the One thing that makes me a bit uncertain about that solution is that the traffic should be all on the VM's localhost, and localhost traffic usually isn't blocked for most firewall configurations. |
Thx, I've now tested a few more Rmd documents, and it seems the issue could be to that my .Rmd document reads in data from a
|
I'd be surprised if the |
Hi @wch, # Shiny app that fails
webshot("https://data.worldcovr.com/shiny/bio-profiles/", "test.png")
# Could not load https://data.worldcovr.com/shiny/bio-profiles/
# Error in webshot("https://data.worldcovr.com/shiny/bio-profiles/", "test.png") :
# webshot.js returned failure value: 1
# => errors out
# Another Shiny app that works
webshot("http://tools.harvestchoice.org/rainfall/", "test.png")
# => works
|
It looks like there's some sort of SSL problem. I added a
Searching for |
@mbacou I think I've fixed it. Please try it out and let me know how it goes. |
@wch thanks very much, that fixes the issue with |
Hi,
I'm trying to capture a dynamic
index.Rmd
document located on a remote VM. Bothappshot()
andrmdshot()
error out when I run them from R console via SSH or in RStudio Server. This VM has Shiny Server on port 3838 and RStudio Server on port 8787. Not sure which port to use/open on the remote server to make this work.Any tip?
The text was updated successfully, but these errors were encountered: