Rhandsontable会显示在本地部署的应用程序上,但不会显示在AWS EC2 Ubuntu 18.04服务器上显示的应用程序上

时间:2019-04-04 15:36:29

标签: r shiny-server rhandsontable

我正在尝试在专用服务器上部署允许我编辑RHandsontable对象的应用程序。出于隐私原因,我无法在此处演示。

我已经在本地成功测试了我的应用程序,但是当我在服务器上部署该应用程序时,RHandsontable无法显示,并且在我开始与该应用程序交互后,该应用程序“屏幕变灰”,因此该应用程序不允许在该处进行任何进一步的交互

这是在Windows 10浏览器上的外观。您甚至可以看到2个可以编辑的rhonsontables(它们是空的,因为它没有任何选择)。 “ Guardar”按钮目前是虚拟对象。

**This is how it looks on my Windows 10 browser**

这是在AWS Ubuntu 18.04 Shiny Server上的外观。没有可调节负载(尽管按钮可以加载)。相同的脚本,只是不同的目录。我验证了加载到两个闪亮应用程序中的数据是否相同。您还可以欣赏到虚拟按钮“ Guardar”仍然出现。

**This is how it looks on AWS Ubuntu 18.04 Shiny Server**

我尝试了使用闪亮包和DT包渲染相同的data.tables,结果与上图所示相同。

此外,当我在/ var / log / shiny-server /中检查服务器日志时,没有出现问题(例如:缺少软件包,代码损坏等)。最后的日志如下:

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union


Attaching package: ‘DT’

The following objects are masked from ‘package:shiny’:

    dataTableOutput, renderDataTable


Listening on http://127.0.0.1:41757

这表明我遇到了Shiny Server或Ubuntu中出现的兼容性/交互问题,而我的PC中没有出现。

我在Stack Overflow和jrowen的GitHub页面中看到了不同的来源,但没有成功,我想知道是否遗漏了什么。

两台计算机之间的R版本之间存在细微差异(我的Ubuntu VM是最新的,因此某些软件包已更新)。这也可能会引起问题,但是我不太肯定这可能是原因。

我还在两个实例上都安装了JRE(我还认为这可能是由于Java问题导致的,而我没有正确解决)。在我的VM上运行java -version会产生

openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

我的个人计算机是Windows 10计算机。详细信息:

R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=Spanish_Spain.1252  LC_CTYPE=Spanish_Spain.1252   
[3] LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C                  
[5] LC_TIME=Spanish_Spain.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] readxl_1.1.0        lubridate_1.7.4     mailR_0.4.1         forcats_0.3.0      
 [5] stringr_1.3.1       purrr_0.2.5         readr_1.1.1         tidyr_0.8.1        
 [9] tibble_2.0.1        ggplot2_3.0.0.9000  tidyverse_1.2.1     DBI_1.0.0          
[13] RODBC_1.3-15        DT_0.4              rhandsontable_0.3.7 Cairo_1.5-9        
[17] openxlsx_4.1.0      knitr_1.20          dplyr_0.8.0.1       shiny_1.1.0        

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0        lattice_0.20-35   assertthat_0.2.0  digest_0.6.15     mime_0.5         
 [6] R6_2.2.2          cellranger_1.1.0  plyr_1.8.4        backports_1.1.2   evaluate_0.10.1  
[11] httr_1.3.1        highr_0.7         pillar_1.3.1      rlang_0.3.1       lazyeval_0.2.1   
[16] rstudioapi_0.7    R.oo_1.22.0       R.utils_2.8.0     rmarkdown_1.11    htmlwidgets_1.2  
[21] munsell_0.5.0     broom_0.5.0       compiler_3.5.0    httpuv_1.4.4.1    modelr_0.1.2     
[26] pkgconfig_2.0.2   htmltools_0.3.6   tidyselect_0.2.5  crayon_1.3.4      withr_2.1.2      
[31] later_0.7.3       R.methodsS3_1.7.1 grid_3.5.0        nlme_3.1-137      jsonlite_1.5     
[36] xtable_1.8-2      gtable_0.2.0      magrittr_1.5      scales_0.5.0      zip_1.0.0        
[41] cli_1.0.1         stringi_1.1.7     promises_1.0.1    xml2_1.2.0        tools_3.5.0      
[46] glue_1.3.0        hms_0.4.2         rsconnect_0.8.12  yaml_2.1.19       colorspace_1.3-2 
[51] rvest_0.3.2       rJava_0.9-10      haven_1.1.2      

Ubuntu 18.04计算机的运行方式如下:

R version 3.5.3 (2019-03-11)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.2 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale:
 [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8
 [4] LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8
 [7] LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C
[10] LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] readxl_1.3.1        DT_0.5              rhandsontable_0.3.7
[4] knitr_1.22          shiny_1.2.0         dplyr_0.8.0.1

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.1       magrittr_1.5     tidyselect_0.2.5 xtable_1.8-3
 [5] R6_2.4.0         rlang_0.3.3      tools_3.5.3      xfun_0.5
 [9] htmltools_0.3.6  assertthat_0.2.1 digest_0.6.18    tibble_2.1.1
[13] crayon_1.3.4     purrr_0.3.2      later_0.8.0      htmlwidgets_1.3
[17] promises_1.0.1   glue_1.3.1       mime_0.6         cellranger_1.1.0
[21] compiler_3.5.3   pillar_1.3.1     jsonlite_1.6     httpuv_1.5.0
[25] pkgconfig_2.0.2

预先,非常感谢您的帮助。如果您需要任何其他信息(我可以提供),请在评论中进行澄清。

编辑:我在本地和Ubuntu上也检查了data.tables而不是rhandsontables的输出,并且仅在我的Ubuntu VM上渲染也失败了。

1 个答案:

答案 0 :(得分:0)

对于任何对我的问题感兴趣的人,它实际上与防火墙问题有关,与服务器端或兼容性问题无关。

当我从组织以外的网络(即手机的共享Internet或家庭网络)访问我的应用程序时,我完全没有问题。

相关问题