R Shiny App: Unable to connect to worker after 60.00 seconds

Hello,

I recently have tried to deploy an R Shiny that runs well and rather quickly when executed locally. However, after deploying it to shinyapps. io I receive the following error:

An error has occurred
Unable to connect to worker after 60.00 seconds; startup took too long. Contact the author for more information.

After checking the logs, I don't see anything that shows a distinct error. After searching pretty extensively, I also can't find anyone with the same problem and solution that applies.

I tried increasing the startup time to the maximum 300s seconds as suggested here to no avail: shiny error: Unable to connect to worker after 60.00 seconds; startup took too long.

This changed the error message to:

An error has occurred
Unable to connect to worker after 300.00 seconds; startup took too long. Contact the author for more information.

Does anyone have any ideas?

2022-01-21T03:58:30.148554+00:00 shinyapps[5465545]: Running on host: 964a6d638ca7
2022-01-21T03:58:30.154520+00:00 shinyapps[5465545]: Server version: 2021.11.0
2022-01-21T03:58:30.154522+00:00 shinyapps[5465545]: LANG: C.UTF-8
2022-01-21T03:58:30.154533+00:00 shinyapps[5465545]: R version: 3.6.3
2022-01-21T03:58:30.154539+00:00 shinyapps[5465545]: shiny version: 1.7.1
2022-01-21T03:58:30.154543+00:00 shinyapps[5465545]: httpuv version: 1.6.1
2022-01-21T03:58:30.154561+00:00 shinyapps[5465545]: rmarkdown version: 2.11
2022-01-21T03:58:30.154568+00:00 shinyapps[5465545]: knitr version: 1.36
2022-01-21T03:58:30.154601+00:00 shinyapps[5465545]: jsonlite version: 1.7.2
2022-01-21T03:58:30.154602+00:00 shinyapps[5465545]: RJSONIO version: (none)
2022-01-21T03:58:30.154611+00:00 shinyapps[5465545]: htmltools version: 0.5.2
2022-01-21T03:58:30.154914+00:00 shinyapps[5465545]: Using pandoc: /opt/connect/ext/pandoc/2.11
2022-01-21T03:58:30.380256+00:00 shinyapps[5465545]: Using jsonlite for JSON processing
2022-01-21T03:58:30.383610+00:00 shinyapps[5465545]: Starting R with process ID: '70'
2022-01-21T03:58:30.384037+00:00 shinyapps[5465545]: Shiny application starting ...
2022-01-21T03:58:30.383608+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.415027+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.415028+00:00 shinyapps[5465545]: Attaching package: ‘shinyjs’
2022-01-21T03:58:30.415028+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.416492+00:00 shinyapps[5465545]: The following object is masked from ‘package:shiny’:
2022-01-21T03:58:30.416493+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.416493+00:00 shinyapps[5465545]: runExample
2022-01-21T03:58:30.416785+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.416493+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.416785+00:00 shinyapps[5465545]: The following objects are masked from ‘package:methods’:
2022-01-21T03:58:30.416786+00:00 shinyapps[5465545]: removeClass, show
2022-01-21T03:58:30.416787+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.427011+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.427011+00:00 shinyapps[5465545]: Attaching package: ‘shinyauthr’
2022-01-21T03:58:30.427302+00:00 shinyapps[5465545]: runExample
2022-01-21T03:58:30.427012+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.427563+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.427303+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.427302+00:00 shinyapps[5465545]:
2022-01-21T03:58:30.427562+00:00 shinyapps[5465545]: The following object is masked from ‘package:shiny’:
2022-01-21T03:58:30.427301+00:00 shinyapps[5465545]: The following object is masked from ‘package:shinyjs’:
2022-01-21T03:58:30.427563+00:00 shinyapps[5465545]: runExample
2022-01-21T03:58:30.427563+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.517799+00:00 shinyapps[5465545]: ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ──
2022-01-21T03:58:31.522165+00:00 shinyapps[5465545]: :heavy_check_mark: ggplot2 3.3.5 :heavy_check_mark: purrr 0.3.4
2022-01-21T03:58:31.522166+00:00 shinyapps[5465545]: :heavy_check_mark: tibble 3.1.1 :heavy_check_mark: dplyr 1.0.6
2022-01-21T03:58:31.522167+00:00 shinyapps[5465545]: :heavy_check_mark: tidyr 1.1.3 :heavy_check_mark: stringr 1.4.0
2022-01-21T03:58:31.522167+00:00 shinyapps[5465545]: :heavy_check_mark: readr 1.4.0 :heavy_check_mark: forcats 0.5.1
2022-01-21T03:58:31.623895+00:00 shinyapps[5465545]: ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
2022-01-21T03:58:31.623897+00:00 shinyapps[5465545]: :heavy_multiplication_x: dplyr::filter() masks stats::filter()
2022-01-21T03:58:31.623897+00:00 shinyapps[5465545]: :heavy_multiplication_x: dplyr::lag() masks stats::lag()
2022-01-21T03:58:31.633181+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.633182+00:00 shinyapps[5465545]: Attaching package: ‘magrittr’
2022-01-21T03:58:31.633182+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.633514+00:00 shinyapps[5465545]: The following object is masked from ‘package:purrr’:
2022-01-21T03:58:31.633514+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.633515+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.633832+00:00 shinyapps[5465545]: The following object is masked from ‘package:tidyr’:
2022-01-21T03:58:31.633515+00:00 shinyapps[5465545]: set_names
2022-01-21T03:58:31.633833+00:00 shinyapps[5465545]: extract
2022-01-21T03:58:31.633833+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.633834+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.688585+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.688586+00:00 shinyapps[5465545]: Attaching package: ‘igraph’
2022-01-21T03:58:31.688587+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.688923+00:00 shinyapps[5465545]: The following objects are masked from ‘package:dplyr’:
2022-01-21T03:58:31.688924+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.688925+00:00 shinyapps[5465545]: as_data_frame, groups, union
2022-01-21T03:58:31.688925+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.689226+00:00 shinyapps[5465545]: The following objects are masked from ‘package:purrr’:
2022-01-21T03:58:31.689227+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.689228+00:00 shinyapps[5465545]: compose, simplify
2022-01-21T03:58:31.689499+00:00 shinyapps[5465545]: The following object is masked from ‘package:tidyr’:
2022-01-21T03:58:31.689228+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.689500+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.689500+00:00 shinyapps[5465545]: crossing
2022-01-21T03:58:31.689500+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.689802+00:00 shinyapps[5465545]: The following object is masked from ‘package:tibble’:
2022-01-21T03:58:31.689803+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.689803+00:00 shinyapps[5465545]: as_data_frame
2022-01-21T03:58:31.689803+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.690105+00:00 shinyapps[5465545]: The following objects are masked from ‘package:stats’:
2022-01-21T03:58:31.690105+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.690106+00:00 shinyapps[5465545]: decompose, spectrum
2022-01-21T03:58:31.690106+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.690400+00:00 shinyapps[5465545]: The following object is masked from ‘package:base’:
2022-01-21T03:58:31.690401+00:00 shinyapps[5465545]: union
2022-01-21T03:58:31.690401+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.749171+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.690402+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.749173+00:00 shinyapps[5465545]: Attaching package: ‘tidygraph’
2022-01-21T03:58:31.749174+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.749490+00:00 shinyapps[5465545]: The following object is masked from ‘package:igraph’:
2022-01-21T03:58:31.749492+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.749491+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.749491+00:00 shinyapps[5465545]: groups
2022-01-21T03:58:31.774865+00:00 shinyapps[5465545]: The following object is masked from ‘package:stats’:
2022-01-21T03:58:31.774866+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.774866+00:00 shinyapps[5465545]: filter
2022-01-21T03:58:31.774867+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.985738+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.986089+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.985741+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.985740+00:00 shinyapps[5465545]: Attaching package: ‘reshape2’
2022-01-21T03:58:31.986090+00:00 shinyapps[5465545]: smiths
2022-01-21T03:58:31.986089+00:00 shinyapps[5465545]: The following object is masked from ‘package:tidyr’:
2022-01-21T03:58:32.001214+00:00 shinyapps[5465545]:
2022-01-21T03:58:31.986090+00:00 shinyapps[5465545]:
2022-01-21T03:58:32.001215+00:00 shinyapps[5465545]:
2022-01-21T03:58:32.001552+00:00 shinyapps[5465545]: %c%
2022-01-21T03:58:31.991370+00:00 shinyapps[5465545]: Loading required package: wrapr
2022-01-21T03:58:32.001551+00:00 shinyapps[5465545]: The following object is masked from ‘package:igraph’:
2022-01-21T03:58:32.001551+00:00 shinyapps[5465545]:
2022-01-21T03:58:32.001214+00:00 shinyapps[5465545]: Attaching package: ‘wrapr’
2022-01-21T03:58:32.001879+00:00 shinyapps[5465545]: The following object is masked from ‘package:dplyr’:
2022-01-21T03:58:32.001552+00:00 shinyapps[5465545]:
2022-01-21T03:58:32.001880+00:00 shinyapps[5465545]:
2022-01-21T03:58:32.001880+00:00 shinyapps[5465545]: coalesce
2022-01-21T03:58:32.002189+00:00 shinyapps[5465545]: The following objects are masked from ‘package:tidyr’:
2022-01-21T03:58:32.002189+00:00 shinyapps[5465545]:
2022-01-21T03:58:32.002190+00:00 shinyapps[5465545]:
2022-01-21T03:58:32.001881+00:00 shinyapps[5465545]:
2022-01-21T03:58:32.002190+00:00 shinyapps[5465545]: pack, unpack
2022-01-21T03:58:32.002492+00:00 shinyapps[5465545]: The following object is masked from ‘package:tibble’:
2022-01-21T03:58:32.002493+00:00 shinyapps[5465545]:
2022-01-21T03:58:32.002493+00:00 shinyapps[5465545]: view
2022-01-21T03:58:32.002493+00:00 shinyapps[5465545]:
2022-01-21T03:58:32.213700+00:00 shinyapps[5465545]:
2022-01-21T03:58:32.213704+00:00 shinyapps[5465545]: Listening on http://127.0.0.1:7964