Closed actuarial-lonewolf closed 1 month ago
Thanks. Compiling duckdb on shinyapps.io isn't likely to succeed. The binaries on https://p3m.dev/client/ are up to date though:
https://p3m.dev/client/#/repos/cran/packages/duckdb/overview?search=duckdb#package-details
Fyi, my solution was to (unfortunately) downgrade back to 0.7.1., which does compile on shinyapps.io.
Thanks for the heads-up.
I don't understand why it was closed? It is still a significant issue, moreover given the file reading incompatibility between package versions.
Sure, let's discuss.
Hi, I noticed duckdb is now at version 1.1.0 (Sept 25, 2024). I have tried once again to deploy an app on shinyapps.io, using the updated 1.1.0 duckdb alongside the generic web shiny app template (as in the first post).
Deployment hangs at the Building packages: duckdb
After 30 minutes+, it crashes.
Error: Unhandled Exception: child_task=1465514956 child_task_status=error: Unhandled Exception: 599
FYI, I have an issue open at posit, but not much traction there either.
I have the same problem as well.
Thanks. Can you configure Posit Package Manager as the repository before deploying to shinyapps.io?
If that is done by options(repos = c(CRAN = "https://packagemanager.posit.co/cran/latest"))
then can confirm it still doesn't work.
Searching for similar issues in the past brings up this answer from a Posit employee:
The issue with mzR is not one of the time limit, but that while building the package we stop seeing the output of the build, and thus don't see when it completes, and therefore hit the timeout. We have not yet found the root cause, and do not have an estimate for when a solution might be in place. We apologize for the inconvenience this causes and will be sure to announce when we have solved the problem.
If that is done by
options(repos = c(CRAN = "https://packagemanager.posit.co/cran/latest"))
then can confirm it still doesn't work.
Is it still compiling duckdb from source? You probably need to set the User-Agent
header, e.g.
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version["platform"], R.version["arch"], R.version["os"])))
Cf. https://docs.posit.co/rspm/admin/serving-binaries/#binary-user-agents
Also, the correct repo address (for Jammy if that's what you are using) is:
options(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/jammy/latest"))
(For other distros see https://packagemanager.posit.co/client/#/ and click on 'Setup'.)
Just to clarify, Gábor -- which component would set the HTTPUserAgent
option? IIUC, this needs to happen on shinyapps.io, while restoring the deployment's execution environment.
The log shows that some packages are installed as binary (search for *binary*
in the output), but duckdb apparently is not. I do wonder why compiling succeeds with 0.7.1, but not with more recent versions too. On the other hand, it looks like compilation shouldn't be done in the first place.
Can someone please post a full deployment log?
Perhaps a workaround: Does it work on Connect Cloud (https://connect.posit.cloud/)?
I am not sure where you'd set this, I saw you were setting the repos option already, just wanted to point out that it might not be enough.
But if some packages are being installed from binaries already, then all is good in that front. Well, except that duckdb is installed from source.
Is there a duckdb binary available from PPM, btw? Maybe the PPM build fails as well, that's why it is being installed from source.
If you can really set the repos
option, then I suggest you set it to a PPM snapshot (that has a binary duckdb), because the latest
repo might not have binaries for recently published packages.
Re why 0.7.1 does not fail, the new version either just fails to build on this platform, or it simply requires more memory to compile.
Hi all, Thanks for your help on this issue. I bring good news. Posit has fixed the issue when deploying to shinyapps.io.
I have tested it with duckdb 1.1.0 and it works!
Hi,
I've been juggling with duckdb on various computers and learned just recently that duckdb disk files are not compatible between package versions. As an example, *.duckdb file created under version 0.7.1 can't be read by version 1.0.0 , and vice-versa. I've had previous successful deployments using duckdb 0.7.1.
Decided to end this none-sense version incompatibility and upgrade all my Windows softwares, to R 4.4.1, and reinstall all packages up to date.
Local Installation
Deployment
When I deploy my app to shinyapps.io, the deployment crashes during the phase where shinyapps compiles duckdb 1.0.0-1.
rsconnect::deployApp(appDir = 'C:\\test_duckdb\\', appName = "test_duckdb")
It runs for 20 minutes until the error log shows up. See at the end.
Reprex
using default Shiny app.R template and adding
library(duckdb)
.sessionInfo
sessionInfo()
in local Rstudio:Log
Any tips?