Shiny app fails for deploy after updating all packages - the url is scottkbrown.shinyapps.io/GCStats.

Preparing to deploy application...DONE
Uploading bundle for application: 715625...DONE
Deploying bundle: 2018476 for application: 715625 ...
Waiting for task: 605725613
building: Processing bundle: 2018476
building: Parsing manifest
building: Building image: 2123004
building: Installing system dependencies
building: Fetching packages
error: Building package: MASS
################################ Begin Task Log ################################
[2019-04-17T13:59:44.415557642+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 (1231 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) ...
    [2019-04-17T13:59:53.424675989+0000] Execute script: packages/build/hunspell.sh
  • set -e
  • apt-get update -qq
  • apt-get install -y libhunspell-dev
    Reading package lists...
    Building dependency tree...
    Reading state information...
    The following additional packages will be installed:
    dictionaries-common emacsen-common hunspell-en-us libhunspell-1.3-0
    Suggested packages:
    ispell | aspell | hunspell wordlist hunspell openoffice.org-hunspell
    | openoffice.org-core
    The following NEW packages will be installed:
    dictionaries-common emacsen-common hunspell-en-us libhunspell-1.3-0
    libhunspell-dev
    0 upgraded, 5 newly installed, 0 to remove and 58 not upgraded.
    Need to get 663 kB of archives.
    After this operation, 2673 kB of additional disk space will be used.

################################# End Task Log #################################
Error: Unhandled Exception: Child Task 605725614 failed: Error building image: Error fetching MASS (7.3-51.4) source. unable to satisfy package: MASS (7.3-51.4)
Execution halted

I was able to resolve this by loading the older version of MASS devtools::install_version("MASS", "7.3-51.1")

Of course I find your post minutes after posting almost exactly the same error. :slight_smile:

Where/how do you specify loading the older version of MASS in your code?

Got it. I just added that line after my other library imports. For my app it looks like this:

library(shiny)
library(tidyverse)
library(ggplot2)
library(DT)
devtools::install_version("MASS", "7.3-51.1")  # Resolve incompatibility with shinyapps.io deployment 

Other will have different combinations of libraries loaded for their apps.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.