I have an app I'm working on which runs well locally but deployment fails with timeout when trying to access it online. The log is attached below. It appears to be a problem with the management of the libraries with .Renv but I haven't managed to find any solutions from some googling. A link to a guide would be great if this is a common issue.
I have tried deploying the app from both a windows PC and Mac but it appears the same error exists.
Many thanks for your help.
2021-05-18T07:56:08.821405+00:00 shinyapps[4132270]: Running on host: d2b58147e3e8
2021-05-18T07:56:08.829370+00:00 shinyapps[4132270]: R version: 4.0.5
2021-05-18T07:56:08.829353+00:00 shinyapps[4132270]: LANG: en_GB.UTF-8
2021-05-18T07:56:08.829397+00:00 shinyapps[4132270]: httpuv version: 1.6.1
2021-05-18T07:56:09.036762+00:00 shinyapps[4132270]: Starting R with process ID: '26'
2021-05-18T07:56:08.829404+00:00 shinyapps[4132270]: rmarkdown version: 2.8
2021-05-18T07:56:08.829381+00:00 shinyapps[4132270]: shiny version: 1.6.0
2021-05-18T07:56:09.033430+00:00 shinyapps[4132270]: Using jsonlite for JSON processing
2021-05-18T07:56:08.829344+00:00 shinyapps[4132270]: Server version: 1.8.6.1
2021-05-18T07:56:08.829440+00:00 shinyapps[4132270]: knitr version: 1.33
2021-05-18T07:56:08.829450+00:00 shinyapps[4132270]: jsonlite version: 1.7.2
2021-05-18T07:56:08.829487+00:00 shinyapps[4132270]: htmltools version: 0.5.1.1
2021-05-18T07:56:09.036762+00:00 shinyapps[4132270]:
2021-05-18T07:56:08.829632+00:00 shinyapps[4132270]: Using pandoc: /opt/connect/ext/pandoc/2.11
2021-05-18T07:56:08.829450+00:00 shinyapps[4132270]: RJSONIO version: (none)
2021-05-18T07:56:10.488839+00:00 shinyapps[4132270]: renv appears to be unable to access the requested library path:
2021-05-18T07:56:10.488842+00:00 shinyapps[4132270]:
2021-05-18T07:56:10.488843+00:00 shinyapps[4132270]: /opt/R/4.0.5/lib/R/library
2021-05-18T07:56:10.488843+00:00 shinyapps[4132270]:
2021-05-18T07:56:10.488848+00:00 shinyapps[4132270]:
2021-05-18T07:56:10.488847+00:00 shinyapps[4132270]: Check that the 'shiny' user has read / write access to this directory.
2021-05-18T07:56:10.882846+00:00 shinyapps[4132270]: Retrieving '...://cloud.r-project.org/src/contrib/shiny_1.6.0.tar.gz' ...
2021-05-18T07:56:10.930936+00:00 shinyapps[4132270]: OK [downloaded 4 Mb in 0 secs]
2021-05-18T07:56:11.481270+00:00 shinyapps[4132270]: OK [downloaded 686.3 Kb in 0 secs]
2021-05-18T07:56:11.432320+00:00 shinyapps[4132270]: Retrieving '...://cloud.r-project.org/src/contrib/tidyverse_1.3.1.tar.gz' ...
2021-05-18T07:56:11.921433+00:00 shinyapps[4132270]: Retrieving '...://cloud.r-project.org/src/contrib/scales_1.1.1.tar.gz' ...
2021-05-18T07:56:11.961023+00:00 shinyapps[4132270]: OK [downloaded 503.1 Kb in 0 secs]
2021-05-18T07:56:12.283075+00:00 shinyapps[4132270]: Retrieving '...://cloud.r-project.org/src/contrib/here_1.0.1.tar.gz' ...
2021-05-18T07:56:12.337414+00:00 shinyapps[4132270]: OK [downloaded 32.2 Kb in 0.1 secs]
2021-05-18T07:56:12.446347+00:00 shinyapps[4132270]: OK [downloaded 1.5 Mb in 0 secs]
2021-05-18T07:56:12.406192+00:00 shinyapps[4132270]: Retrieving '...://cloud.r-project.org/src/contrib/DT_0.18.tar.gz' ...
2021-05-18T07:56:12.661205+00:00 shinyapps[4132270]: Retrieving '...://cloud.r-project.org/src/contrib/countrycode_1.2.0.tar.gz' ...
2021-05-18T07:56:12.720690+00:00 shinyapps[4132270]: OK [downloaded 488.8 Kb in 0.1 secs]
2021-05-18T07:56:12.903116+00:00 shinyapps[4132270]: OK [downloaded 1.9 Mb in 0.1 secs]
2021-05-18T07:56:12.796187+00:00 shinyapps[4132270]: Retrieving '...://cloud.r-project.org/src/contrib/leaflet_2.0.4.1.tar.gz' ...
2021-05-18T07:56:13.108663+00:00 shinyapps[4132270]: Retrieving '...://cloud.r-project.org/src/contrib/leaflet.extras_1.0.0.tar.gz' ...
2021-05-18T07:56:13.185936+00:00 shinyapps[4132270]: OK [downloaded 1.7 Mb in 0.1 secs]
2021-05-18T07:56:13.345806+00:00 shinyapps[4132270]: Retrieving '...://cloud.r-project.org/src/contrib/shinydashboard_0.7.1.tar.gz' ...
2021-05-18T07:56:13.415258+00:00 shinyapps[4132270]: OK [downloaded 231.6 Kb in 0.1 secs]
2021-05-18T07:56:13.493767+00:00 shinyapps[4132270]: Retrieving '...://cloud.r-project.org/src/contrib/shinycssloaders_1.0.0.tar.gz' ...
2021-05-18T07:56:13.554142+00:00 shinyapps[4132270]: OK [downloaded 120.1 Kb in 0.1 secs]
2021-05-18T07:56:13.619086+00:00 shinyapps[4132270]: Retrieving '...://cloud.r-project.org/src/contrib/sf_0.9-8.tar.gz' ...
2021-05-18T07:56:13.708710+00:00 shinyapps[4132270]: OK [downloaded 4 Mb in 0.1 secs]
2021-05-18T07:56:14.030994+00:00 shinyapps[4132270]: OK [downloaded 448.9 Kb in 0 secs]
2021-05-18T07:56:14.072347+00:00 shinyapps[4132270]: Warning in dir.create(rownames(info), recursive = TRUE) :
2021-05-18T07:56:13.992164+00:00 shinyapps[4132270]: Retrieving 'https://cloud.r-project.org/src/contrib/snakecase_0.11.0.tar.gz' ...
2021-05-18T07:56:14.072348+00:00 shinyapps[4132270]: cannot create dir '/opt/R/4.0.5/lib/R/library/.renv', reason 'Permission denied'
2021-05-18T07:56:14.087661+00:00 shinyapps[4132270]: Installing shiny [1.6.0] ...
2021-05-18T07:56:30.982668+00:00 shinyapps[4132270]: Copying shiny [1.6.0] into the cache ...
2021-05-18T07:56:31.090556+00:00 shinyapps[4132270]: Installing scales [1.1.1] ...
2021-05-18T07:56:31.087995+00:00 shinyapps[4132270]: OK [copied 276 files in 0.09 seconds]
2021-05-18T07:56:30.976645+00:00 shinyapps[4132270]: OK [built from source]
2021-05-18T07:56:34.475955+00:00 shinyapps[4132270]: OK [built from source]
2021-05-18T07:56:34.480897+00:00 shinyapps[4132270]: Copying scales [1.1.1] into the cache ...
2021-05-18T07:56:34.495572+00:00 shinyapps[4132270]: OK [copied 35 files in 0.013 seconds]
2021-05-18T07:56:34.498023+00:00 shinyapps[4132270]: Installing tidyverse [1.3.1] ...
2021-05-18T07:56:38.990333+00:00 shinyapps[4132270]: OK [built from source]
2021-05-18T07:56:39.012067+00:00 shinyapps[4132270]: Installing here [1.0.1] ...
2021-05-18T07:56:38.995122+00:00 shinyapps[4132270]: Copying tidyverse [1.3.1] into the cache ...
2021-05-18T07:56:39.009698+00:00 shinyapps[4132270]: OK [copied 30 files in 0.013 seconds]
2021-05-18T07:56:40.156296+00:00 shinyapps[4132270]: Copying here [1.0.1] into the cache ...
2021-05-18T07:56:40.151395+00:00 shinyapps[4132270]: OK [built from source]
2021-05-18T07:56:40.174240+00:00 shinyapps[4132270]: OK [copied 43 files in 0.015 seconds]
2021-05-18T07:56:40.176555+00:00 shinyapps[4132270]: Installing DT [0.18] ...
2021-05-18T07:56:42.406459+00:00 shinyapps[4132270]: OK [built from source]
2021-05-18T07:56:42.411177+00:00 shinyapps[4132270]: Copying DT [0.18] into the cache ...
2021-05-18T07:56:42.523102+00:00 shinyapps[4132270]: OK [copied 277 files in 0.091 seconds]
2021-05-18T07:56:42.530831+00:00 shinyapps[4132270]: Installing countrycode [1.2.0] ...
2021-05-18T07:56:44.797505+00:00 shinyapps[4132270]: OK [built from source]
2021-05-18T07:56:44.816118+00:00 shinyapps[4132270]: OK [copied 25 files in 0.013 seconds]
2021-05-18T07:56:44.801991+00:00 shinyapps[4132270]: Copying countrycode [1.2.0] into the cache ...
2021-05-18T07:56:44.818430+00:00 shinyapps[4132270]: Installing leaflet [2.0.4.1] ...
2021-05-18T07:56:47.416591+00:00 shinyapps[4132270]: OK [built from source]
2021-05-18T07:56:47.421567+00:00 shinyapps[4132270]: Copying leaflet [2.0.4.1] into the cache ...
2021-05-18T07:56:47.477083+00:00 shinyapps[4132270]: OK [copied 138 files in 0.047 seconds]
2021-05-18T07:56:47.479491+00:00 shinyapps[4132270]: Installing leaflet.extras [1.0.0] ...
2021-05-18T07:56:49.468359+00:00 shinyapps[4132270]: OK [built from source]
2021-05-18T07:56:49.533035+00:00 shinyapps[4132270]: OK [copied 169 files in 0.048 seconds]
2021-05-18T07:56:49.473680+00:00 shinyapps[4132270]: Copying leaflet.extras [1.0.0] into the cache ...
2021-05-18T07:56:49.535586+00:00 shinyapps[4132270]: Installing shinydashboard [0.7.1] ...
2021-05-18T07:56:51.449363+00:00 shinyapps[4132270]: OK [built from source]
2021-05-18T07:56:51.454628+00:00 shinyapps[4132270]: Copying shinydashboard [0.7.1] into the cache ...
2021-05-18T07:56:51.470773+00:00 shinyapps[4132270]: OK [copied 41 files in 0.014 seconds]
2021-05-18T07:56:51.473189+00:00 shinyapps[4132270]: Installing shinycssloaders [1.0.0] ...
2021-05-18T07:56:52.959917+00:00 shinyapps[4132270]: OK [built from source]
2021-05-18T07:56:52.985548+00:00 shinyapps[4132270]: Installing sf [0.9-8] ...
2021-05-18T07:56:52.964965+00:00 shinyapps[4132270]: Copying shinycssloaders [1.0.0] into the cache ...
2021-05-18T07:56:52.982465+00:00 shinyapps[4132270]: OK [copied 39 files in 0.015 seconds]