App deployment error - Building Boom package - HTTP 599: Timeout during request

I'm trying to deploy a shiny app to shinyapps.io. My first version of the app was successfully deployed here (https://mdeepm.shinyapps.io/northstar-new-user-activity/).

Now I've added some causal impact analysis to the app and I'm using the "CausalImpact" library to do this. The app builds and executes fine on my local machine. Following are the libraries that I'm using in my server.R file:

library(shiny)
library(ggplot2)
library(ggthemes)
library(plotly)
library(googlesheets)
library(scales)
library(dplyr)
library(reshape2)
library(hrbrthemes)
library(wesanderson)
library(xts)
library(CausalImpact)

But when I try to deploy it to shinyapps via rsconnect from RStudio, the building of Boom package takes very long and finally errors out (excerpt of the error given below).

......
----- Server deployment started at  2019-04-23 09:15:57  -----
POST /v1/applications/806467/deploy 1560ms
Waiting for task: 607114233
GET /v1/tasks/607114233 1120ms
  building: Parsing manifest
GET /v1/tasks/607114233 1109ms
  building: Building image: 2137918
GET /v1/tasks/607114233 1122ms
GET /v1/tasks/607114233 1101ms
  building: Installing system dependencies
GET /v1/tasks/607114233 1094ms
GET /v1/tasks/607114233 1118ms
GET /v1/tasks/607114233 1079ms
  building: Fetching packages
GET /v1/tasks/607114233 1069ms
GET /v1/tasks/607114233 1071ms
  building: Building package: Boom
GET /v1/tasks/607114233 1060ms
GET /v1/tasks/607114233 1064ms
GET /v1/tasks/607114233 1057ms
GET /v1/tasks/607114233 1100ms
GET /v1/tasks/607114233 1146ms
GET /v1/tasks/607114233 1125ms
GET /v1/tasks/607114233 1126ms
GET /v1/tasks/607114233 1251ms
GET /v1/tasks/607114233 1125ms
GET /v1/tasks/607114233 1125ms
GET /v1/tasks/607114233 1122ms
GET /v1/tasks/607114233 1131ms
GET /v1/tasks/607114233 1117ms
GET /v1/tasks/607114233 1111ms
GET /v1/tasks/607114233 1129ms
GET /v1/tasks/607114233 1122ms
GET /v1/tasks/607114233 1094ms
GET /v1/tasks/607114233 1115ms
GET /v1/tasks/607114233 1126ms
GET /v1/tasks/607114233 1129ms
.......
################################ Begin Task Log ################################ 
GET /v1/tasks/607114233/logs/ 1060ms
GET /v1/tasks/?filter=account_id:136581&filter=parent_id:607114233&count=100&offset=0 1126ms
GET /v1/tasks/607114245/logs/ 1148ms
[2019-04-23T01:16:06.035054896+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 58 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 (6397 kB/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) ...
GET /v1/tasks/?filter=account_id:136581&filter=parent_id:607114245&count=100&offset=0 1105ms
################################# End Task Log ################################# 
----- Deployment error -----
Error: Unhandled Exception: Child Task 607114245 error: Unhandled Exception: HTTP 599: Timeout during request
 
----- Error stack trace -----
3: stop(status$error, call. = FALSE)
Error: Unhandled Exception: Child Task 607114245 error: Unhandled Exception: HTTP 599: Timeout during request
2: client$waitForTask(taskId, quiet)
1: rsconnect::deployApp(appDir = "~/Documents/R_Projects/northstar/northstar-new-user-activity", 
       appFileManifest = "/var/folders/h8/slkr5p0502n6b503t15vxyp80000gn/T/07bf-c29b-acb2-624d", 
       account = "mdeepm", server = "shinyapps.io", appName = "northstar-new-user-activity", 
       appId = 806467, launch.browser = function(url) {
           message("Deployment completed: ", url)
       }, lint = FALSE, metadata = list(asMultiple = FALSE, asStatic = FALSE), 
       logLevel = "verbose")
Execution halted

I've searched for information on how to resolve this, but couldn't find any. Any help in pointing me in the right direction would be much appreciated!

having the same issue - did you have any luck fixing this? I believe its an issue with the Boom package

No, I couldn't find a way to fix this yet!

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.