Error with R file Daniel Nicolalde  2012-06-07 12:34
Status: Closed
 
Hi,

I modified a R file in our installation of Labkey and it works correctly in my development machine, and it renders the graph correctly on the test server once I restart Tomcat on the test server. But every time I close the session of labkey users in my terminal window the graph stop plotting and I get the following error message.

Error executing command
javax.script.ScriptException: Loading required package: Matrix
Loading required package: lattice
Loading required package: quadprog
Loading required package: RCurl
Loading required package: bitops
Loading required package: rjson
could not lookup DNS configuration info service: (ipc/send) invalid destination port
Error in function (type, msg, asError = TRUE) :
  Couldn't resolve host 'test-ehr.primate.wisc.edu'
Calls: labkey.selectRows ... getURI -> curlPerform -> .Call -> <Anonymous> -> fun
Execution halted

I am not sure what is wrong with the my R file or with the configuration. I just modified the R code that generates the plot.
Any help will be appreciated. I am uploading the R file that I modified, I change the line 23 on the test server for it to work.

Thank you

Daniel
 
 
Ben Bimber responded:  2012-06-07 13:13
Hi Daniel,

I'm not sure I quite understand the description of what you're doing. Are you trying to run this script from the command line outside of labkey? Is this everything running on test-ehr, or are you trying to run this locally, but connect to test-ehr for the data?

In general, if you're running this script from LabKey, the script should reply on labkey.url.base for the baseURL. can you print that value to see what your script is using? given the production and test-ehr have different ports and labkey roots, and test-ehr is created by cloning production, it would not surprise me if the wrong value for labkey.url.base was being given. That's just a guess though.