slurmR
slurmR copied to clipboard
“An error has occurred when calling `silent_system2`:”
https://stackoverflow.com/questions/65402764/slurmr-trying-to-run-an-example-job-an-error-has-occurred-when-calling-silent
I setup a slurm cluster and I can issue a srun -N4 hostname just fine.
I keep seeing "silent_system2" errors. I've installed slurmR using devtools::install_github("USCbiostats/slurmR")
I'm following the second example 3: https://github.com/USCbiostats/slurmR
here are my files
cat slurmR.R
library(doParallel)
library(slurmR)
cl <- makeSlurmCluster(4)
registerDoParallel(cl)
m <- matrix(rnorm(9), 3, 3)
foreach(i=1:nrow(m), .combine=rbind)
StopCluster(cl)
print(m)
cat rscript.slurm
#!/bin/bash
#SBATCH --output=slurmR.out
cd /mnt/nfsshare/tankpve0/
Rscript --vanilla slurmR.R
cat slurmR.out
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel
slurmR default option for `tmp_path` (used to store auxiliar files) set to:
/mnt/nfsshare/tankpve0
You can change this and checkout other slurmR options using: ?opts_slurmR, or you could just type "opts_slurmR" on the terminal.
Submitting job... jobid:18.
Slurm accounting storage is disabled
Error: An error has occurred when calling `silent_system2`:
Warning: An error was detected before returning the cluster object. If submitted, we will try to cancel the job and stop the cluster object.
Execution halted