rsconnect::deployApp - Unhandled Exception: HTTP 599: Timeout

Dear all,

I am re-deploying an existing app (https://lgatto.shinyapps.io/synechocystis/) and systematically get a Timout:

> rsconnect::deployApp()
Preparing to deploy application...Update application currently deployed at
https://lgatto.shinyapps.io/synechocystis/? [Y/n] 
DONE
Uploading bundle for application: 317049...DONE
Deploying bundle: 1483991 for application: 317049 ...
Waiting for task: 537651028
  building: Processing bundle: 1483991
  building: Parsing manifest
  building: Building image: 1498404
  building: Installing system dependencies
  building: Fetching packages
  building: Building package: mzR

################################ Begin Task Log ################################ 
[2018-07-17T10:10:07.157009518+0000] Execute script: packages/build/igraph.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libglpk-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libamd2.4.1 libbtf1.2.1 libcamd2.4.1 libccolamd2.9.1 libcholmod3.0.6
  libcolamd2.9.1 libcsparse3.1.4 libcxsparse3.1.4 libglpk36 libgmp-dev
  libgmpxx4ldbl libklu1.3.3 libldl2.2.1 libspqr2.0.2 libsuitesparse-dev
  libsuitesparseconfig4.4.6 libumfpack5.7.1
Suggested packages:
  libiodbc2-dev gmp-doc libgmp10-doc libmpfr-dev
The following NEW packages will be installed:
  libamd2.4.1 libbtf1.2.1 libcamd2.4.1 libccolamd2.9.1 libcholmod3.0.6
  libcolamd2.9.1 libcsparse3.1.4 libcxsparse3.1.4 libglpk-dev libglpk36
  libgmp-dev libgmpxx4ldbl libklu1.3.3 libldl2.2.1 libspqr2.0.2
  libsuitesparse-dev libsuitesparseconfig4.4.6 libumfpack5.7.1
0 upgraded, 18 newly installed, 0 to remove and 66 not upgraded.
Need to get 2864 kB of archives.
After this operation, 12.2 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libsuitesparseconfig4.4.6 amd64 1:4.4.6-1 [9322 B]
[...]
Setting up libspqr2.0.2:amd64 (1:4.4.6-1) ...
Setting up libsuitesparse-dev:amd64 (1:4.4.6-1) ...
Setting up libglpk-dev (4.57-1build3) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 537651029 error: Unhandled Exception: HTTP 599: Timeout

The app uses several Bioconductor packages. mzR, the one listed before the task logging, takes quite some time to build and has several system dependencies, so it is a likely candidate for long build time.

This message mentions the same error and seemed to have managed to overcome it after several attempts. I have tried about half a dozen of times over the last 12 hours, without success. I haven't been able to find and rsconnect options to increase time before timeout.

Any help would be greatly appreciated.

Laurent

> sessionInfo()
R version 3.5.0 Patched (2018-05-14 r74725)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

Matrix products: default
BLAS: /usr/lib/atlas-base/atlas/libblas.so.3.0
LAPACK: /usr/lib/lapack/liblapack.so.3.0

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8    
 [5] LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_GB.UTF-8   
 [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
[1] BiocInstaller_1.30.0

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.17    msdata_0.20.0   packrat_0.4.9-3 digest_0.6.15  
 [5] rprojroot_1.3-2 bitops_1.0-6    backports_1.1.2 magrittr_1.5   
 [9] evaluate_0.10.1 stringi_1.2.3   rmarkdown_1.10  RJSONIO_1.3-0  
[13] tools_3.5.0     stringr_1.3.1   RCurl_1.95-4.11 rsconnect_0.8.8
[17] compiler_3.5.0  htmltools_0.3.6 knitr_1.20     
1 Like

Seems likely that this is an issue building mzR on the new base images that were released at the end of May.

I am not quite sure what is going on yet, but will update when I learn more.

I was able to deploy the sample Shiny application with the addition of library(mzR) successfully, with R 3.5.0. So that package should, in theory, now be cached for you, if you want to try deploying again.

1 Like

Thank you very much @josh, your suggestion to load the package explicitly fixed the deployment.

1 Like

Using the example I list here (and updating the Bioc pointers to 3.8) I get the same timeout error again relating to mzR that Laurent had last year.

> system.time(deployApp())
Preparing to deploy application...DONE
Uploading bundle for application: 756396...List of 10
 $ name      : chr "jquery"
 $ version   : chr "1.11.3"
 $ src       :List of 1
  ..$ file: chr ""
 $ meta      : NULL
 $ script    : chr "jquery.min.js"
 $ stylesheet: NULL
 $ head      : NULL
 $ attachment: NULL
 $ package   : NULL
 $ all_files : logi TRUE
 - attr(*, "class")= chr "html_dependency"
DONE
Deploying bundle: 1910959 for application: 756396 ...
Waiting for task: 591822017
  building: Parsing manifest
  building: Building image: 1996149
  building: Installing system dependencies
  building: Fetching packages
  building: Building package: mzR
################################ Begin Task Log ################################ 
[2019-03-02T14:59:38.298964259+0000] Execute script: packages/build/sys.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libapparmor-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  libapparmor-dev
0 upgraded, 1 newly installed, 0 to remove and 41 not upgraded.
Need to get 67.5 kB of archives.
After this operation, 228 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor-dev amd64 2.10.95-0ubuntu2.10 [67.5 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 67.5 kB in 0s (0 B/s)
Selecting previously unselected package libapparmor-dev:amd64.
(Reading database ... 119344 files and directories currently installed.)
Preparing to unpack .../libapparmor-dev_2.10.95-0ubuntu2.10_amd64.deb ...
Unpacking libapparmor-dev:amd64 (2.10.95-0ubuntu2.10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libapparmor-dev:amd64 (2.10.95-0ubuntu2.10) ...
[2019-03-02T14:59:43.427139507+0000] Execute script: packages/build/ncdf4.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libnetcdf-dev netcdf-bin
Reading package lists...
Building dependency tree...
Reading state information...
libnetcdf-dev is already the newest version (1:4.4.0-2).
The following NEW packages will be installed:
  netcdf-bin
0 upgraded, 1 newly installed, 0 to remove and 41 not upgraded.
Need to get 196 kB of archives.
After this operation, 542 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 netcdf-bin amd64 1:4.4.0-2 [196 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 196 kB in 0s (0 B/s)
Selecting previously unselected package netcdf-bin.
(Reading database ... 119366 files and directories currently installed.)
Preparing to unpack .../netcdf-bin_1%3a4.4.0-2_amd64.deb ...
Unpacking netcdf-bin (1:4.4.0-2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up netcdf-bin (1:4.4.0-2) ...
[2019-03-02T14:59:46.168002041+0000] Execute script: packages/build/igraph.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libglpk-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libamd2.4.1 libbtf1.2.1 libcamd2.4.1 libccolamd2.9.1 libcholmod3.0.6
  libcolamd2.9.1 libcsparse3.1.4 libcxsparse3.1.4 libglpk36 libgmp-dev
  libgmpxx4ldbl libklu1.3.3 libldl2.2.1 libspqr2.0.2 libsuitesparse-dev
  libsuitesparseconfig4.4.6 libumfpack5.7.1
Suggested packages:
  libiodbc2-dev gmp-doc libgmp10-doc libmpfr-dev
The following NEW packages will be installed:
  libamd2.4.1 libbtf1.2.1 libcamd2.4.1 libccolamd2.9.1 libcholmod3.0.6
  libcolamd2.9.1 libcsparse3.1.4 libcxsparse3.1.4 libglpk-dev libglpk36
  libgmp-dev libgmpxx4ldbl libklu1.3.3 libldl2.2.1 libspqr2.0.2
  libsuitesparse-dev libsuitesparseconfig4.4.6 libumfpack5.7.1
0 upgraded, 18 newly installed, 0 to remove and 41 not upgraded.
Need to get 2864 kB of archives.
After this operation, 12.2 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libsuitesparseconfig4.4.6 amd64 1:4.4.6-1 [9322 B]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libamd2.4.1 amd64 1:4.4.6-1 [21.3 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libbtf1.2.1 amd64 1:4.4.6-1 [10.8 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libcamd2.4.1 amd64 1:4.4.6-1 [20.0 kB]
Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libccolamd2.9.1 amd64 1:4.4.6-1 [21.5 kB]
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libcolamd2.9.1 amd64 1:4.4.6-1 [15.7 kB]
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libcholmod3.0.6 amd64 1:4.4.6-1 [293 kB]
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libcsparse3.1.4 amd64 1:4.4.6-1 [26.3 kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libcxsparse3.1.4 amd64 1:4.4.6-1 [62.8 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libglpk36 amd64 4.57-1build3 [386 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libgmpxx4ldbl amd64 2:6.1.0+dfsg-2 [8948 B]
Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libgmp-dev amd64 2:6.1.0+dfsg-2 [314 kB]
Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libklu1.3.3 amd64 1:4.4.6-1 [71.5 kB]
Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libldl2.2.1 amd64 1:4.4.6-1 [10.6 kB]
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libumfpack5.7.1 amd64 1:4.4.6-1 [223 kB]
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libspqr2.0.2 amd64 1:4.4.6-1 [63.6 kB]
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libsuitesparse-dev amd64 1:4.4.6-1 [899 kB]
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libglpk-dev amd64 4.57-1build3 [408 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 2864 kB in 0s (27.7 MB/s)
Selecting previously unselected package libsuitesparseconfig4.4.6:amd64.
(Reading database ... 119378 files and directories currently installed.)
Preparing to unpack .../libsuitesparseconfig4.4.6_1%3a4.4.6-1_amd64.deb ...
Unpacking libsuitesparseconfig4.4.6:amd64 (1:4.4.6-1) ...
Selecting previously unselected package libamd2.4.1:amd64.
Preparing to unpack .../libamd2.4.1_1%3a4.4.6-1_amd64.deb ...
Unpacking libamd2.4.1:amd64 (1:4.4.6-1) ...
Selecting previously unselected package libbtf1.2.1:amd64.
Preparing to unpack .../libbtf1.2.1_1%3a4.4.6-1_amd64.deb ...
Unpacking libbtf1.2.1:amd64 (1:4.4.6-1) ...
Selecting previously unselected package libcamd2.4.1:amd64.
Preparing to unpack .../libcamd2.4.1_1%3a4.4.6-1_amd64.deb ...
Unpacking libcamd2.4.1:amd64 (1:4.4.6-1) ...
Selecting previously unselected package libccolamd2.9.1:amd64.
Preparing to unpack .../libccolamd2.9.1_1%3a4.4.6-1_amd64.deb ...
Unpacking libccolamd2.9.1:amd64 (1:4.4.6-1) ...
Selecting previously unselected package libcolamd2.9.1:amd64.
Preparing to unpack .../libcolamd2.9.1_1%3a4.4.6-1_amd64.deb ...
Unpacking libcolamd2.9.1:amd64 (1:4.4.6-1) ...
Selecting previously unselected package libcholmod3.0.6:amd64.
Preparing to unp################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 591822025 error: Unhandled Exception: HTTP 599: Timeout during request
Timing stopped at: 50.56 8.041 978.1

Is this from Shiny's side?

Any help would be greatly appreciated! I have several apps I wish to deploy ASAP that rely on mzR. Many thanks in advance! :pray:

Note: I have commented on a similar post relating to this issue.

Here is my sessionInfo()

R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

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

other attached packages:
 [1] rsconnect_0.8.13     shinythemes_1.1.2    pRoloc_1.23.2       
 [4] BiocParallel_1.16.6  MLInterfaces_1.62.0  cluster_2.0.7-1     
 [7] annotate_1.60.0      XML_3.98-1.17        AnnotationDbi_1.44.0
[10] IRanges_2.16.0       MSnbase_2.8.3        ProtGenerics_1.14.0 
[13] S4Vectors_0.20.1     Biobase_2.42.0       BiocGenerics_0.28.0 
[16] mzR_2.16.1           Rcpp_1.0.0           shiny_1.2.0         

loaded via a namespace (and not attached):
  [1] plyr_1.8.4            igraph_1.2.4         
  [3] lazyeval_0.2.1        splines_3.5.1        
  [5] ggvis_0.4.4           crosstalk_1.0.0      
  [7] ggplot2_3.1.0         digest_0.6.18        
  [9] foreach_1.4.4         htmltools_0.3.6      
 [11] viridis_0.5.1         gdata_2.18.0         
 [13] magrittr_1.5          memoise_1.1.0        
 [15] doParallel_1.0.14     mixtools_1.1.0       
 [17] sfsmisc_1.1-3         limma_3.38.3         
 [19] recipes_0.1.4         gower_0.1.2          
 [21] rda_1.0.2-2.1         dimRed_0.2.2         
 [23] askpass_1.1           lpSolve_5.6.13       
 [25] prettyunits_1.0.2     colorspace_1.4-0     
 [27] blob_1.1.1            xfun_0.5             
 [29] dplyr_0.8.0.1         jsonlite_1.6         
 [31] crayon_1.3.4          RCurl_1.95-4.11      
 [33] hexbin_1.27.2         genefilter_1.64.0    
 [35] impute_1.56.0         DRR_0.0.3            
 [37] survival_2.43-3       iterators_1.0.10     
 [39] glue_1.3.0            gtable_0.2.0         
 [41] ipred_0.9-8           zlibbioc_1.28.0      
 [43] kernlab_0.9-27        prabclus_2.2-7       
 [45] DEoptimR_1.0-8        scales_1.0.0         
 [47] vsn_3.50.0            mvtnorm_1.0-9        
 [49] DBI_1.0.0             viridisLite_0.3.0    
 [51] xtable_1.8-3          progress_1.2.0       
 [53] bit_1.1-14            proxy_0.4-22         
 [55] mclust_5.4.2          preprocessCore_1.44.0
 [57] DT_0.5                lava_1.6.5           
 [59] prodlim_2018.04.18    sampling_2.8         
 [61] htmlwidgets_1.3       httr_1.4.0           
 [63] threejs_0.3.1         FNN_1.1.3            
 [65] RColorBrewer_1.1-2    fpc_2.1-11.1         
 [67] modeltools_0.2-22     pkgconfig_2.0.2      
 [69] flexmix_2.3-15        nnet_7.3-12          
 [71] caret_6.0-81          tidyselect_0.2.5     
 [73] rlang_0.3.1           reshape2_1.4.3       
 [75] later_0.8.0           munsell_0.5.0        
 [77] mlbench_2.1-1         tools_3.5.1          
 [79] LaplacesDemon_16.1.1  generics_0.0.2       
 [81] RSQLite_2.1.1         pls_2.7-0            
 [83] evaluate_0.13         stringr_1.4.0        
 [85] mzID_1.20.1           yaml_2.2.0           
 [87] ModelMetrics_1.2.2    knitr_1.21           
 [89] bit64_0.9-7           robustbase_0.93-3    
 [91] randomForest_4.6-14   purrr_0.3.0          
 [93] packrat_0.5.0         dendextend_1.9.0     
 [95] ncdf4_1.16            nlme_3.1-137         
 [97] whisker_0.3-2         mime_0.6             
 [99] biomaRt_2.38.0        compiler_3.5.1       
[101] rstudioapi_0.9.0      e1071_1.7-0.1        
[103] affyio_1.52.0         tibble_2.0.1         
[105] stringi_1.3.1         highr_0.7            
[107] lattice_0.20-38       trimcluster_0.1-2.1  
[109] Matrix_1.2-15         markdown_0.9         
[111] gbm_2.1.5             pillar_1.3.1         
[113] BiocManager_1.30.4    MALDIquant_1.18      
[115] data.table_1.12.0     bitops_1.0-6         
[117] httpuv_1.4.5.1        R6_2.4.0             
[119] pcaMethods_1.74.0     affy_1.60.0          
[121] hwriter_1.3.2         promises_1.0.1       
[123] gridExtra_2.3         codetools_0.2-16     
[125] MASS_7.3-51.1         gtools_3.8.1         
[127] assertthat_0.2.0      CVST_0.2-2           
[129] openssl_1.2.2         withr_2.1.2          
[131] diptest_0.75-7        hms_0.4.2            
[133] grid_3.5.1            rpart_4.1-13         
[135] timeDate_3043.102     coda_0.19-2          
[137] class_7.3-15          rmarkdown_1.11       
[139] segmented_0.5-3.0     lubridate_1.7.4      
[141] base64enc_0.1-3    

FYI - also updated to latest stable R release on another machine and got the same error.

I can reproduce this. Adding library('mzR') to the sample Shiny app produces the documented time out. @josh - is this possibly a similar issue with the base images as you mentioned last time?

mzR appears to die while building. I am investigating a fix, we will see if it pans out.

2 Likes

@josh
I appear to have the same problem. Is there a fix at hand right now?
I would like to deploy my app at https://bioit.shinyapps.io/PARs/

Currently I have the app I want to place there but without the mzR package and packages that are depending on this package (MSnbase). Thus the app doesn't work in this state.

Preparing to deploy application...DONE
Uploading bundle for application: 1205261...Detecting system locale ... DONE
Deploying bundle: 2421666 for application: 1205261 ...
Waiting for task: 648851881
  building: Building image: 2586592
  building: Installing system dependencies
  building: Fetching packages
  building: Building package: mzR
################################ Begin Task Log ################################ 
[2019-09-17T20:12:02.352883139+0000] Execute script: packages/build/rJava.sh
+ set -e
+ /usr/bin/R CMD javareconf
Java interpreter : /usr/bin/java
Java version     : 1.8.0_212
Java home path   : /usr/lib/jvm/java-8-openjdk-amd64/jre
Java compiler    : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar

trying to compile and link a JNI program 
detected JNI cpp flags    : -I$(JAVA_HOME)/../include -I$(JAVA_HOME)/../include/linux
detected JNI linker flags : -L$(JAVA_HOME)/lib/amd64/server -ljvm
gcc -I"/opt/R/3.5.1/lib/R/include" -DNDEBUG -I/usr/lib/jvm/java-8-openjdk-amd64/jre/../include -I/usr/lib/jvm/java-8-openjdk-amd64/jre/../include/linux  -I/usr/local/include   -fpic  -g -O2  -c conftest.c -o conftest.o
gcc -shared -L/opt/R/3.5.1/lib/R/lib -L/usr/local/lib -o conftest.so conftest.o -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server -ljvm -L/opt/R/3.5.1/lib/R/lib -lR


JAVA_HOME        : /usr/lib/jvm/java-8-openjdk-amd64/jre
Java library path: $(JAVA_HOME)/lib/amd64/server
JNI cpp flags    : -I$(JAVA_HOME)/../include -I$(JAVA_HOME)/../include/linux
JNI linker flags : -L$(JAVA_HOME)/lib/amd64/server -ljvm
Updating Java configuration in /opt/R/3.5.1/lib/R
Done.

[2019-09-17T20:12:03.092012878+0000] Execute script: packages/build/sys.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libapparmor-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  libapparmor-dev
0 upgraded, 1 newly installed, 0 to remove and 65 not upgraded.
Need to get 67.8 kB of archives.
After this operation, 229 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor-dev amd64 2.10.95-0ubuntu2.11 [67.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 67.8 kB in 0s (0 B/s)
Selecting previously unselected package libapparmor-dev:amd64.
(Reading database ... 119718 files and directories currently installed.)
Preparing to unpack .../libapparmor-dev_2.10.95-0ubuntu2.11_amd64.deb ...
Unpacking libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
[2019-09-17T20:12:08.752025067+0000] Execute script: packages/build/ncdf4.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libnetcdf-dev netcdf-bin
Reading package lists...
Building dependency tree...
Reading state information...
libnetcdf-dev is already the newest version (1:4.4.0-2).
The following NEW packages will be installed:
  netcdf-bin
0 upgraded, 1 newly installed, 0 to remove and 65 not upgraded.
Need to get 196 kB of archives.
After this operation, 542 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 netcdf-bin amd64 1:4.4.0-2 [196 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 196 kB in 0s (11.9 MB/s)
Selecting previously unselected package netcdf-bin.
(Reading database ... 119740 files and directories currently installed.)
Preparing to unpack .../netcdf-bin_1%3a4.4.0-2_amd64.deb ...
Unpacking netcdf-bin (1:4.4.0-2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up netcdf-bin (1:4.4.0-2) ...
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 648851884 error: Unhandled Exception: HTTP 599: Timeout during request
In addition: 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) 
Execution halted

my sessionInfo() is the following:

> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=Dutch_Belgium.1252  LC_CTYPE=Dutch_Belgium.1252    LC_MONETARY=Dutch_Belgium.1252
[4] LC_NUMERIC=C                   LC_TIME=Dutch_Belgium.1252    

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

loaded via a namespace (and not attached):
[1] BiocManager_1.30.4 compiler_3.5.1     rsconnect_0.8.15   tools_3.5.1        curl_4.1          
[6] yaml_2.2.0         jsonlite_1.6       openssl_1.4.1      askpass_1.1  

Thanks in advance