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

unserialize Error message with R 3.1.2 #45

Open
activeeon-bot opened this issue Mar 27, 2015 · 2 comments
Open

unserialize Error message with R 3.1.2 #45

activeeon-bot opened this issue Mar 27, 2015 · 2 comments

Comments

@activeeon-bot
Copy link

Original issue created by Fabien Viale on 27, Mar 2015 at 16:06 PM - PRC-42


When using the PARConnector package in R version 3.1.2, the following message is displayed when trying to retrieve the result of a Task :

Error in unserialize(result) :
character vectors are no longer accepted by unserialize()

Example :

{noformat}
Connected to Scheduler at https://frrdscpd.rd.loreal:9900/rest
[1] "Java-Object{org.ow2.proactive.scheduler.rest.SchedulerClient@cf86a6f}"

r <- PASolve('cosh',1)
[1] "error occurred when trying to push file /tmp/RtmpIYEzy0/1136637329/pasolve_t1.rdata -> USER:/1136637329/./pasolve_t1.rdata"
Job submitted (id : 4698)
with tasks : t1
r
PARJob1 (id: 4698) (status: Finished)
t1 : Finished at Fri Mar 27 15:03:15 CET 2015
PAWaitFor(r)
t1 :
[[email protected];15:03:15] [DATASPACES-WARNING] No file is transferred from USER space at file:///opt/proactive/ProActiveWorkflowsScheduling-linux-x64-6.1.0/data/defaultuser/vialef for selector (transferFromUserSpace-INCLUDES{1136637329/pasolve_t1.rdata}-EXCLUDES{})

[[email protected];15:03:15] Error in ifelse(file.exists("1136637329/pasolve_t1.rdata"), load("1136637329/pasolve_t1.rdata"), :
Could not find PASolve environment file : 1136637329/pasolve_t1.rdata

Erreur dans unserialize(result) :
character vectors are no longer accepted by unserialize()

{noformat}

@activeeon-bot
Copy link
Author

Original comment posted by Fabien Viale on 27, Mar 2015 at 16:08 PM


The following thread gives some possible fix to this issue, serialized data should be converted to base64 :

openml/openml-r#49

@activeeon-bot
Copy link
Author

Original comment posted by Fabien Viale on 27, Mar 2015 at 16:34 PM


Apparently the error appears only when there is a problem with the task, in my test, the user used to connect to the Scheduler did not have the rights to transfer files to it (he was not part of the users group). This created some incoherence.

With a valid user I dont see the error any more :

> r <- PASolve('cosh',1)
Job submitted (id : 4725)
 with tasks : t1
> PAWaitFor(r)
$t1
[1] 1.543081

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

No branches or pull requests

2 participants