I have a shiny app on a local server (ubuntu) which uses a dataset which is also there in the server. It's working fine when I am running its code on the server, but when I am accessing the shiny app from another system (windows 8) it is giving this error...
"An error has occurred. Check your logs or contact the app author for clarification"
Please help.
So have a look on the log-file
/var/log/shiny-server/
Related
While trying to deploy a Shiny app on RStudio Connect I receive the following error:
----- Deployment error -----
Error: HTTP 500
GET http://10.80.40.13:3939/__api__/tasks/YUJMyIjVyh3Pm87i?first_status=487
<h1>An error has occurred</h1>
<p id="message">database is locked</p>
The server is not under heavy load and currently there are only 5 users and one app on the server.
I tried a few steps from here. Killed the process using the db. I then moved connect.db to another location and then copied it back to /var/lib/rstudio-connect/db/. After this step I could not even login to RStudio Connect. I did an integrity check on connect.db and found it to be ok butt still no joy. Next, I restored the db to a previous version. I am able to login now but while deploying the Shiny app, still receiving the same error.
The app I am trying to deploy has already been successfully deployed on the server. What I am trying to deploy now is a modified version of the same app, with the only change being an addition of a pickerInput().
I am trying to host a Shiny app on a machine hooked up to a LAN. In the directory housing my app, I have the server.R, ui.R, and launcher.R scripts. The launcher.R file looks like:
#!/usr/bin/Rscript
library(shiny)
setwd("~/path/to/shinyApp/")
shiny::runApp(host="0.0.0.0",port=4414)
When I run this via RStudio, the app launches, behaves normally, and can be accessed by other machines through the LAN by going to 987.65.43.21:4414 in a browser. When I run the app with launch.browser=T, the address reads 127.0.0.1:4414.
I want to be able to run the launcher and host the app without RStudio running. When I try running the launcher code via command line, the app gives the usual messages
Loading required package: methods
Listening on http://0.0.0.0:4414
but I cannot access the app through a LAN browser. If I navigate to the 127.0.0.1:4414 on the host machine, I can access it, but not via the machine's IP on another machine like I could when running RStudio.
Does anyone have any insight on what could be going on? Thanks!
Install shiny-server from here this will allow you to access your shiny apps from your LAN. Just put your shiny files in /srv/shiny-server/myApp and you can access them through xx.xx.xx.xx:3838/myApp/
I want to develop a shiny app with login, which later should be hosted on Shinyapps.io (STANDARD).
How can I develope/debug the app locally without having Shiny Server Pro or uploading the app to Shinyapps.io every time.
Running the code displayed here.
I of course get the following message:
ERROR: This application is designed to be run in Shiny Server Pro and to require authentication.
I have shiny servers running on ubuntu for some time, but I can`t make it work on debian, I found some tutorials on google, like this
http://mars.wiwi.hu-berlin.de/mediawiki/sk/index.php/Shiny
but none of them worked for me. In this same server my Rsudio server works and I can log in and run a shiny app in the browser, is there a way to share the web link to run shiny server through Rstudio?
You can distribute your shiny app on https://www.shinyapps.io/ and share it with others.
If you will really want to host your app with Rstudio-server, maybe this answer is helpful:
Publish Rstudio Shiny App in intranet
How can I host my own R Shiny App instead of hosted it at https://www.shinyapps.io?
I run these lines below and my app is uploaded to the server above,
> library(shiny)
> library(shinyapps)
> setwd("C:/firstapp")
> deployApp()
but we have our own live server that support R, so can we do that?
ps. I follow this tutorial and get our app hosted at shinyapps.io but we prefer host it our own. Is it possible?
The deployApp() function only works with shinyapps.io. When running your own installation of shiny server, you will have to take care of deploying and managing your applications manually. This includes installing any required R packages.
To host your own shiny-server, you should get started by downloading shiny-server or shiny-server pro from here: http://www.rstudio.com/products/shiny/shiny-server/
Download and install the shiny server from RStudio:
http://www.rstudio.com/products/shiny/shiny-server/
obviously you'll need a machine to host it on if you don't want your desktop getting thrashed.
You need to set-up a shiny server on your personal server if you want to host outside from shinyapps.io
http://www.rstudio.com/products/shiny/shiny-server/