Problem deploying shiny app to shinyapps.io - Quarto not found / Unhandled Exception: 599

I'm trying to deploy a Shiny app that is contained in an R package, it was working fine until a few days ago when RStudio obliged me to update Rsconnect. Since then I have been unable to deploy the app. It seems to install the package on shinyapps.io successfully but then issues the following error message and stops:

[2023-09-06T13:20:21.359196104+0000] Building R package: PEACh (0.0.0.9059)
/mnt/packages/build /mnt
Warning message:
no DISPLAY variable so Tk is not available 
Warning: no DISPLAY variable so Tk is not available
Warning: no DISPLAY variable so Tk is not available
Warning in untar2(tarfile, files, list, exdir, restore_times) :
  skipping pax global extended headers
* installing to library ‘/opt/R/4.3.0/lib/R/library’
* installing *source* package ‘PEACh’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* creating tarball
packaged installation of ‘PEACh’ as ‘PEACh_0.0.0.9059_R_x86_64-pc-linux-gnu.tar.gz’
* DONE (PEACh)
/mnt
Quarto not found.
## End Task Log ################################################################
Error: Unhandled Exception: Child Task 1333408374 error: Unhandled Exception: 599
Execution halted

I don't have Quarto installed and as far as I know the app I am trying to deploy has no dependency to Quarto.

To try to resolve the issue I updated R (to 4.3.0), RStudio (to 2023.03.0 Build 386) and cleaned out the previous version of the app from Shinyapps.io to enable a clean install. Still the problem persists.

Any help would be much appreciated.

Kind regards

Alex Mitrani

I got Quarto installed and after that this problem disappeared - I was able to depoy the Shiny app once more. Thanks.

I am having the same problem, and I already had quarto installed (Mac OS M1).

1 Like

I was able to deploy successfully once but tried to update the app today (with quarto installed) and I got the "Quarto not found" error message again. I see there is a quarto package for R, I will try installing it, adding it as a dependency to the package, and then deploying again. Please let me know if you find another solution. Thanks.

I tried to deploy again and after a looong wait of about 30 minutes it crashed with "Quarto not found" and an Unhandled Exception 599 error message:

* installing to library ‘/opt/R/4.3.0/lib/R/library’
* installing *source* package ‘PEACh’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* creating tarball
packaged installation of ‘PEACh’ as ‘PEACh_0.0.0.9062_R_x86_64-pc-linux-gnu.tar.gz’
* DONE (PEACh)
/mnt
Quarto not found.
## End Task Log ################################################################
Error: Unhandled Exception: Child Task 1334210281 error: Unhandled Exception: 599
Execution halted

I have Quarto installed, the quarto R package installed, and a dependency to the quarto R included in the shiny app's DESCRIPTION file. I still don't understand what the dependency to quarto might be but apparently there is one.

I believe "Unhandled Exception: 599" is a timeout error but it isn't clear what is causing the timeout.

Help, please.

I think the quarto message was maybe a red herring - what seems to have been causing the problem was a dependency to tcltk in one of the functions which had been added as a dependency of the package containing the shiny app.

The reasons why this can be a problem are noted in the shinyapps.io user guide section on troubleshooting:
Chapter 9 Troubleshooting | shinyapps.io user guide

I removed the dependency to tcltk and was able to deploy the app once more.

Hope this is helpful.

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.