By jrt
I have set up Rstudio and shiny servers. Both seemed to be working OK (the demo apps work and I can log into & use Rstudio from a browser). But now I have two (possibly related?) problems:
In Rstudio, I get this error “127.0.0.1 refused to connect” whenever I try to run a Shiny app or even try to open a help page. (e.g. ?runApp, or ?mean).
I copied an existing shiny app to /srv/shiny-server/. It worked fine at first, but after I made some changes (on a local version of R) and replaced the files on the server, I get this error when trying to launch the app:
An error has occurred The application failed to start. The application exited during initialization.
Warning in readLines(file, warn = FALSE) : cannot open file ‘/srv/shiny-server/SMP_shinyapp/global.R’: Permission denied Error in readLines(file, warn = FALSE) : cannot open the connection Calls: runApp -> <Anonymous> -> sourceUTF8 -> readUTF8 -> readLines Execution halted
I am very new to using servers, ubuntu etc. I got as far as I did by following tutorials and googling stuff, but now I am completely stuck. Any advice would be greatly appreciated!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Explain that answer, please. I have the same problem as the original question poser. I have two apps which are running on my shiny-server just fine and one which seems to have exactly the same permissions as these first two but generates an error when I try to run it (as per the error referenced by the original questioner). It seems to be something to do with the app itself.
There is probably a mismatch in ownership. /srv/shiny-server is owned by root, when you copied the files the system retained your owner.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.