-
Notifications
You must be signed in to change notification settings - Fork 290
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
RMarkdown presentation with Shiny is working fine locally but couldn't open on ShinyServer #144
Comments
@Nicolabo I am using Shiny Server v1.3.0.403. Your issue might be caused by the way you have deployed it on Shiny Server. This code must be in a file of its own, let's call it
And to access it you use: Let us know if this helps, or if you continue having an issue. |
@fereshtehRS
Also we're using the same version of Shiny as you mentioned:
Still, when I try load http://:3838/test/ it only shows loading animation and stops there. |
That's right. I checked it twice and the problem still exists. I also looked at log but there is no reaction: [root@xxx ~]# tail /var/log/shiny-server.log [2015-09-01 17:02:28.814] [INFO] shiny-server - Shiny Server v1.3.0.403 (Node.js v0.10.21) |
Do you see any errors in the browser console? |
No, nothing in the browser console.
|
Your file works fine in my environment. I have to try it with Revolution R, in case there is an issue with that. |
It will be great if you find a solution. Thanks! |
I should have asked this before, are you able top run any application on Shiny Server? What happens when you access the welcome page: http://hostname:3838? There is one RMarkdown application on that page. What do you see for that? |
It's same case as in case of our Rmarkdown document - only loading animation, which do not disappear. If I remember correctly It was the same, when we were using vanilla R 3.0 on that server. Is there any additional error log? Or any possibility to start logging additional information? |
I think it also important to mention that previously we put shiny app in our server and everything worked fine. |
I have tried with Revo R as well, and no issues. I thought it might be permission issue, but cannot reproduce what you are seeing when limiting permissions. There are application log file created in the /var/log/shiny-server directory. See if that file shows anything more. And you said the plain Shiny applications run fine, right? It is only Shiny applications within RMarkdown that show the problem? |
As for content of /var/log/shiny-server directory, when I start loading http://[host]:3838/test/ a file appears there (named like: test-shiny-20150911-072905-49996.log ), and it's removed when the tab it was opened in is closed.
There are some files which weren't removed. Each of them contains something like:
or
No "not-removed" file was created today. Even when http://[host]:3838/test/ was left opened in a browser tab for over an hour. |
Don't know off hand what causes that error; it is likely that a version of one of your packages is causing that. I will ask around. Can you install latest version of "rmarkdown" and see if that makes any difference? |
I've installed rmarkdown_0.8 from github. Nothing has changed. |
@trestletech mentioned that you might be having a wrong version of Pandoc, and running into this issue: rstudio/rmarkdown#109 Can you run the following commands on the server:
|
The second one ( |
So it seems to be a Pandoc issue. My suggestion is for you to uninstall your current version of Shiny Server and install the latest available version. The version you have (403) should work, but seems like there might have been an issue during installation. To uninstall:
To download and install latest version please refer to this page: https://www.rstudio.com/products/shiny/download-server/ See if there is any error during installation. |
I've uninstalled and installed newer version of Shiny:
Nothing has changed. Apllication still hangs on loading screen. |
Can you add the following to one of you Shiny applications that runs fine: Sys.getenv() so we can see what is the environment when Shiny Server runs. |
The output is:
|
The issue is most likely caused by the LANG setting. Please change that to "en_US.UTF-8". Make sure the change takes effect globally. |
Change of LANG variable helped. It looks everything works now. Thanks! |
Good to hear that. |
I have a problem with my simple
RMarkdown
document which use shiny widgets. I mean, it works fine locally but when I want to throw it into theShinyServer
it does not work at all. Actually it does not give any error.title: "Test"
author: ""
date: "17.08.2015"
runtime: shiny
output: html_document
library(ggplot2)
I use ShinyServer v1.3.0 and work on Revolution R Open 3.2.1.
sessionInfo()
other attached packages:
[1] ggplot2_1.0.1 rmarkdown_0.7 shiny_0.12.1
[4] RevoUtilsMath_3.2.1
loaded via a namespace (and not attached):
[1] Rcpp_0.11.6 digest_0.6.8 MASS_7.3-40 mime_0.3
[5] grid_3.2.1 R6_2.0.1 plyr_1.8.3 xtable_1.7-4
[9] gtable_0.1.2 magrittr_1.5 scales_0.2.5 stringi_0.5-5
[13] reshape2_1.4.1 proto_0.3-10 tools_3.2.1 stringr_1.0.0
[17] munsell_0.4.2 httpuv_1.3.2 colorspace_1.2-6 htmltools_0.2.6
.The text was updated successfully, but these errors were encountered: