将ShinyWebApp部署到rstudio-connect期间出现问题

时间:2020-11-04 08:45:33

标签: r linux deployment connection

我将ShinyWebApp部署到RStudio Connect时遇到问题。 静态内容(例如Rmd或pdf)都可以,但是在部署ShinyWebApp时(我使用了模板ShinyWebApp,没有任何特殊的库),我在长时间的错误消息后得到了

GET /__api__/tasks/f5IgRmpgGHqgw6dW?first_status=20 470ms
[Connect] 2020/11/04 08:36:23.599622953 Error in hash(descFile): No DESCRIPTION file at path '/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/4.0.3/BH/DESCRIPTION'!
[Connect] 2020/11/04 08:36:23.599645555 
[Connect] 2020/11/04 08:36:23.599678757 Unable to fully restore the R packages associated with this deployment.
[Connect] 2020/11/04 08:36:23.599680357 Please review the preceding messages to determine which package
[Connect] 2020/11/04 08:36:23.599690758 encountered installation difficulty and the cause of the failure.
[Connect] 2020/11/04 08:36:23.604026624 Warning message:
[Connect] 2020/11/04 08:36:23.604160836 In packrat::restore(overwrite.dirty = TRUE, prompt = FALSE, restart = FALSE) :
[Connect] 2020/11/04 08:36:23.604167036   The most recent snapshot was generated using R version 4.0.2
GET /__api__/tasks/f5IgRmpgGHqgw6dW?first_status=28 189ms
[Connect] Build error: exit status 1
GET /__api__/applications/4/config 220ms
----- Deployment log finished at  2020-11-04 09:36:25  -----
Warning message:
Error detecting locale: Error in read.table(file = file, header = header, sep = sep, quote = quote, : incomplete final line found by readTableHeader on 'raw'
 (Using default: en_US) 

BH软件包似乎有问题,但此软件包已存在并已正确安装:

root@RSCONNECT_MACHINE:/ # ls -la /opt/R/3.6.2/lib/R/library/BH/
total 48
drwxr-xr-x 6 root root 4096 Nov  3 11:56 .
drwxr-xr-x 1 root root 4096 Nov  3 11:56 ..
-rw-r--r-- 1 root root 1616 Nov  3 11:56 DESCRIPTION
drwxr-xr-x 2 root root 4096 Nov  3 11:56 help
drwxr-xr-x 2 root root 4096 Nov  3 11:56 html
drwxr-xr-x 3 root root 4096 Nov  3 11:56 include
-rw-r--r-- 1 root root   47 Nov  3 11:56 INDEX
drwxr-xr-x 2 root root 4096 Nov  3 11:56 Meta
-rw-r--r-- 1 root root   31 Nov  3 11:56 NAMESPACE
-rw-r--r-- 1 root root 7535 Nov  3 11:56 NEWS.Rd

RStudio桌面

  • 版本1.3.1056
  • 适用于Windows的“睡莲”(5a4dee98,2020-07-07)
  • Mozilla / 5.0(Windows NT 10.0; Win64; x64)AppleWebKit / 537.36(KHTML,如Gecko)QtWebEngine / 5.12.8 Chrome / 69.0.3497.128 Safari / 537.36 本地计算机R-4.0.2上的R版本

RStudio Connect v1.8.4.2-2

  • 构建“ v1.8.4.2”
  • 可用的R版本:
    • 4.0.3
    • 3.6.3
    • 3.6.2
  • 可用的Python版本:
    • 3.6.5

谢谢您的建议。

0 个答案:

没有答案