## WeBWorK Main Forum

### Rserve Demo - Error?

by Wesley Burr -
Number of replies: 4
Hi, folks,

New year, brand new server, new installation of WW (2.14) on Ubuntu 18.04. Fairly sure I have everything running to have Rserve work:

1. R installed
2. Rserve installed, running, and accessible through the firewall on port 6311
3. Statistics::R::IO installed
4. Rserve enabled in WW (localOverrides.conf, specialPGEnvironmentVars)

However, when I test the suggested test problem from the wiki, I get the following. Any thoughts on what might be going wrong?

Further details:
1. R 3.6.1
2. Rserve 1.7-31
3. Statistics::R::IO 1.0002

 Problem1 1. ERROR caught by Translator while processing problem file:Library/UBC/STAT/STAT300/hw07/stat300_hw07_q02.pg
****************
ERRORS from evaluating PG file:
 Unrecognized response type: at [PG]/lib/Rserve.pm line 26
 Died within Carp::croak called at line 342 of /usr/local/share/perl/5.26.1/Statistics/R/IO/Rserve.pm
 from within Statistics::R::IO::Rserve::_send_command called at line 234 of /usr/local/share/perl/5.26.1/Statistics/R/IO/Rserve.pm
 from within Statistics::R::IO::Rserve::eval called at line 26 of [PG]/lib/Rserve.pm
 from within Rserve::try_eval called at line 146 of [PG]/macros/RserveClient.pl
 from within main::rserve_eval called at line 69 of (eval 1987)

### Re: Rserve Demo - Error?

by Danny Glin -
See this post:

TL;DR version: Rserve 1.7 doesn't work with R 3.5.0 or newer, so you need to install the latest Rserve from source. Within R run:
install.packages('Rserve',,"http://rforge.net/",type="source")

I've just added this to the wiki to save future people from this issue.

### Re: Rserve Demo - Error?

by Wesley Burr -
Apologies for missing that: I was the one who had asked, a year ago! And you answered, a year ago!

In my 'defense', it's been a year, and the summer involves a full brain dump.

I did try your suggestion, and now have Rserve 1.8-6 installed and running. I rebooted Apache and restarted the Rserve daemon, but am still getting the same message coming back (I think) - below.

Any further troubleshooting suggestions? Also, sitting on the console after ensuring Rserve is launching gives these errors when loading the .pm in WW:

Error: long vectors not supported yet: qap_encode.c:36
Fatal error: unable to initialize the JIT

Error from WW:
1. ERROR caught by Translator while processing problem file:Library/UBC/STAT/STAT300/hw07/stat300_hw07_q02.pg
****************
ERRORS from evaluating PG file:
 Unrecognized response type: at [PG]/lib/Rserve.pm line 26
 Died within Carp::croak called at line 342 of /usr/local/share/perl/5.26.1/Statistics/R/IO/Rserve.pm
 from within Statistics::R::IO::Rserve::_send_command called at line 234 of /usr/local/share/perl/5.26.1/Statistics/R/IO/Rserve.pm
 from within Statistics::R::IO::Rserve::eval called at line 26 of [PG]/lib/Rserve.pm
 from within Rserve::try_eval called at line 146 of [PG]/macros/RserveClient.pl
 from within main::rserve_eval called at line 69 of (eval 1050)

### Re: Rserve Demo - Error?

by Danny Glin -
Check this thread to see if any of those suggestions work for you:

It's possible that an Rserve process is still running, so make sure to kill all Rserve processes and then restart.

The other thing to check is to make sure you installed Rserve as root so that the package is available to all users.