Skip to content

fs version 2.1.0 causes failures in rsconnect::deployApp() #514

Description

@daattali

I'm only 95% sure about this, not 100%, mostly because I don't understand the mechanism.

But I've spent about 10 hours today debugging a shiny app that has a deployment to shinyapps.io using rsconnect::deployApp() via a github action, and for some reason it started failing in the last few days. Looking at the logs, I saw that it fails at building fs.

You can see the full log here or in the details section below.

Details
── Deploying to server ─────────────────────────────────────────────────────────
Waiting for task: 1682449146
  building: Building image: 14804214
  building: Installing system dependencies
  building: Fetching packages
  building: Building package: fs
## Begin Task Log ##############################################################
Quarto not found.
[2026-04-23T06:10:42.031280152+0000] Execute script: packages/build/rJava.sh
+ set -e
+ apt-get update -qq
W: http://cran.rstudio.com/bin/linux/ubuntu/jammy-cran40/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
+ apt-get install bzip2 libbz2-dev
Reading package lists...
Building dependency tree...
* installing to library ‘/usr/lib/R’
* installing *binary* package ‘digest’ ...
* DONE (digest)
[2026-04-23T06:11:53.048069009+0000] Installing R package: evaluate (1.0.5)
* installing to library ‘/usr/lib/R’
* installing *binary* package ‘evaluate’ ...
* DONE (evaluate)
[2026-04-23T06:11:53.745379986+0000] Installing R package: farver (2.1.2)
* installing to library ‘/usr/lib/R’
* installing *binary* package ‘farver’ ...
* DONE (farver)
[2026-04-23T06:11:54.597759376+0000] Installing R package: fastmap (1.2.0)
* installing to library ‘/usr/lib/R’
* installing *binary* package ‘fastmap’ ...
* DONE (fastmap)
[2026-04-23T06:11:55.328716926+0000] Installing R package: fontBitstreamVera (0.1.1)
* installing to library ‘/usr/lib/R’
* installing *binary* package ‘fontBitstreamVera’ ...
* DONE (fontBitstreamVera)
[2026-04-23T06:11:56.109432497+0000] Installing R package: fontLiberation (0.1.0)
* installing to library ‘/usr/lib/R’
* installing *binary* package ‘fontLiberation’ ...
* DONE (fontLiberation)
[2026-04-23T06:11:56.979866875+0000] Building R package: fs (2.1.0)
/mnt/packages/build /mnt
Using PKG_CFLAGS=
Using PKG_LIBS=-luv
--------------------------- [CONFIGURE] --------------------------------
Configuration failed because libuv was not found. Try installing:
 * deb: libuv1-dev (Debian, Ubuntu, etc)
 * rpm: libuv-devel (Fedora, EPEL)
 * brew: libuv (OSX)
Alternatively set environment variable USE_BUNDLED_LIBUV=1 to build a static
version of libuv that is included with this package.
Error: MESSAGE] ---------------------------
:1:10: fatal error: uv.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
* installing to library ‘/usr/lib/R’
* installing *source* package ‘fs’ ...
** package ‘fs’ successfully unpacked and MD5 sums checked
** using staged installation
Package libuv was not found in the pkg-config search path.
Perhaps you should add the directory containing `libuv.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libuv', required by 'virtual:world', not found
ERROR: configuration failed for package ‘fs’
* removing ‘/usr/lib/R/fs’Error: Unhandled Exception: child_task=1682449147 child_task_status=failed: Error building image: Error building fs (2.1.0). Build exited with non-zero status: 1
## End Task Log ################################################################
Execution halted
Error: Process completed with exit code 1.

When I explicitly install fs version 2.0.1 using remotes::install_version("fs", version = "2.0.1", upgrade = "never", force = TRUE), the deployment works. If I don't explicitly install a version (which means it gets installed automatically from CRAN), or if I expliticly install 2.1.0, I get the above error.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions