{"action":"created","issue":{"url":"https://api.github.com/repos/jeroenooms/opencpu/issues/136","labels_url":"https://api.github.com/repos/jeroenooms/opencpu/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/jeroenooms/opencpu/issues/136/comments","events_url":"https://api.github.com/repos/jeroenooms/opencpu/issues/136/events","html_url":"https://github.com/jeroenooms/opencpu/issues/136","id":59891913,"number":136,"title":"OpenCPU session fails to load after \"some\" idle time","user":{"login":"mbacou","id":260325,"avatar_url":"https://avatars.githubusercontent.com/u/260325?v=3","gravatar_id":"","url":"https://api.github.com/users/mbacou","html_url":"https://github.com/mbacou","followers_url":"https://api.github.com/users/mbacou/followers","following_url":"https://api.github.com/users/mbacou/following{/other_user}","gists_url":"https://api.github.com/users/mbacou/gists{/gist_id}","starred_url":"https://api.github.com/users/mbacou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbacou/subscriptions","organizations_url":"https://api.github.com/users/mbacou/orgs","repos_url":"https://api.github.com/users/mbacou/repos","events_url":"https://api.github.com/users/mbacou/events{/privacy}","received_events_url":"https://api.github.com/users/mbacou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-05T01:40:25Z","updated_at":"2015-03-05T01:51:51Z","closed_at":null,"body":"Jeroen,\r\nI've started experiencing a new issue on CentOS6 at http://hcapi.harvestchoice.org/ocpu/. The /test/ page and other API requests work well for a while, but after some idle time (that I'm not able to pinpoint) OpenCPU fails to load completely returning a 500 error. The only workaround is to restart apache, and then everything works well again til the next idle period.\r\n\r\nThe only error messages I could locate in apache logs are of this type:\r\n\r\n```\r\n[Wed Mar 04 13:41:54 2015] [error] [client 38.100.141.210] rApache Notice!, referer: \\\r\nhttp://harvestchoice.org/tools/harvestchoice-data-services\r\nError in file(file, ifelse(append, \"a\", \"w\")) :\r\n  cannot open the connection\r\nIn addition: Warning message:\r\nIn file(file, ifelse(append, \"a\", \"w\")) :\r\n  cannot open file '/tmp/ocpu-temp/file43d0233d8a69': No such file or directory\r\nTraceback:\r\nNo traceback available\r\n```\r\n\r\nMy OpenCPU configuration is below. I'm not sure how to debug that one and would very much appreciate any help!\r\nThanks, --Mel.\r\n\r\n```json\r\n{\r\n    \"enable.api.library\": true,\r\n    \"enable.api.apps\": true,\r\n    \"enable.api.bioc\": false,\r\n    \"enable.api.cran\": false,\r\n    \"enable.api.gist\": false,\r\n    \"enable.api.github\": false,\r\n    \"enable.api.user\": false,\r\n    \"enable.api.tmp\": true,\r\n    \"enable.cors\" : true,\r\n    \"enable.post.code\": false,\r\n    \"error.showcall\": true,\r\n    \"gist.cache\": 300,\r\n    \"github.cache\": 86400,\r\n    \"cran.cache\": 86400,\r\n    \"public.url\" : \"https://public.opencpu.org/ocpu\",\r\n    \"smtp.server\" : \"localhost\",\r\n    \"httpcache.post\": 300,\r\n    \"httpcache.lib\": 86400,\r\n    \"httpcache.git\": 900,\r\n    \"httpcache.gitapi\": 120,\r\n    \"httpcache.tmp\": 86400,\r\n    \"httpcache.cran\": 86400,\r\n    \"httpcache.static\": 31536000,\r\n    \"httpcache.bioc\": 31536000,\r\n    \"key.length\" : 9,\r\n    \"appspaths\": \"/usr/local/lib/opencpu/apps-library\",\r\n    \"repos\": \"http://cran.rstudio.com\",\r\n    \"rlimit.as\": 3e9,\r\n    \"rlimit.fsize\": 1e9,\r\n    \"rlimit.nproc\": 20,\r\n    \"timelimit.get\": 600,\r\n    \"timelimit.post\": 90,\r\n    \"timelimit.webhook\": 900,\r\n    \"preload\": [\"hcapi3\",\"data.table\",\"stringr\",\"rgdal\",\"raster\"]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/jeroenooms/opencpu/issues/comments/77291077","html_url":"https://github.com/jeroenooms/opencpu/issues/136#issuecomment-77291077","issue_url":"https://api.github.com/repos/jeroenooms/opencpu/issues/136","id":77291077,"user":{"login":"mbacou","id":260325,"avatar_url":"https://avatars.githubusercontent.com/u/260325?v=3","gravatar_id":"","url":"https://api.github.com/users/mbacou","html_url":"https://github.com/mbacou","followers_url":"https://api.github.com/users/mbacou/followers","following_url":"https://api.github.com/users/mbacou/following{/other_user}","gists_url":"https://api.github.com/users/mbacou/gists{/gist_id}","starred_url":"https://api.github.com/users/mbacou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbacou/subscriptions","organizations_url":"https://api.github.com/users/mbacou/orgs","repos_url":"https://api.github.com/users/mbacou/repos","events_url":"https://api.github.com/users/mbacou/events{/privacy}","received_events_url":"https://api.github.com/users/mbacou/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T01:51:51Z","updated_at":"2015-03-05T01:51:51Z","body":"Hi,\r\nI last built OpenCPU on Dec 29, 2014 using your instructions at https://github.com/jeroenooms/opencpu-server/blob/master/rpm/buildscript.sh\r\nDo I need to reiterate?\r\nThx a lot, --Mel."}}