Skip to content

Sodium package problem #57

@mbahin

Description

@mbahin

Hi,

I'm trying to setup remoter to run R from a remote server on my local computer (through Rstudio but I'm not there yet...).
I'm still stuck on the step where I'm trying to create a local server and connect from another local session.
I have a Ubuntu 18.04 with libsodium package installed:

$dpkg -l | grep libsodium
ii  libsodium-dev:amd64                                   1.0.16-2                                         amd64        Network communication, cryptography and signaturing library - headers
ii  libsodium23:amd64                                     1.0.16-2                                         amd64        Network communication, cryptography and signaturing library
ii  python3-nacl

as well as R sodium lib. When I type "library(sodium)", it works (I don't get if I have to do it before running server and/or client but I did it anyway). But then, when I try to start the server, I get this:

> remoter::server(showmsg=TRUE, secure=TRUE)
Error in remoter::server(showmsg = TRUE, secure = TRUE) : 
  secure servers can only be launched if the 'sodium' package is installed

I can run an unsecure server:

> remoter::server(showmsg=TRUE,)
[2020-08-06 10:10:04]: *** Launching UNSECURE server ***
                           Hostname:     XXX
                           Port:         XXX

But then I'm unable to run stuff on it from the client (I guess it's the reason):

> remoter::client()
remoter> remoter::batch(script="1+1")
Error:  can not spawn client/server/relay or launch a batch connection from inside the client

and if I check sodium, it's false:

remoter> has.sodium()
[1] FALSE 

My "main" R version is a 4 so I had to install a 3.6.3 to be able to install the sodium lib. And I'm running R from there on both sides to make this test.
Any idea what I'm doing wrong?

Cheers,
Mathieu

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