Rhandsontable 显示在本地部署的应用程序上,但不显示在 AWS EC2 Ubuntu 18.04 服务器中的应用程序上
Rhandsontable displays on a locally deployed app, but not on app displayed in AWS EC2 Ubuntu 18.04 server
我正在尝试在私人服务器上部署一个允许我编辑 RHandsontable 对象的应用程序。出于隐私原因,我无法在此处进行演示。
我已经成功地在本地测试了我的应用程序,但是当我在我的服务器上部署它时,RHandsontable 不显示,并且应用程序 "screen goes gray" 在我开始在那里交互之后,所以它不允许任何进一步的在那里互动。
这是它在我的 Windows 10 浏览器 上的样子。您甚至可以看到 2 个可以编辑的 rhandsontables(它们是空的,因为它没有任何选择)。 "Guardar" 按钮目前是一个虚拟按钮。
这是它在 AWS Ubuntu 18.04 Shiny Server 上的样子。没有 rhandsontable 负载(尽管按钮加载)。相同的脚本,只是不同的目录。我验证了加载到两个闪亮应用程序中的数据是相同的。您还可以欣赏到虚拟按钮 "Guardar" 仍然出现。
我在 shiny 和 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 我没有正确修复的问题造成的)。 运行 java - 我的 VM 上的版本产生
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
Ubuntu18.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 上渲染也失败了。
对于任何对我的问题感兴趣的人,它实际上与防火墙问题有关,与服务器端或兼容性问题无关。
当我从非我组织的网络(即我的手机 phone 的共享互联网或家庭网络)访问我的应用程序时,我完全没有问题。
我正在尝试在私人服务器上部署一个允许我编辑 RHandsontable 对象的应用程序。出于隐私原因,我无法在此处进行演示。
我已经成功地在本地测试了我的应用程序,但是当我在我的服务器上部署它时,RHandsontable 不显示,并且应用程序 "screen goes gray" 在我开始在那里交互之后,所以它不允许任何进一步的在那里互动。
这是它在我的 Windows 10 浏览器 上的样子。您甚至可以看到 2 个可以编辑的 rhandsontables(它们是空的,因为它没有任何选择)。 "Guardar" 按钮目前是一个虚拟按钮。
这是它在 AWS Ubuntu 18.04 Shiny Server 上的样子。没有 rhandsontable 负载(尽管按钮加载)。相同的脚本,只是不同的目录。我验证了加载到两个闪亮应用程序中的数据是相同的。您还可以欣赏到虚拟按钮 "Guardar" 仍然出现。
我在 shiny 和 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 我没有正确修复的问题造成的)。 运行 java - 我的 VM 上的版本产生
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
Ubuntu18.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 上渲染也失败了。
对于任何对我的问题感兴趣的人,它实际上与防火墙问题有关,与服务器端或兼容性问题无关。
当我从非我组织的网络(即我的手机 phone 的共享互联网或家庭网络)访问我的应用程序时,我完全没有问题。