-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error initialising - "Subprocess is busy or cannot start"
#1628
Comments
This sounds like an issue in
is the error |
Thanks for the insight! Should I post this as an issue on the |
Are you able to reproduce the issue using |
I just checked, and no. So, if I comment out I don't know what you make of this, but since I could induce the error directly, I tried I tried debugging This isn't anything to do with a shim or anything NOTE: the The main upshot of above seems to be that |
Where is renv installing pak from, and how? |
In case it helps you to browse, all the code is in a minimal example at https://www.github.com/MiguelRodo/testRenv. So, once the container is built, I run |
Thanks, I am travelling now, but will take a look soon, probably in 2 days. |
For reference, here's how Lines 62 to 94 in d690785
|
@kevinushey Where is the pak installation there exactly? |
@MiguelRodo I tried to reproduce this as you suggested, but I got this:
|
Hi @gaborcsardi . Yes, I just then run |
Hi again @gaborcsardi. I created a |
Btw, @gaborcsardi, I think that Kevin might have given the code for
|
I'm partially guessing, but is it possible, that renv is also activated in the subprocess, and then We had a somewhat similar issue, that was fixed in renv 1.0.1: r-lib/actions#749 This was w/o pak, but AFAICT in renv 1.0.1 starting R does not trigger the installation of dependencies any more. So, while IDK what |
TLDR: Previous issue involving infinite loops of sub-process when installing Well, my previous issue (#1577) was basically that - if Kevin's fix solved that problem, but then this one cropped up immediately afterwards. So, in that So, if I turn Worth noting that, if you started |
This comment was marked as outdated.
This comment was marked as outdated.
So, I've narrowed it down a bit more. It seems like, for some reason, To reproduce:
Side note: I had to move away from the |
Hi, has there been any progress in identifying a solution to this bug? I am receiving the same errors. I'd be happy to dig into the source to try to assist if not. |
Interestingly this error does not occur on the windows-latest action runner |
Getting the same error, very keen to use pak through renv to speed up restore times. |
pak 0.6.0 was just released; you might have better luck if you use the development version of renv + pak? You can force an update of pak in renv with:
It might take some time for pak 0.6.0 to make its way to the r-lib repository, though. |
Thanks, Kevin. That seems to just install I then ran Is that In any case, it didn't seem to do the trick, unfortunately. I started a fresh container, ran Oddly enough, immediately rerunning |
0.5.1.9999 is essentially the same as 0.6.0, but I don't think it has anything that would fix this issue, sadly. |
I submitted a pull request to help solve this (#1665). Since the error only occurs the first time you use So, it's a bit hacky, but the source of the error seems obscure and you can't avoid the error in each new (Ubuntu) container. |
Fixes rstudio/renv#1628 Fixes #325.
Fixes rstudio/renv#1628 Fixes #325.
So this is now fixed in dev pak. Linux binaries will be available within an hour, the rest tomorrow. OTOH,
|
You can manually reinstall the development version of
|
Thanks, @gaborcsardi! @kevinushey, just noting that this isn't really complete unless that line setting the minimum |
We'll probably wait for |
Re-opening as reminder to bump minimum-required version of |
|
I get this too. on a fully updated arch linux with:
trying to install anything with pak, does not matter which I think. EDIT: SOLVED - OK apparently I had to update stringi to get rid of |
Hi Kevin Sorry to restart this, but the issue crops up when installing BiocManager. It has been happening for a long time, but I've not gotten round to creating the reprex and reopening the issue. In a Docker image without access to the BiocManager package, one gets this error when starting R version 4.4.0 (2024-04-24) -- "Puppy Cup"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Error in remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...), :
Subprocess is busy or cannot start
Traceback (most recent calls last):
21: source("renv/activate.R")
20: withVisible(eval(ei, envir))
19: eval(ei, envir)
18: eval(ei, envir)
17: local(...) at activate.R#2
16: eval.parent(substitute(eval(quote(expr), envir)))
15: eval(expr, p)
14: eval(expr, p)
13: eval(quote(...), new.env())
12: eval(quote(...), new.env())
11: renv_bootstrap_exec(project, libpath, version) at activate.R#1216
10: if (!renv_bootstrap_load(project, libpath, version))
renv_bootstrap_run(version, libpath) at activate.R#1049
9: renv::load(project) at activate.R#904
8: renv_load_bioconductor(project, lockfile$Bioconductor)
7: renv_bioconductor_init()
6: renv_bioconductor_init_biocmanager(library)
5: install("BiocManager", library = library, prompt = FALSE)
4: renv_pak_install(packages, libpaths, project)
3: pak$pkg_install(pkg = packages, lib = lib, upgrade = TRUE)
2: remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...),
list(pkg = pkg, lib = lib, upgrade = upgrade, ask = ask,
start = start, dependencies = dependencies, loaded = loaded_packages(lib)))
1: stop("Subprocess is busy or cannot start") The workaround is to run: Sys.setenv("RENV_CONFIG_PAK_ENABLED" = "false")
renv::install("BiocManager")
Sys.setenv("RENV_CONFIG_PAK_ENABLED" = "true")
renv::restore() To reproduce the issue, you can open the codespace from Note that if Could this issue be fixed by simply adding renv_scope_options(renv.config.pak.enabled = FALSE) to the |
Sorry for the delay; I hope to investigate further next time I'm working on |
Hi Kevin
I think that the fix to #1577 has not entirely worked, unfortunately.
This is the call stack leading up to the error:
I've managed to create a minimal example using a GitHub Codespace, a
renv
lockfile that specifies the BioConductor version a well asrenv
from themain
branch on GitHub, andpak
enabled. To repeat it:Code
button.+
button (if you hover, it will showCreate a codespace on main
).radian
in terminal (using theR
shell directly does the same thing, but does not print the call stack)The error should then just happen after a while (a bit slow because I haven't disabled the sandbox).
The text was updated successfully, but these errors were encountered: