Shiny app with local '500 internal server error'

I have a shiny app I am trying to run locally but when the app runs it gives an error of '500 internal server error'

I can't figure out what is wrong. Worse, I have a co-worker run the exact same script on their computer, no changes, and it runs. This script also runs on a shiny server that I am operating (might be slightly different as it's an older version there, as I was hoping to update). So, must be something on my machine.....

Going to the logs, C:\Users\USERNAME\AppData\Local\RStudio-Desktop\log\ provides this:

WARNING Unknown Rtools version: 3.5; LOGGED FROM: rstudio::core::Error rstudio::core::r_util::scanRegistryForRTools(HKEY, bool, std::vectorrstudio::core::r_util::RToolsInfo*) C:\Users\Administrator\rstudio\src\cpp\core\r_util\RToolsInfo.cpp:269

My session_info() provides this:

  • Session info -------------------------------------------------------------------------------------------------------------
    setting value
    version R version 3.5.1 (2018-07-02)
    os Windows >= 8 x64
    system x86_64, mingw32
    ui RStudio
    language (EN)
    collate English_United States.1252
    ctype English_United States.1252
    tz America/Denver
    date 2019-07-11

  • Packages -----------------------------------------------------------------------------------------------------------------
    ! package * version date lib source
    assertthat 0.2.1 2019-03-21 [1] CRAN (R 3.5.3)
    backports 1.1.4 2019-04-10 [1] CRAN (R 3.5.3)
    bit * 1.1-14 2018-05-29 [1] CRAN (R 3.5.0)
    bitops * 1.0-6 2013-08-17 [1] CRAN (R 3.5.0)
    callr 3.3.0 2019-07-04 [1] CRAN (R 3.5.3)
    caTools 1.17.1.2 2019-03-06 [1] CRAN (R 3.5.3)
    cli 1.1.0 2019-03-19 [1] CRAN (R 3.5.3)
    codetools 0.2-15 2016-10-05 [2] CRAN (R 3.5.1)
    colorspace 1.4-1 2019-03-18 [1] CRAN (R 3.5.3)
    crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.1)
    crosstalk 1.0.0 2016-12-21 [1] CRAN (R 3.5.1)
    curl 3.3 2019-01-10 [1] CRAN (R 3.5.3)
    data.table 1.12.2 2019-04-07 [1] CRAN (R 3.5.3)
    desc 1.2.0 2018-05-01 [1] CRAN (R 3.5.2)
    devtools * 2.1.0 2019-07-06 [1] CRAN (R 3.5.3)
    digest 0.6.20 2019-07-04 [1] CRAN (R 3.5.3)
    dplyr * 0.8.3 2019-07-04 [1] CRAN (R 3.5.3)
    DT * 0.7 2019-06-11 [1] CRAN (R 3.5.3)
    dygraphs * 1.1.1.6 2018-07-11 [1] CRAN (R 3.5.1)
    evaluate 0.14 2019-05-28 [1] CRAN (R 3.5.3)
    ff * 2.2-14 2018-05-15 [1] CRAN (R 3.5.1)
    foreign 0.8-71 2018-07-20 [1] CRAN (R 3.5.1)
    fs 1.3.1 2019-05-06 [1] CRAN (R 3.5.3)
    gdata 2.18.0 2017-06-06 [1] CRAN (R 3.5.1)
    geosphere * 1.5-10 2019-05-26 [1] CRAN (R 3.5.3)
    ggmap * 3.0.0 2019-02-05 [1] CRAN (R 3.5.3)
    ggplot2 * 3.2.0 2019-06-16 [1] CRAN (R 3.5.3)
    ggthemes * 4.2.0 2019-05-13 [1] CRAN (R 3.5.3)
    glue * 1.3.1 2019-03-12 [1] CRAN (R 3.5.3)
    gplots * 3.0.1.1 2019-01-27 [1] CRAN (R 3.5.3)
    gridExtra * 2.3 2017-09-09 [1] CRAN (R 3.5.1)
    gtable 0.3.0 2019-03-25 [1] CRAN (R 3.5.3)
    gtools 3.8.1 2018-06-26 [1] CRAN (R 3.5.0)
    hexbin 1.27.3 2019-05-14 [1] CRAN (R 3.5.3)
    highr 0.8 2019-03-20 [1] CRAN (R 3.5.3)
    htmltools 0.3.6 2017-04-28 [1] CRAN (R 3.5.1)
    htmlwidgets 1.3 2018-09-30 [1] CRAN (R 3.5.1)
    httpuv 1.5.1 2019-04-05 [1] CRAN (R 3.5.3)
    httr 1.4.0 2018-12-11 [1] CRAN (R 3.5.3)
    ini * 0.3.1 2018-05-20 [1] CRAN (R 3.5.1)
    jpeg * 0.1-8 2014-01-23 [1] CRAN (R 3.5.0)
    jsonlite 1.6 2018-12-07 [1] CRAN (R 3.5.3)
    KernSmooth 2.23-15 2015-06-29 [2] CRAN (R 3.5.1)
    knitr * 1.23 2019-05-18 [1] CRAN (R 3.5.3)
    later 0.8.0 2019-02-11 [1] CRAN (R 3.5.3)
    lattice * 0.20-35 2017-03-25 [2] CRAN (R 3.5.1)
    latticeExtra * 0.6-28 2016-02-09 [1] CRAN (R 3.5.1)
    lazyeval 0.2.2 2019-03-15 [1] CRAN (R 3.5.3)
    leaflet * 2.0.2 2018-08-27 [1] CRAN (R 3.5.1)
    lubridate * 1.7.4 2018-04-11 [1] CRAN (R 3.5.1)
    magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.1)
    mapproj * 1.2.6 2018-03-29 [1] CRAN (R 3.5.1)
    maps * 3.3.0 2018-04-03 [1] CRAN (R 3.5.2)
    maptools * 0.9-5 2019-02-18 [1] CRAN (R 3.5.3)
    markdown * 1.0 2019-06-07 [1] CRAN (R 3.5.3)
    memoise 1.1.0 2017-04-21 [1] CRAN (R 3.5.1)
    mime 0.7 2019-06-11 [1] CRAN (R 3.5.3)
    munsell 0.5.0 2018-06-12 [1] CRAN (R 3.5.1)
    ncdf4 * 1.16.1 2019-03-11 [1] CRAN (R 3.5.3)
    pander * 0.6.3 2018-11-06 [1] CRAN (R 3.5.3)
    pillar 1.4.2 2019-06-29 [1] CRAN (R 3.5.3)
    V pkgbuild 1.0.3 2019-07-12 [1] Github (r-lib/pkgbuild@79694ac)
    pkgconfig 2.0.2 2018-08-16 [1] CRAN (R 3.5.1)
    pkgload 1.0.2 2018-10-29 [1] CRAN (R 3.5.2)
    plotly * 4.9.0 2019-04-10 [1] CRAN (R 3.5.3)
    plyr 1.8.4 2016-06-08 [1] CRAN (R 3.5.1)
    png 0.1-7 2013-12-03 [1] CRAN (R 3.5.0)
    prettyunits 1.0.2 2015-07-13 [1] CRAN (R 3.5.2)
    processx 3.4.0 2019-07-03 [1] CRAN (R 3.5.3)
    proj4 * 1.0-8 2012-08-05 [1] CRAN (R 3.5.0)
    promises 1.0.1 2018-04-13 [1] CRAN (R 3.5.1)
    proto * 1.0.0 2016-10-29 [1] CRAN (R 3.5.1)
    ps 1.3.0 2018-12-21 [1] CRAN (R 3.5.3)
    purrr 0.3.2 2019-03-15 [1] CRAN (R 3.5.3)
    R.methodsS3 1.7.1 2016-02-16 [1] CRAN (R 3.5.0)
    R.oo 1.22.0 2018-04-22 [1] CRAN (R 3.5.0)
    R.utils 2.9.0 2019-06-13 [1] CRAN (R 3.5.3)
    R6 2.4.0 2019-02-14 [1] CRAN (R 3.5.3)
    raster * 2.9-5 2019-05-14 [1] CRAN (R 3.5.3)
    rasterVis * 0.46 2019-07-02 [1] CRAN (R 3.5.3)
    RColorBrewer * 1.1-2 2014-12-07 [1] CRAN (R 3.5.0)
    Rcpp 1.0.1 2019-03-17 [1] CRAN (R 3.5.3)
    RCurl * 1.95-4.12 2019-03-04 [1] CRAN (R 3.5.2)
    remotes 2.1.0 2019-06-24 [1] CRAN (R 3.5.3)
    reshape2 * 1.4.3 2017-12-11 [1] CRAN (R 3.5.1)
    rgdal * 1.4-4 2019-05-29 [1] CRAN (R 3.5.3)
    rgeos * 0.4-3 2019-04-24 [1] CRAN (R 3.5.3)
    RgoogleMaps * 1.4.3 2018-11-07 [1] CRAN (R 3.5.3)
    rjson * 0.2.20 2018-06-08 [1] CRAN (R 3.5.0)
    rlang 0.4.0 2019-06-25 [1] CRAN (R 3.5.3)
    rmarkdown * 1.13 2019-05-22 [1] CRAN (R 3.5.3)
    rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.5.1)
    rsconnect 0.8.13 2019-01-10 [1] CRAN (R 3.5.3)
    rstudioapi 0.10 2019-03-19 [1] CRAN (R 3.5.3)
    rts * 1.0-49 2019-02-03 [1] CRAN (R 3.5.3)
    scales * 1.0.0 2018-08-09 [1] CRAN (R 3.5.1)
    SDMTools * 1.1-221.1 2019-04-18 [1] CRAN (R 3.5.3)
    sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.5.2)
    shiny * 1.3.2 2019-04-22 [1] CRAN (R 3.5.3)
    shinyBS * 0.61 2015-03-31 [1] CRAN (R 3.5.1)
    shinyjs * 1.0 2018-01-08 [1] CRAN (R 3.5.3)
    shinythemes * 1.1.2 2018-11-06 [1] CRAN (R 3.5.3)
    sp * 1.3-1 2018-06-05 [1] CRAN (R 3.5.1)
    stringi 1.4.3 2019-03-12 [1] CRAN (R 3.5.3)
    stringr 1.4.0 2019-02-10 [1] CRAN (R 3.5.3)
    testthat 2.1.1 2019-04-23 [1] CRAN (R 3.5.3)
    tibble 2.1.3 2019-06-06 [1] CRAN (R 3.5.3)
    tidyr 0.8.3 2019-03-01 [1] CRAN (R 3.5.3)
    tidyselect 0.2.5 2018-10-11 [1] CRAN (R 3.5.3)
    usethis * 1.5.1 2019-07-04 [1] CRAN (R 3.5.3)
    viridisLite 0.3.0 2018-02-01 [1] CRAN (R 3.5.1)
    withr 2.1.2 2018-03-15 [1] CRAN (R 3.5.1)
    xfun 0.8 2019-06-25 [1] CRAN (R 3.5.3)
    xtable 1.8-4 2019-04-21 [1] CRAN (R 3.5.3)
    xts * 0.11-2 2018-11-05 [1] CRAN (R 3.5.3)
    yaml 2.2.0 2018-07-25 [1] CRAN (R 3.5.1)
    zoo * 1.8-6 2019-05-28 [1] CRAN (R 3.5.3)

[1] C:/Users/USERNAME/Documents/R/win-library/3.5
[2] C:/Program Files/R/R-3.5.1/library

V -- Loaded and on-disk version mismatch.

Rtools is found here:
C:\Program Files\R\R-3.5.1\Rtools
where mingw_32 and mingw_64 are available.

Any ideas as to what is going on or how I can get a cleaned start to get this to work?

Thanks!

I haven't heard of "500 errors" when running Shiny, but their common with lots of other frameworks. Is it possible that you have something else running on the port you're connecting to?

Screenshots of the error might help, too.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.