MultisessionFuture () failed to call gassign() on cluster ...... #598
-
Hello, I am trying to use the First, when I prepare to run the script in parallel using the following command, I receive these warnings. I am unsure if I should ignore them or there is an issue I need to solve.
Then, when I use
Please note that I am running this code on an HPC computer (CentOS Linux 7 ), with a total of 110 GB ram and 36 nodes. I used conda to install R (v 4.1.2). The same code worked nicely on different R installations but failed on this computer. Here is the results of the session info:
The same issue occurred when using other strategies (multisession, multicore, cluster). I do not think this is due to a memory issue because the same code runs well on the same node specifications, but using an older version of R (not installed via conda). Is there something related to using conda? Any suggestions? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
Can you test this code? Is posible that you need the
If you dont't solve send us the short example for replicate and help you. Erick |
Beta Was this translation helpful? Give feedback.
-
Hello, Sometimes, I also receive this error
Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thanks @orozcoae89 for your reply. Here is the results of the script you provided.
I will implement my code then and see if it works. Cheers, Ahmed |
Beta Was this translation helpful? Give feedback.
-
This error is common when you don't have set the connections with remote machines. Can you give us more details about your code for help you? Erick |
Beta Was this translation helpful? Give feedback.
-
After running my script, I receive similar error:
My code is simple. I am using Cheers, |
Beta Was this translation helpful? Give feedback.
-
Well, I think that you could improve your code, because this error is that you have a excedence in the globals fixed by default. More details: |
Beta Was this translation helpful? Give feedback.
-
(Reposting as a separate answer) This has most likely nothing to do with furrr or even future. The fact that it cannot even launch a basic test future suggests you have a broken R setup. To me the warnings:
look suspicious. What does $ Rscript -e ".libPaths()"
$ Rscript --vanilla -e ".libPaths()" output on that machine? Also, do you have an BTW, please use 'Code Block' here on GitHub to format your code you paste. It makes it much easier to read. |
Beta Was this translation helpful? Give feedback.
-
I'm getting a similar error on a linux hpc machine. I'm using future_lapply inside some custom functions, which all work fine on an m1 max macbook pro. On linux hpc: Error: MultisessionFuture (future_lapply-2) failed to call gassign() on cluster RichSOCKnode #2 (PID 852085 on localhost ‘localhost’). The reason reported was ‘error writing to connection’. Post-mortem diagnostic: A process with this PID exists, which suggests that the localhost worker is still alive. The total size of the 11 globals exported is 5.18 MiB. The three largest globals are ‘...future.elements_ii’ (4.61 MiB of class ‘list’), ‘trait_data’ (382.78 KiB of class ‘numeric’) and ‘fitMvglsAndExtractGIC.formula’ (116.46 KiB of class ‘function’) tguser@theorygroup20:
Matrix products: default locale: time zone: Etc/UTC attached base packages: other attached packages: loaded via a namespace (and not attached): No ~/.Rprofile on this machine. tried with Got this error R is installed with apt-get and updated to the latest version. Getting the same error on two machines with the same hardware configuration. Any idea? Thanks, |
Beta Was this translation helpful? Give feedback.
(Reposting as a separate answer)
This has most likely nothing to do with furrr or even future. The fact that it cannot even launch a basic test future suggests you have a broken R setup. To me the warnings:
look suspicious. What does
output on that machine?
Also, do you have an
.Rprofile
file? What does that contain?BTW, please use 'Code Block' here on GitHub to format your code you paste. It makes it much easier to read.