RMarkdown Flexdash publish error

Within the past week, when I try to publish my Flexdashboard app I started to receive a "Unhandled Exception: Child Task - Error building image" error. The underlying data is able to push but any changes to the structure of the dashboard are not migrated to my shinyapps.io application. The flexdashboard renders as expected it is just when I publish it to shinyapps that I receive these errors. I have tried to restart the application on shinyapps.io as well as disabling the package cache.but to no avail. I haven't made any changes to the underlying code so I'm somewhat perplexed how this started happening.

If anyone has some insight on how to troubleshoot this error I would greatly appreciate it.

Thank you

################################# End Task Log #################################
----- Deployment error -----
Error: Unhandled Exception: Child Task 783580152 failed: Error building image: Error building readr (1.3.1.9000). Build exited with non-zero status: 1

----- Error stack trace -----
3: stop(status$error, call. = FALSE)
2: client$waitForTask(taskId, quiet)
1: rsconnect::deployApp(appDir = "~/GitHub/splGoldenDeathX/SPL-Dashboard",
appFileManifest = "C:/Users/gfalk/AppData/Local/Temp/0d59-7480-238b-7f72",
appPrimaryDoc = "FlexDashboard.Rmd", appSourceDoc = "~/GitHub/splGoldenDeathX/SPL-Dashboard/FlexDashboard.Rmd",
account = "utexas80", server = "shinyapps.io", appName = "FlexDashboard",
appTitle = "FlexDashboard", launch.browser = function(url) {
message("Deployment completed: ", url)
}, lint = FALSE, metadata = list(asMultiple = FALSE, asStatic = FALSE),
logLevel = "verbose")
Error: Unhandled Exception: Child Task 783580152 failed: Error building image: Error building readr (1.3.1.9000). Build exited with non-zero status: 1
Execution halted

Here's is the output from the l

Warning in untar2(tarfile, files, list, exdir, restore_times) :
skipping pax global extended headers

  • installing to library ‘/opt/R/3.6.3/lib/R/library’
  • installing source package ‘readr’ ...
    ** using staged installation
    ** libs
    make: Entering directory '/tmp/RtmpoqQqSL/R.INSTALL970381b076c/tidyverse-readr-2ab51b2/src'
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c Collector.cpp -o Collector.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c CollectorGuess.cpp -o CollectorGuess.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c Iconv.cpp -o Iconv.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c LocaleInfo.cpp -o LocaleInfo.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c Reader.cpp -o Reader.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c Source.cpp -o Source.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c Tokenizer.cpp -o Tokenizer.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c TokenizerDelim.cpp -o TokenizerDelim.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c TokenizerFwf.cpp -o TokenizerFwf.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c TokenizerWs.cpp -o TokenizerWs.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c connection.cpp -o connection.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c cpp11.cpp -o cpp11.o
    g++ -std=gnu++11 -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c datetime.cpp -o datetime.o
    gcc -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c grisu3.c -o grisu3.o
    gcc -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c init.c -o init.o
    gcc -I"/opt/R/3.6.3/lib/R/include" -DNDEBUG -I"/opt/R/3.6.3/lib/R/library/BH/include" -I"/opt/R/3.6.3/lib/R/library/cpp11/include" -I/usr/local/include -fpic -g -O2 -c localtime.c -o localtime.o
    cpp11.cpp: In function ‘SEXPREC* readr_parse_vector(SEXP, SEXP, SEXP, SEXP, SEXP)’:
    cpp11.cpp:59:263: error: call of overloaded ‘as_cpp(SEXPREC*&)’ is ambiguous
    return cpp11::as_sexp(parse_vector_(cpp11::unmove(cpp11::as_cppcpp11::strings(x)), cpp11::unmove(cpp11::as_cppcpp11::list(collectorSpec)), cpp11::unmove(cpp11::as_cppcpp11::list(locale_)), cpp11::unmove(cpp11::as_cpp<const std::vectorstd::string&>(na)), cpp11::unmove(cpp11::as_cpp(trim_ws))));
    ^
    In file included from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11.hpp:5:0,
    from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/declarations.hpp:8,
    from cpp11.cpp:4:
    /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/as.hpp:180:62: note: candidate: cpp11::enable_if_t<(! std::is_same<typename std::decay<_Tp>::type, T>::value), typename std::decay<_Tp>::type> cpp11::as_cpp(SEXP) [with T = const std::vector<std::__cxx11::basic_string >&; cpp11::enable_if_t<(! std::is_same<typename std::decay<_Tp>::type, T>::value), typename std::decay<_Tp>::type> = std::vector<std::__cxx11::basic_string >; SEXP = SEXPREC*]
    enable_if_t<!std::is_same<decay_t, T>::value, decay_t> as_cpp(SEXP from) {
    ^
    In file included from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/list.hpp:10:0,
    from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/data_frame.hpp:12,
    from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11.hpp:7,
    from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/declarations.hpp:8,
    from cpp11.cpp:4:
    /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/r_vector.hpp:949:28: note: candidate: cpp11::is_vector_of_strings<C, T> cpp11::as_cpp(SEXP) [with C = const std::vector<std::__cxx11::basic_string >&; T = std::__cxx11::basic_string; cpp11::is_vector_of_strings<C, T> = std::vector<std::cxx11::basic_string >; SEXP = SEXPREC*]
    is_vector_of_strings<C, T> as_cpp(SEXP from) {
    ^
    cpp11.cpp:59:314: error: call of overloaded ‘as_cpp(SEXPREC*&)’ is ambiguous
    return cpp11::as_sexp(parse_vector
    (cpp11::unmove(cpp11::as_cppcpp11::strings(x)), cpp11::unmove(cpp11::as_cppcpp11::list(collectorSpec)), cpp11::unmove(cpp11::as_cppcpp11::list(locale
    )), cpp11::unmove(cpp11::as_cpp<const std::vectorstd::string&>(na)), cpp11::unmove(cpp11::as_cpp(trim_ws))));
    ^
    In file included from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11.hpp:5:0,
    from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/declarations.hpp:8,
    from cpp11.cpp:4:
    /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/as.hpp:70:26: note: candidate: cpp11::enable_if_integral<T, T> cpp11::as_cpp(SEXP) [with T = const bool; cpp11::enable_if_integral<T, T> = const bool; SEXP = SEXPREC*]
    enable_if_integral<T, T> as_cpp(SEXP from) {
    ^
    /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/as.hpp:180:62: note: candidate: cpp11::enable_if_t<(! std::is_same<typename std::decay<_Tp>::type, T>::value), typename std::decay<_Tp>::type> cpp11::as_cpp(SEXP) [with T = const bool; cpp11::enable_if_t<(! std::is_same<typename std::decay<_Tp>::type, T>::value), typename std::decay<_Tp>::type> = bool; SEXP = SEXPREC*]
    enable_if_t<!std::is_same<decay_t, T>::value, decay_t> as_cpp(SEXP from) {
    ^
    cpp11.cpp: In function ‘SEXPREC* readr_type_convert_col(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)’:
    cpp11.cpp:154:297: error: call of overloaded ‘as_cpp(SEXPREC*&)’ is ambiguous
    return cpp11::as_sexp(type_convert_col(cpp11::unmove(cpp11::as_cppcpp11::strings(x)), cpp11::unmove(cpp11::as_cppcpp11::list(spec)), cpp11::unmove(cpp11::as_cppcpp11::list(locale
    )), cpp11::unmove(cpp11::as_cpp(col)), cpp11::unmove(cpp11::as_cpp<const std::vectorstd::string&>(na)), cpp11::unmove(cpp11::as_cpp(trim_ws))));
    ^
    In file included from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11.hpp:5:0,
    from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/declarations.hpp:8,
    from cpp11.cpp:4:
    /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/as.hpp:180:62: note: candidate: cpp11::enable_if_t<(! std::is_same<typename std::decay<_Tp>::type, T>::value), typename std::decay<_Tp>::type> cpp11::as_cpp(SEXP) [with T = const std::vector<std::__cxx11::basic_string >&; cpp11::enable_if_t<(! std::is_same<typename std::decay<_Tp>::type, T>::value), typename std::decay<_Tp>::type> = std::vector<std::__cxx11::basic_string >; SEXP = SEXPREC*]
    enable_if_t<!std::is_same<decay_t, T>::value, decay_t> as_cpp(SEXP from) {
    ^
    In file included from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/list.hpp:10:0,
    from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/data_frame.hpp:12,
    from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11.hpp:7,
    from /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/declarations.hpp:8,
    from cpp11.cpp:4:
    /opt/R/3.6.3/lib/R/library/cpp11/include/cpp11/r_vector.hpp:949:28: note: candidate: cpp11::is_vector_of_strings<C, T> cpp11::as_cpp(SEXP) [with C = const std::vector<std::__cxx11::basic_string >&; T = std::__cxx11::basic_string; cpp11::is_vector_of_strings<C, T> = std::vector<std::__cxx11::basic_string >; SEXP = SEXPREC*]
    is_vector_of_strings<C, T> as_cpp(SEXP from) {
    ^
    /opt/R/3.6.3/lib/R/etc/Makeconf:177: recipe for target 'cpp11.o' failed
    make: *** [cpp11.o] Error 1
    make: *** Waiting for unfinished jobs....
    make: Leaving directory '/tmp/RtmpoqQqSL/R.INSTALL970381b076c/tidyverse-readr-2ab51b2/src'
    make: Entering directory '/tmp/RtmpoqQqSL/R.INSTALL970381b076c/tidyverse-readr-2ab51b2/src'
    make: Leaving directory '/tmp/RtmpoqQqSL/R.INSTALL970381b076c/tidyverse-readr-2ab51b2/src'
    ERROR: compilation failed for package ‘readr’
  • removing ‘/opt/R/3.6.3/lib/R/library/readr’
    ################################# End Task Log #################################
    Error: Unhandled Exception: Child Task 783541127 failed: Error building image: Error building readr (1.3.1.9000). Build exited with non-zero status: 1
    Execution halted

Do you have the development (GitHub) version of readr installed in your system? rsconnect it is going to try to replicate your environment on the server and it is very likely that the compilation from source is failing because of RAM memory restrictions for the container.
I would recommend installing the CRAN version of readr and deploying again.

andresrce - Thank you so much for the prompt response. I've been pulling my hair out for the last week. As suggested, I installed the CRAN readr version 1.31.1.9000 but still got the same error...

ERROR: compilation failed for package ‘readr’

  • removing ‘/opt/R/3.6.3/lib/R/library/readr’
    GET /v1/tasks/?filter=account_id:172162&filter=parent_id:783620433&count=100&offset=0 109ms
    ################################# End Task Log #################################
    ----- Deployment error -----
    Error: Unhandled Exception: Child Task 783620433 failed: Error building image: Error building readr (1.3.1.9000). Build exited with non-zero status: 1

----- Error stack trace -----
3: stop(status$error, call. = FALSE)
2: client$waitForTask(taskId, quiet)
1: rsconnect::deployApp(appDir = "~/GitHub/splGoldenDeathX/SPL-Dashboard",
appFileManifest = "C:/Users/gfalk/AppData/Local/Temp/3042-5735-55e3-5723",
appPrimaryDoc = "FlexDashboard.Rmd", appSourceDoc = "~/GitHub/splGoldenDeathX/SPL-Dashboard/FlexDashboard.Rmd",
account = "utexas80", server = "shinyapps.io", appName = "FlexDashboard",
appId = 2485642, launch.browser = function(url) {
message("Deployment completed: ", url)
}, lint = FALSE, metadata = list(asMultiple = FALSE, asStatic = FALSE),
logLevel = "verbose")
Error: Unhandled Exception: Child Task 783620433 failed: Error building image: Error building readr (1.3.1.9000). Build exited with non-zero status: 1
Execution halted

The latest CRAN version is 1.3.1, you are still using the GitHub version

andresrcs - that did the trick. Thank you. Your assistance is greatly appreciated.