WeBWorK Main Forum

Rserve connection refused: Due to new version of WW?

Rserve connection refused: Due to new version of WW?

by Murphy Waggoner -
Number of replies: 1

At the beginning of the semester, ITS updated WW to ww_version: WeBWorK-2.13 | pg_version PG-2.13|. They also made other changes to the server.

Today I tried to use a problem that uses RserveClient.pl. This is one of UBC's problems (https://webwork-open-problem-library/Contrib/UBC/STAT/STAT300/hw02/stat300_hw02_q01.pg)

I got the following error. As I contact ITS about this, I would like to be able to tell them whether there needs to be some setting in our current version of WW that needs to be tweaked or if this is something that needs to be changed on the server level.

Thanks.

ERRORS from evaluating PG file:
connect: Connection refused at line 129 of [PG]/macros/RserveClient.pl
Died within Carp::croak called at line 27 of /usr/local/share/perl/5.22.1/Statistics/R/IO/Rserve.pm
from within Statistics::R::IO::Rserve::fh called at line 323 of /usr/local/share/perl/5.22.1/Statistics/R/IO/Rserve.pm
from within Statistics::R::IO::Rserve::_send_command called at line 234 of /usr/local/share/perl/5.22.1/Statistics/R/IO/Rserve.pm
from within Statistics::R::IO::Rserve::eval called at line 129 of [PG]/macros/RserveClient.pl
from within main::rserve_start called at line 110 of (eval 6917)

In reply to Murphy Waggoner

Re: Rserve connection refused: Due to new version of WW?

by Danny Glin -
First thing to check is if the R server is running. If it is, then the next thing to check is security settings: Is there a firewall blocking connections (unlikely if Rserve is running on the same server as WeBWorK)? Is there some security policy (e.g. SELinux) preventing connections?

It's possible that it is the same issue as http://webwork.maa.org/moodle/mod/forum/discuss.php?d=4501, but I don't think so because you are getting a different error message.