Setting up a plan using 'cluster' to use multiple cores via ssh on a remote machine. R processes start but return an error about Error in workRSOCK() : PORT must be specified
> plan(cluster, workers=rep("USER@ip.of.my.server", 6), rscript='/home/WUR/mosqu003/Bin/R')
ARGUMENT 'MASTER=localhost' __ignored__
ARGUMENT 'PORT=11636' __ignored__
ARGUMENT 'OUT=/dev/null' __ignored__
ARGUMENT 'TIMEOUT=2592000' __ignored__
ARGUMENT 'XDR=FALSE' __ignored__
ARGUMENT 'SETUPTIMEOUT=120' __ignored__
ARGUMENT 'SETUPSTRATEGY=sequential' __ignored__
R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
[...]
> options(socketOptions = "no-delay")
> workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()
Error in workRSOCK() : PORT must be specified
Execution halted
and the plan hangs until killed.
Reproduce example
I cannot provide access to that machine, command issued as above
Expected behavior
Connection is established and future is available.
Session information
Please share your session information after the error has occurred so that we also see which packages and versions are involved;
Remote machine
> sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.2 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
time zone: Etc/UTC
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] processx_3.8.2 compiler_4.3.1 R6_2.5.1 rprojroot_2.0.3
[5] cli_3.6.1 prettyunits_1.1.1 tools_4.3.1 curl_5.0.1
[9] crayon_1.5.2 remotes_2.4.2.1 desc_1.4.2 callr_3.7.3
[13] pkgbuild_1.4.2 ps_1.7.5
Describe the bug
Setting up a plan using 'cluster' to use multiple cores via ssh on a remote machine. R processes start but return an error about
Error in workRSOCK() : PORT must be specified
and the plan hangs until killed.
Reproduce example
I cannot provide access to that machine, command issued as above
Expected behavior
Connection is established and future is available.
Session information
Please share your session information after the error has occurred so that we also see which packages and versions are involved;