shinyapps.io deployment: Error building image

I'm trying out the free version of shinyapps.io, and I've run across a problem deploying my app. It looks like it's having trouble deploying a package while the image is being created. I've been getting the same error for a few days, so I thought I'd report the issue in case it's a system problem.

Here's the log:

Preparing to deploy application...DONE
Uploading bundle for application: 882292...DONE
Deploying bundle: 2030049 for application: 882292 ...
Waiting for task: 607006882
  building: Parsing manifest
  building: Building image: 2136575
  building: Installing system dependencies
  building: Fetching packages
  error: Building package: MASS
################################ Begin Task Log ################################ 
[2019-04-22T17:42:55.802835502+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 (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) ...
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 607006884 failed: Error building image: Error fetching MASS (7.3-51.4) source. <CRANPackageSource repo='http://cran.rstudio.org'> unable to satisfy package: MASS (7.3-51.4)
Execution halted
1 Like

Found an answer to this in Scott's post here: https://forum.posit.co/t/shiny-app-fails-for-deploy-after-updating-all-packages-the-url-is-scottkbrown-shinyapps-io-gcstats/28842

The application has been deployed, but now the application has failed to start with the following message:

── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
βœ” ggplot2 3.1.1       βœ” purrr   0.3.2  
βœ” tibble  2.1.1       βœ” dplyr   0.8.0.1
βœ” tidyr   0.8.3       βœ” stringr 1.4.0  
βœ” readr   1.3.1       βœ” forcats 0.4.0  
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
βœ– dplyr::filter() masks stats::filter()
βœ– dplyr::lag()    masks stats::lag()

Attaching package: β€˜DT’

The following objects are masked from β€˜package:shiny’:

    dataTableOutput, renderDataTable

Error in value[[3L]](cond) : trying to use CRAN without setting a mirror
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted