Unable to deploy shinyapp in R 3.6.1 due to error: Child task failed: Error building image

I am unable to deploy my app to shinyapps/io. The log is as follows:

> rsconnect::deployApp()
Preparing to deploy application...Update application currently deployed at
https://mpoltoradnev.shinyapps.io/particle_size_analyzer/? [Y/n] y
DONE
Uploading bundle for application: 3428026...DONE
Deploying bundle: 4152670 for application: 3428026 ...
Waiting for task: 861385807
  building: Processing bundle: 4152670
  building: Building image: 4727946
  building: Installing system dependencies
################################ Begin Task Log ################################ 
[2021-01-28T07:28:44.827560162+0000] Execute script: packages/build/tiff.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libtiff-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libjbig-dev libtiffxx5
The following NEW packages will be installed:
  libjbig-dev libtiff5-dev libtiffxx5
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 299 kB of archives.
After this operation, 1136 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libjbig-dev amd64 2.1-3.1 [24.8 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtiffxx5 amd64 4.0.6-1ubuntu0.7 [5598 B]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtiff5-dev amd64 4.0.6-1ubuntu0.7 [269 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 299 kB in 0s (13.8 MB/s)
Selecting previously unselected package libjbig-dev:amd64.

(Reading database ... 100%
(Reading database ... 122515 files and directories currently installed.)

Preparing to unpack .../libjbig-dev_2.1-3.1_amd64.deb ...

Unpacking libjbig-dev:amd64 (2.1-3.1) ...

Selecting previously unselected package libtiffxx5:amd64.

Preparing to unpack .../libtiffxx5_4.0.6-1ubuntu0.7_amd64.deb ...

Unpacking libtiffxx5:amd64 (4.0.6-1ubuntu0.7) ...

Selecting previously unselected package libtiff5-dev:amd64.

Preparing to unpack .../libtiff5-dev_4.0.6-1ubuntu0.7_amd64.deb ...

Unpacking libtiff5-dev:amd64 (4.0.6-1ubuntu0.7) ...

Processing triggers for libc-bin (2.23-0ubuntu11.2) ...

Processing triggers for man-db (2.7.5-1) ...

Setting up libjbig-dev:amd64 (2.1-3.1) ...

Setting up libtiffxx5:amd64 (4.0.6-1ubuntu0.7) ...

Setting up libtiff5-dev:amd64 (4.0.6-1ubuntu0.7) ...

Processing triggers for libc-bin (2.23-0ubuntu11.2) ...

[2021-01-28T07:28:49.084683254+0000] Execute script: packages/build/magick.sh
+ set -e
++ lsb_release -cs
+ OS_DISTRIBUTION=xenial
+ apt-get update -qq
+ apt-get install -y software-properties-common python-software-properties
Reading package lists...
Building dependency tree...
Reading state information...
software-properties-common is already the newest version (0.96.20.10).
The following additional packages will be installed:
  python-apt python-pycurl
Suggested packages:
  python-apt-dbg python-apt-doc libcurl4-gnutls-dev python-pycurl-dbg
  python-pycurl-doc
The following NEW packages will be installed:
  python-apt python-pycurl python-software-properties
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 211 kB of archives.
After this operation, 966 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-apt amd64 1.1.0~beta1ubuntu0.16.04.11 [147 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 python-pycurl amd64 7.43.0-1ubuntu1 [43.3 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-software-properties all 0.96.20.10 [20.6 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 211 kB in 0s (5127 kB/s)
Selecting previously unselected package python-apt.

(Reading database ... 100%
(Reading database ... 122587 files and directories currently installed.)

Preparing to unpack .../python-apt_1.1.0~beta1ubuntu0.16.04.11_amd64.deb ...

Unpacking python-apt (1.1.0~beta1ubuntu0.16.04.11) ...

Selecting previously unselected package python-pycurl.

Preparing to unpack .../python-pycurl_7.43.0-1ubuntu1_amd64.deb ...

Unpacking python-pycurl (7.43.0-1ubuntu1) ...

Selecting previously unselected package python-software-properties.

Preparing to unpack .../python-software-properties_0.96.20.10_all.deb ...

Unpacking python-software-properties (0.96.20.10) ...

Setting up python-apt (1.1.0~beta1ubuntu0.16.04.11) ...

Setting up python-pycurl (7.43.0-1ubuntu1) ...

Setting up python-software-properties (0.96.20.10) ...

+ '[' xenial '!=' bionic ']'
+ add-apt-repository -y ppa:cran/imagemagick
gpg: keyring `/tmp/tmpm5jl7smr/secring.gpg' created
gpg: keyring `/tmp/tmpm5jl7smr/pubring.gpg' created
gpg: requesting key 15B55A9F from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpm5jl7smr/trustdb.gpg: trustdb created
gpg: key 15B55A9F: public key "Launchpad PPA for cran" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
+ apt-get update -qq
+ apt-get install -y libmagick++-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-rsvg-2.0 imagemagick-6-common
  libdjvulibre-dev libdjvulibre-text libdjvulibre21 libexif-dev libexif12
  libgdk-pixbuf2.0-dev libilmbase-dev libilmbase12 liblcms2-dev liblqr-1-0
  liblqr-1-0-dev libmagick++-6-headers libmagick++-6.q16-7
  libmagick++-6.q16-dev libmagickcore-6-arch-config libmagickcore-6-headers
  libmagickcore-6.q16-3 libmagickcore-6.q16-3-extra libmagickcore-6.q16-dev
  libmagickwand-6-headers libmagickwand-6.q16-3 libmagickwand-6.q16-dev
  libopenexr-dev libopenexr22 librsvg2-2 librsvg2-common librsvg2-dev
  libwmf-dev libwmf0.2-7
Suggested packages:
  inkscape libjxr-tools librsvg2-bin librsvg2-doc libwmf-doc libwmf0.2-7-gtk
The following NEW packages will be installed:
  gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-rsvg-2.0 imagemagick-6-common
  libdjvulibre-dev libdjvulibre-text libdjvulibre21 libexif-dev libexif12
  libgdk-pixbuf2.0-dev libilmbase-dev libilmbase12 liblcms2-dev liblqr-1-0
  liblqr-1-0-dev libmagick++-6-headers libmagick++-6.q16-7
  libmagick++-6.q16-dev libmagick++-dev libmagickcore-6-arch-config
  libmagickcore-6-headers libmagickcore-6.q16-3 libmagickcore-6.q16-3-extra
  libmagickcore-6.q16-dev libmagickwand-6-headers libmagickwand-6.q16-3
  libmagickwand-6.q16-dev libopenexr-dev libopenexr22 librsvg2-2
  librsvg2-common librsvg2-dev libwmf-dev libwmf0.2-7
0 upgraded, 34 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.2 MB of archives.
After this operation, 90.3 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 liblqr-1-0 amd64 0.4.2-2 [23.6 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libilmbase12 amd64 2.2.0-11ubuntu2 [71.4 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libilmbase-dev amd64 2.2.0-11ubuntu2 [70.8 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libopenexr22 amd64 2.2.0-10ubuntu2.4 [593 kB]
Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libopenexr-dev amd64 2.2.0-10ubuntu2.4 [704 kB]
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdjvulibre-text all 3.5.27.1-5ubuntu0.1 [49.4 kB]
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdjvulibre21 amd64 3.5.27.1-5ubuntu0.1 [582 kB]
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenia################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 861385827 failed: Error building image: Build exited with non-zero status: 1
> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

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

loaded via a namespace (and not attached):
 [1] BiocManager_1.30.10  compiler_3.6.1       Matrix_1.2-17        rsconnect_0.8.16    
 [5] tools_3.6.1          curl_4.3             Rcpp_1.0.6           reticulate_1.18-9005
 [9] grid_3.6.1           jsonlite_1.7.2       digest_0.6.27        packrat_0.5.0       
[13] openssl_1.4.3        lattice_0.20-38      askpass_1.1

Please help me to figure out, what could be the issue?

I'm sorry I don't know about your specific issue, perhaps someone here might, but if not there are other options also.

from : Shiny - Getting help (rstudio.com)

shinyapps.io

For questions about shinyapps.io or the rsconnect package, check the shinyapps-users Google group.

Customers with Starter, Basic, Standard or Pro subscriptions to shinyapps.io can open a case with our support engineers by sending an email to shinyapps-support@rstudio.com.

This topic was automatically closed 21 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.