Shiny App not deploying to shinyapps.io, exist status 1 - directory not found

I have a relatively large shiny app that I have at one point successfully deployed to shinyapps.io - however, when I try to update it as follows:

rsconnect::deployApp("/Users/anecloete/Desktop/2023/BMP_Dashboard",forceUpdate = T)

It gives the following error:

the application failed to start. exit status 1

when the browser opens. In the console it shows this:

Preparing to deploy application...DONE
Uploading bundle for application: 9323766...DONE
Deploying bundle: 7445096 for application: 9323766 ...
Waiting for task: 1317327625
  building: Processing bundle: 7445096
  building: Parsing manifest
  building: Building image: 8822025
  building: Installing system dependencies
  building: Fetching packages
  building: Installing packages
  building: Installing files
  building: Pushing image: 8822025
  deploying: Starting instances
  rollforward: Activating new instances
  success: Stopping old instances
Application successfully deployed to https://anecloete.shinyapps.io/BMP_Dashboard/

The app logs look like this:
2023-07-11T17:43:11.656755+00:00 shinyapps[9323766]: Running on host: cbb625c54ba1
2023-07-11T17:43:11.659131+00:00 shinyapps[9323766]: Running as user: uid=10001(shiny) gid=10001(shiny) groups=10001(shiny)
2023-07-11T17:43:11.659152+00:00 shinyapps[9323766]: Connect version: 2023.03.0
2023-07-11T17:43:11.659156+00:00 shinyapps[9323766]: LANG: C.UTF-8
2023-07-11T17:43:11.659160+00:00 shinyapps[9323766]: Working directory: /srv/connect/apps/BMP_Dashboard
2023-07-11T17:43:11.659299+00:00 shinyapps[9323766]: Using R 4.2.2
2023-07-11T17:43:11.659308+00:00 shinyapps[9323766]: R.home(): /opt/R/4.2.2/lib/R
2023-07-11T17:43:11.659557+00:00 shinyapps[9323766]: Content will use current R environment
2023-07-11T17:43:11.659572+00:00 shinyapps[9323766]: R_LIBS: (unset)
2023-07-11T17:43:11.659587+00:00 shinyapps[9323766]: .libPaths(): /opt/R/4.2.2/lib/R/library
2023-07-11T17:43:11.666243+00:00 shinyapps[9323766]: shiny version: 1.7.4
2023-07-11T17:43:11.666254+00:00 shinyapps[9323766]: httpuv version: 1.6.11
2023-07-11T17:43:11.666258+00:00 shinyapps[9323766]: rmarkdown version: 2.23
2023-07-11T17:43:11.666278+00:00 shinyapps[9323766]: knitr version: 1.43
2023-07-11T17:43:11.666302+00:00 shinyapps[9323766]: jsonlite version: 1.8.7
2023-07-11T17:43:11.666325+00:00 shinyapps[9323766]: RJSONIO version: (none)
2023-07-11T17:43:11.666331+00:00 shinyapps[9323766]: htmltools version: 0.5.5
2023-07-11T17:43:11.666336+00:00 shinyapps[9323766]: reticulate version: (none)
2023-07-11T17:43:11.666654+00:00 shinyapps[9323766]: Using pandoc: /opt/connect/ext/pandoc/2.16
2023-07-11T17:43:12.047671+00:00 shinyapps[9323766]: Starting R with process ID: '55'
2023-07-11T17:43:12.048054+00:00 shinyapps[9323766]: Shiny application starting ...
2023-07-11T17:43:12.081076+00:00 shinyapps[9323766]: Attaching package: ‘shinydashboard’
2023-07-11T17:43:12.081679+00:00 shinyapps[9323766]: The following object is masked from ‘package:graphics’:
2023-07-11T17:43:12.081701+00:00 shinyapps[9323766]: box
2023-07-11T17:43:12.261489+00:00 shinyapps[9323766]: Attaching package: ‘shinyjs’
2023-07-11T17:43:12.261617+00:00 shinyapps[9323766]: The following object is masked from ‘package:shinyWidgets’:
2023-07-11T17:43:12.261643+00:00 shinyapps[9323766]: alert
2023-07-11T17:43:12.261799+00:00 shinyapps[9323766]: The following object is masked from ‘package:shiny’:
2023-07-11T17:43:12.261813+00:00 shinyapps[9323766]: runExample
2023-07-11T17:43:12.262052+00:00 shinyapps[9323766]: The following objects are masked from ‘package:methods’:
2023-07-11T17:43:12.262064+00:00 shinyapps[9323766]: removeClass, show
2023-07-11T17:43:12.276397+00:00 shinyapps[9323766]: Attaching package: ‘DT’
2023-07-11T17:43:12.276612+00:00 shinyapps[9323766]: The following objects are masked from ‘package:shiny’:
2023-07-11T17:43:12.276632+00:00 shinyapps[9323766]: dataTableOutput, renderDataTable
2023-07-11T17:43:13.116866+00:00 shinyapps[9323766]: ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
2023-07-11T17:43:13.116910+00:00 shinyapps[9323766]: :heavy_check_mark: dplyr 1.1.2 :heavy_check_mark: readr 2.1.4
2023-07-11T17:43:13.116915+00:00 shinyapps[9323766]: :heavy_check_mark: forcats 1.0.0 :heavy_check_mark: stringr 1.5.0
2023-07-11T17:43:13.116919+00:00 shinyapps[9323766]: :heavy_check_mark: lubridate 1.9.2 :heavy_check_mark: tibble 3.2.1
2023-07-11T17:43:13.116922+00:00 shinyapps[9323766]: :heavy_check_mark: purrr 1.0.1 :heavy_check_mark: tidyr 1.3.0
2023-07-11T17:43:13.225050+00:00 shinyapps[9323766]: ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
2023-07-11T17:43:13.225078+00:00 shinyapps[9323766]: :heavy_multiplication_x: dplyr::filter() masks stats::filter()
2023-07-11T17:43:13.225082+00:00 shinyapps[9323766]: :heavy_multiplication_x: dplyr::lag() masks stats::lag()
2023-07-11T17:43:13.225099+00:00 shinyapps[9323766]: :heavy_multiplication_x: lubridate::show() masks shinyjs::show(), methods::show()
2023-07-11T17:43:13.225102+00:00 shinyapps[9323766]: :information_source: Use the conflicted package (http://conflicted.r-lib.org/) to force all conflicts to become errors
2023-07-11T17:43:13.232429+00:00 shinyapps[9323766]: Attaching package: ‘scales’
2023-07-11T17:43:13.232652+00:00 shinyapps[9323766]: The following object is masked from ‘package:purrr’:
2023-07-11T17:43:13.232674+00:00 shinyapps[9323766]: discard
2023-07-11T17:43:13.232856+00:00 shinyapps[9323766]: The following object is masked from ‘package:readr’:
2023-07-11T17:43:13.232867+00:00 shinyapps[9323766]: col_factor
2023-07-11T17:43:13.247181+00:00 shinyapps[9323766]: Attaching package: ‘foreach’
2023-07-11T17:43:13.247366+00:00 shinyapps[9323766]: The following objects are masked from ‘package:purrr’:
2023-07-11T17:43:13.247383+00:00 shinyapps[9323766]: accumulate, when
2023-07-11T17:43:13.524005+00:00 shinyapps[9323766]: Attaching package: ‘plotly’
2023-07-11T17:43:13.524208+00:00 shinyapps[9323766]: The following object is masked from ‘package:ggplot2’:
2023-07-11T17:43:13.524216+00:00 shinyapps[9323766]: last_plot
2023-07-11T17:43:13.524368+00:00 shinyapps[9323766]: The following object is masked from ‘package:stats’:
2023-07-11T17:43:13.524378+00:00 shinyapps[9323766]: filter
2023-07-11T17:43:13.524561+00:00 shinyapps[9323766]: The following object is masked from ‘package:graphics’:
2023-07-11T17:43:13.524576+00:00 shinyapps[9323766]: layout
2023-07-11T17:43:13.936814+00:00 shinyapps[9323766]: Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 6.3.1; sf_use_s2() is TRUE
2023-07-11T17:43:13.941521+00:00 shinyapps[9323766]: Loading required package: sp
2023-07-11T17:43:13.963378+00:00 shinyapps[9323766]: The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
2023-07-11T17:43:13.963420+00:00 shinyapps[9323766]: which was just loaded, will retire in October 2023.
2023-07-11T17:43:13.963426+00:00 shinyapps[9323766]: Please refer to R-spatial evolution reports for details, especially
2023-07-11T17:43:13.963431+00:00 shinyapps[9323766]: sp evolution status: examples of migration from retiring packages.
2023-07-11T17:43:13.963436+00:00 shinyapps[9323766]: It may be desirable to make the sf package available;
2023-07-11T17:43:13.963442+00:00 shinyapps[9323766]: package maintainers should consider adding sf to Suggests:.
2023-07-11T17:43:13.963447+00:00 shinyapps[9323766]: The sp package is now running under evolution status 2
2023-07-11T17:43:13.963453+00:00 shinyapps[9323766]: (status 2 uses the sf package in place of rgdal)
2023-07-11T17:43:14.085364+00:00 shinyapps[9323766]: Please note that rgdal will be retired during October 2023,
2023-07-11T17:43:14.085399+00:00 shinyapps[9323766]: plan transition to sf/stars/terra functions using GDAL and PROJ
2023-07-11T17:43:14.085408+00:00 shinyapps[9323766]: at your earliest convenience.
2023-07-11T17:43:14.085412+00:00 shinyapps[9323766]: See sp evolution status: examples of migration from retiring packages and GitHub - r-spatial/evolution: Preparing CRAN for the retirement of rgdal, rgeos and maptools
2023-07-11T17:43:14.085416+00:00 shinyapps[9323766]: rgdal: version: 1.6-7, (SVN revision 1203)
2023-07-11T17:43:14.085420+00:00 shinyapps[9323766]: Geospatial Data Abstraction Library extensions to R successfully loaded
2023-07-11T17:43:14.085424+00:00 shinyapps[9323766]: Loaded GDAL runtime: GDAL 3.0.4, released 2020/01/28
2023-07-11T17:43:14.085437+00:00 shinyapps[9323766]: Path to GDAL shared files: /usr/share/gdal
2023-07-11T17:43:14.085444+00:00 shinyapps[9323766]: GDAL binary built with GEOS: TRUE
2023-07-11T17:43:14.085448+00:00 shinyapps[9323766]: Loaded PROJ runtime: Rel. 6.3.1, February 10th, 2020, [PJ_VERSION: 631]
2023-07-11T17:43:14.085451+00:00 shinyapps[9323766]: Path to PROJ shared files: /usr/share/proj
2023-07-11T17:43:14.085455+00:00 shinyapps[9323766]: Linking to sp version:2.0-0
2023-07-11T17:43:14.085458+00:00 shinyapps[9323766]: To mute warnings of possible GDAL/OSR exportToProj4() degradation,
2023-07-11T17:43:14.085461+00:00 shinyapps[9323766]: use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.
2023-07-11T17:43:18.212950+00:00 shinyapps[9323766]: terra 1.7.39
2023-07-11T17:43:18.220559+00:00 shinyapps[9323766]: Attaching package: ‘terra’
2023-07-11T17:43:18.220771+00:00 shinyapps[9323766]: The following object is masked from ‘package:rgdal’:
2023-07-11T17:43:18.220796+00:00 shinyapps[9323766]: project
2023-07-11T17:43:18.220972+00:00 shinyapps[9323766]: The following object is masked from ‘package:scales’:
2023-07-11T17:43:18.220983+00:00 shinyapps[9323766]: rescale
2023-07-11T17:43:18.221155+00:00 shinyapps[9323766]: The following object is masked from ‘package:tidyr’:
2023-07-11T17:43:18.221165+00:00 shinyapps[9323766]: extract
2023-07-11T17:43:18.221352+00:00 shinyapps[9323766]: The following object is masked from ‘package:shinyjs’:
2023-07-11T17:43:18.221361+00:00 shinyapps[9323766]: click
2023-07-11T17:43:18.221535+00:00 shinyapps[9323766]: The following object is masked from ‘package:shinyWidgets’:
2023-07-11T17:43:18.221561+00:00 shinyapps[9323766]: panel
2023-07-11T17:43:18.538946+00:00 shinyapps[9323766]: Error in rsconnect::deployApp("/Users/anecloete/Desktop/2023/BMP_Dashboard", :
2023-07-11T17:43:18.538974+00:00 shinyapps[9323766]: /Users/anecloete/Desktop/2023/BMP_Dashboard does not exist
2023-07-11T17:43:18.538981+00:00 shinyapps[9323766]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne ->
2023-07-11T17:43:18.538987+00:00 shinyapps[9323766]: Execution halted
2023-07-11T17:43:18.538992+00:00 shinyapps[9323766]: Shiny application exiting ...

For some reason, it says my directory does not exist. I have no idea what might be causing this. I only have relative paths in my app, it runs perfectly fine locally and with a clean environment. I have remove the rsconnect file and republished, but the same still happens.

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