I am using OpenCPU to call a custom R-package developed by a co-worker. I installed the package on a brand new server (hosted on AWS) that has been configured with OpenCPU. I can logon to the server and call the package using curl
Once I reboot the server the call through OpenCPU stops working. I get a mix of error messages (see below). I can call the package directly from an R session on the server after a reboot with no problems. There is plenty of memory available on the server - over 5GB. I can see the requests in the apache2 /var/log/apache2/access.log file, but no errors in the error.log.
Any guidance to help diagnose this problem would be appreciated.
Here is the curl command I use to test the package through OpenCPU:
curl --data "param1=1¶m2=2¶m3=3"
https://myserver.com/ocpu/library/mypackage/R/myfunction/json?datafram=columns
Here are some of the error messages that come back:
Example error 1:
promise already under evaluation: recursive default argument reference or earlier problems?
In call:
doWithOneRestart(return(expr), restart)
Example error 2:
curl: (56) GnuTLS recv error (-110): The TLS connection was non-properly terminated.
Example error 3:
unable to allocate memory (in GEregister)
In call:
pdf(tempfile(), width = 11.69, height = 8.27, paper = "A4r")