Shinyapp deployment - 504 Gate Way Error

I was deploying numerous times today as I'm testing building an app for someone else.

Been searching web for same error coming up short.

This is what I see:

Preparing to deploy application...DONE
Uploading bundle for application: 1604634...DONE
Deploying bundle: 2673080 for application: 1604634 ...
Waiting for task: 676723546
  building: Processing bundle: 2673080
  building: Parsing manifest
  building: Building image: 2919211
  building: Installing system dependencies
  building: Fetching packages
  building: Installing packages
  building: Installing files
  building: Pushing image: 2919211
################################ Begin Task Log ################################ 
[2019-12-16T20:34:46.701508916+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 93 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-12-16T20:34:51.651877990+0000] Execute script: packages/build/units.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libudunits2-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libudunits2-0
The following NEW packages will be installed:
  libudunits2-0 libudunits2-dev
0 upgraded, 2 newly installed, 0 to remove and 93 not upgraded.
Need to get 430 kB of archives.
After this operation, 992 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libudunits2-0 amd64 2.2.20-1 [69.5 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libudunits2-dev amd64 2.2.20-1 [360 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 430 kB in 0s (22.8 MB/s)
Selecting previously unselected package libudunits2-0:amd64.
(Reading database ... 119740 files and directories currently installed.)
Preparing to unpack .../libudunits2-0_2.2.20-1_amd64.deb ...
Unpacking libudunits2-0:amd64 (2.2.20-1) ...
Selecting previously unselected package libudunits2-dev.
Preparing to unpack .../libudunits2-dev_2.2.20-1_amd64.deb ...
Unpacking libudunits2-dev (2.2.20-1) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Setting up libudunits2-0:amd64 (2.2.20-1) ...
Setting up libudunits2-dev (2.2.20-1) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
[2019-12-16T20:34:54.332968698+0000] Execute script: packages/build/sf.sh
+ set -e
+ apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0x089EBE08314DF160
Executing: /tmp/tmp.ZLbsqq63hA/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
0x089EBE08314DF160
gpg: requesting key 314DF160 from hkp server keyserver.ubuntu.com
gpg: key 314DF160: public key "Launchpad ubuntugis-stable" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
++ lsb_release -cs
+ echo 'deb http://ppa.launchpad.net/ubuntugis/ppa/ubuntu xenial main'
+ apt-get update -qq
+ apt-get install -y libudunits2-dev libgdal-dev libgeos-dev libproj-dev
Reading package lists...
Building dependency tree...
Reading state information...
libproj-dev is already the newest version (4.9.2-2).
libudunits2-dev is already the newest version (2.2.20-1).
The following packages were automatically installed and are no longer required:
  libgdal1i libgeos-3.5.0 libjasper-dev libjasper1
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  gdal-data libarmadillo-dev libarpack2-dev libepsilon-dev libfreexl-dev
  libfyba-dev libfyba0 libgdal20 libgeos-3.5.1 libgeos-c1v5 libgeotiff-dev
  libgeotiff2 libjbig-dev libjson-c-dev libkml-dev libkmlconvenience1
  libkmlregionator1 libkmlxsd1 libminizip-dev libogdi3.2-dev libopenjp2-7-dev
  libpoppler-dev libpoppler-private-dev libqhull-dev libqhull7 libsuperlu-dev
  libtiff5 libtiff5-dev libtiffxx5 liburiparser-dev
Suggested packages:
  libitpp-dev libgdal-doc libgeotiff-epsg geotiff-bin gdal-bin libsuperlu-doc
The following NEW packages will be installed:
  gdal-data libarmadillo-dev libarpack2-dev libepsilon-dev libfreexl-dev
  libfyba-dev libfyba0 libgdal20 libgeos-3.5.1 libgeotiff-dev libgeotiff2
  libjbig-dev libjson-c-dev libkml-dev libkmlconvenience1 libkmlregionator1
  libkmlxsd1 libminizip-dev libogdi3.2-dev libopenjp2-7-dev libpoppler-dev
  libpoppler-private-dev libqhull-dev libqhull7 libsuperlu-dev libtiff5-dev
  libtiffxx5 liburiparser-dev
The following packages will be upgraded:
  libgdal-dev libgeos-c1v5 libgeos-dev libtiff5
4 upgraded, 28 newly installed, 0 to remove and 92 not upgraded.
Need to get 17.1 MB of archives.
After this operation, 54.0 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libarpack2-dev amd64 3.3.0-1build2 [94.7 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libsuperlu-dev amd64 4.3+dfsg-3 [174 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libarmadillo-dev amd64 1:6.500.5+dfsg-1 [297 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libfyba0 amd64 4.1.1-2 [111 kB]
Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libfyba-dev amd64 4.1.1-2 [392 kB]
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtiff5 amd64 4.0.6-1ubuntu0.7 [149 kB]
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libgeotiff2 amd64 1.4.1-2 [55.9 kB]
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libqhull7 amd64 2015.2-1 [152 kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libepsilon-dev amd64 0.9.2-3ubuntu1 [48.9 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libfreexl-dev amd64 1.0.2-1ubuntu0.1 [30.5 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libjbig-dev amd64 2.1-3.1 [24.8 kB]
Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtiffxx5 amd64 4.0.6-1ubuntu0.7 [5598 B]
Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libtiff5-dev amd64 4.0.6-1ubuntu0.7 [269 kB]
Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libgeotiff-dev amd64 1.4.1-2 [77.3 kB]
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libjson-c-dev amd64 0.11-4ubuntu2 [30.6 kB]
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libkmlconvenience1 amd64 1.3.0-1 [44.2 kB]
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libkmlregionator1 amd64 1.3.0-1 [19.8 kB]
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libkmlxsd1 amd64 1.3.0-1 [28.0 kB]
Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 libminizip-dev amd64 1.1-8 [26.7 kB]
Get:20 http://us-east-1.ec2.archive.ubuntu################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 676723551 error: Unhandled Exception: Error pushing repository: received unexpected HTTP status: 504 Gateway Time-out

Me too: not the exact same error but also seeing a "504 Gateway Time-out" when trying to deploy a small shinyapp.

Me too, getting the same error even with this small toy example from Rstudio
https://shiny.rstudio.com/articles/basics.html

I guess is a problem on their side.

Same here. Would like to know from the Shiny developers if it's issue on their side and when it will be fixed.

Does this mean that something is going on with their servers during this time? I am trying to publish my first r.shiny app and keep receiving this error. It would be great to know if this will be temporary or if I need to fix something.

Hi All,

See this thread:

1 Like

Seems to be up and running, check status here:

:grinning:

3 Likes

Hey @pearlb,

yes it was on their side, you should be able to deploy.

Let us know how it went, I can only check a bit later.

Anybody here had a successful deploy after this issue?

Hi @ShinybeaR - Thanks so much for your help! The link you posted is now in my bookmarks!

I just tried deploying the app again and it opened my web browser and went to the url created for the app. So I think the error was fixed! However, the webpage now shows this error message rather than my app:

Attaching package: ‘rsconnect’

The following object is masked from ‘package:shiny’:

serverInfo

Error in value[3L] : path/to/your/app does not exist
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
Execution halted

This is probably unrelated, but I was just wondering if you might know anything about what it means. Thanks so much and again thanks for the helpful link

@ShinybeaR Nevermind! I got it to work! I moved:

rsconnect::setAccountInfo(name='',
** token='',**
** secret='')**

library(rsconnect)
rsconnect::deployApp("")

from my app.r script to my workflow.r script. Runs now!

Thanks again :slight_smile:

1 Like