Skip to content

Remote connection with setup SSH not working #215

Closed

Description

@mhesselbarth

Hi,

I'm trying to use a remote compute cluster logging in with a SSH key. The key is set up and working.

I'm trying to run the following code:

library("future")
library("listenv")

## Set up access to remote login node
login <- tweak(remote, workers = "[email protected]")
plan(login)

However, I get the error message:

Internal error: Unexpected result retrieved for ClusterFuture future (‘<none>’): ‘NA’
> sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.4

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

locale:
[1] de_DE.UTF-8/de_DE.UTF-8/de_DE.UTF-8/C/de_DE.UTF-8/de_DE.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] listenv_0.7.0 future_1.8.0 

loaded via a namespace (and not attached):
[1] compiler_3.4.3   parallel_3.4.3   tools_3.4.3      yaml_2.1.18      codetools_0.2-15
[6] digest_0.6.15    globals_0.11.0

Activity

  1. HenrikBengtsson commented on Apr 21, 2018

    @HenrikBengtsson
    Collaborator

    See what you get if you do:

    cl <- future::makeClusterPSOCK("[email protected]", verbose = TRUE)
    print(cl)

    because that is how the "cluster" is set up internally (but here with more details displayed).

  2. mhesselbarth commented on Apr 23, 2018

    @mhesselbarth
    Author

    It gives me the following output

    > cl <- future::makeClusterPSOCK("[email protected]", verbose = TRUE)
    Workers: [n = 1] ‘[email protected]’
    Base port: 11567
    Creating node 1 of 1 ...
    - setting up node
    Starting worker #1 on ‘[email protected]’: '/usr/bin/ssh' -R 11567:localhost:11567 [email protected] "'Rscript' --default-packages=datasets,utils,grDevices,graphics,stats,methods -e 'parallel:::.slaveRSOCK()' MASTER=localhost PORT=11567 OUT=/dev/null TIMEOUT=2592000 XDR=TRUE"
    Waiting for worker #1 on ‘[email protected]’ to connect back
    setsockopt TCP_NODELAY: Invalid argument
    Connection with worker #1 on ‘[email protected]’ established
    - assigning connection UUID
    - collecting session information
    Creating node 1 of 1 ... done
    > print(cl)
    socket cluster with 1 nodes on host ‘[email protected]’
    

    However, if I execute the following line , the same error is produced:

    cl <- future::makeClusterPSOCK("[email protected]", verbose = TRUE)
    plan(cluster, workers = cl)
    Fehler: Internal error: Unexpected result retrieved for ClusterFuture future (‘<none>’): ‘NA’
    
  3. HenrikBengtsson commented on Apr 23, 2018

    @HenrikBengtsson
    Collaborator

    Quick question for now, since I'm only on the phone: what version of future do you have installed on that remote machine?

  4. mhesselbarth commented on Apr 23, 2018

    @mhesselbarth
    Author

    That is embarrassing now, but I totally forgot that I need to install future on the remote machine as well. Anyway, thanks a lot for your effort. The issue can be closed I think. It's working now like a charme!

  5. HenrikBengtsson commented on Apr 23, 2018

    @HenrikBengtsson
    Collaborator

    No worries. Although you're the first one to report this, you're probably not the first bumping into the issue. It might also not be obvious that the future package is actually required on the workers - not sure if I've documented that properly anywhere. As a first step, I've created Issue #216 for at least giving a more informative error message.

    Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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