Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: cannot unserialize ALTVEC object of class #53

Open
ignacio82 opened this issue Jun 24, 2019 · 5 comments
Open

error: cannot unserialize ALTVEC object of class #53

ignacio82 opened this issue Jun 24, 2019 · 5 comments

Comments

@ignacio82
Copy link

I'm trying to connect to a remoter server and getting the following error:

Error in sodium::auth_decrypt(encrypted, getkey(private), getkey(theirs)) : 
  is.raw(nonce) is not TRUE
In addition: Warning message:
In unserialize(rmsg) :
  cannot unserialize ALTVEC object of class 'wrap_raw' from package 'base'; returning length zero vector

Any suggestion for how to debug this?

@ignacio82
Copy link
Author

In case it helps, i found that if i add secure = FALSE to the server call everything works. Any suggestions for how to get it to work with sodium?

@wrathematics
Copy link
Member

Hey, I'm really sorry I've been so unresponsive. I'm under water with some CRAN issues in some of my HPC packages right now. They're taking 100% of my outside of work efforts at the moment.

It looks to me like a possible bug with the sodium package, but I haven't had a chance to investigate. Using a pre-3.5 R would work, or as you note, disabling "secure" connections (using sodium to encrypt the messages).

I'm going to try to take a closer look this weekend.

@ignacio82
Copy link
Author

Thanks a lot for your work and for looking into this bug!

@ignacio82
Copy link
Author

I just wanted to confirm that this bug is not present in R 3.5. The following Dockerfile works perfectly fine:

FROM rocker/verse:3.5
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
           libsodium-dev \
	   libxml2-dev \
           libssl-dev \
           libcurl4-openssl-dev \
    && install2.r --error --deps TRUE \
    remotes \
    remoter \
    sodium  \
    drat    \
    StanHeaders \
    rstan \
    rstanarm \
    KernSmooth \
    ggjoy \
    tictoc \
    bayesplot \
    && R -e "drat::addRepo(account = 'Ignacio', alturl = 'https://drat.ignacio.website/') ; install.packages('IMS3')"

COPY R/Makevars /root/.R/Makevars

RUN mkdir -p /root/.ssh
VOLUME [ "/root/.ssh" ]

CMD ["R", "-e", "remoter::server(port = 49152, secure = T, password=Sys.getenv('api_key'))"]

@ignacio82
Copy link
Author

any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants