rpc call to R function is not responding in case of OpenCPU cloud server, although it is working fine in single user server -


i using opencpu r project web interface. project working fine , i'm able results expected on local machine (single user server).

then deployed project on vm , didn't work. on vms r functions working r prompt. single user working , i'm able query using curl. public server hangs-up , time-out after 90 secs

other points note:

  1. sample projects tvscore , gitstats working fine on cloud server well
  2. my project based on rjava. have had trouble setting worked on single user server.
  3. i have tried aws ec2 t2.micro. have tried google n1 (1-cpu 3.75 gb) , n2 (2-cpu 7.5 gb) instances.
  4. i didn't change in /etc/opencpu/server.conf

the error i'm getting on failure:

r call did not return within 90 seconds. terminating process.

my server.conf

{     "enable.api.library": true,     "enable.api.apps": true,     "enable.api.bioc": true,     "enable.api.cran": true,     "enable.api.gist": true,     "enable.api.github": true,     "enable.api.user": true,     "enable.api.tmp": true,     "enable.cors" : true,     "enable.post.code": true,     "error.showcall": true,     "gist.cache": 300,     "github.cache": 86400,     "cran.cache": 86400,     "public.url" : "https://public.opencpu.org/ocpu",     "smtp.server" : "localhost",     "httpcache.post": 300,     "httpcache.lib": 86400,     "httpcache.git": 900,     "httpcache.gitapi": 120,     "httpcache.tmp": 86400,     "httpcache.cran": 86400,     "httpcache.static": 31536000,     "httpcache.bioc": 31536000,     "key.length" : 9,     "appspaths": "/usr/local/lib/opencpu/apps-library",     "repos": "http://cran.rstudio.com",     "rlimit.as": 2e9,     "rlimit.fsize": 1e8,     "rlimit.nproc": 50,     "timelimit.get": 600,     "timelimit.post": 90,     "timelimit.webhook": 900,     "preload": ["ggplot2", "lattice"] } 

increase value of "timelimit.post" in server.conf. default 90 seconds, apparently need more.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -