{"action":"created","issue":{"url":"https://api.github.com/repos/prasadtalasila/JavaAutolab/issues/77","repository_url":"https://api.github.com/repos/prasadtalasila/JavaAutolab","labels_url":"https://api.github.com/repos/prasadtalasila/JavaAutolab/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/prasadtalasila/JavaAutolab/issues/77/comments","events_url":"https://api.github.com/repos/prasadtalasila/JavaAutolab/issues/77/events","html_url":"https://github.com/prasadtalasila/JavaAutolab/issues/77","id":206099102,"number":77,"title":"execution node crash on exception","user":{"login":"prasadtalasila","id":9206466,"avatar_url":"https://avatars1.githubusercontent.com/u/9206466?v=3","gravatar_id":"","url":"https://api.github.com/users/prasadtalasila","html_url":"https://github.com/prasadtalasila","followers_url":"https://api.github.com/users/prasadtalasila/followers","following_url":"https://api.github.com/users/prasadtalasila/following{/other_user}","gists_url":"https://api.github.com/users/prasadtalasila/gists{/gist_id}","starred_url":"https://api.github.com/users/prasadtalasila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasadtalasila/subscriptions","organizations_url":"https://api.github.com/users/prasadtalasila/orgs","repos_url":"https://api.github.com/users/prasadtalasila/repos","events_url":"https://api.github.com/users/prasadtalasila/events{/privacy}","received_events_url":"https://api.github.com/users/prasadtalasila/received_events","type":"User","site_admin":false},"labels":[{"id":297306419,"url":"https://api.github.com/repos/prasadtalasila/JavaAutolab/labels/bug","name":"bug","color":"fc2929","default":true},{"id":540927977,"url":"https://api.github.com/repos/prasadtalasila/JavaAutolab/labels/execution-node","name":"execution-node","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-08T05:19:23Z","updated_at":"2017-04-29T01:54:36Z","closed_at":null,"body":"The execution node crashes when an exception happens in evaluation. The sample log is shown below.\r\n\r\n```\r\nrequestRun post request recieved\r\n{ id_no: '2010A7PS001G',\r\n  Lab_No: 'lab1',\r\n  time: '2017-02-08 05:14:17',\r\n  commit: '',\r\n  status: 0,\r\n  penalty: 0,\r\n  socket: 'H3n9E-tMvYZJQnDfAAAA',\r\n  language: 'java' }\r\nbash extract_run.sh 2011PHXF011G lab1 10.1.9.208 \"\" java\r\nfs.js:549\r\n  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);\r\n                 ^\r\n\r\nError: ENOENT: no such file or directory, open '/execution_nodes/submissions/2010A7PS001G/lab1/results/scores.txt'\r\n    at Error (native)\r\n    at Object.fs.openSync (fs.js:549:18)\r\n    at Object.fs.readFileSync (fs.js:397:15)\r\n    at /execution_nodes/execute_node.js:53:20\r\n    at ChildProcess.exithandler (child_process.js:220:5)\r\n    at emitTwo (events.js:87:13)\r\n    at ChildProcess.emit (events.js:172:7)\r\n    at maybeClose (internal/child_process.js:821:16)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)\r\n```"},"comment":{"url":"https://api.github.com/repos/prasadtalasila/JavaAutolab/issues/comments/298139997","html_url":"https://github.com/prasadtalasila/JavaAutolab/issues/77#issuecomment-298139997","issue_url":"https://api.github.com/repos/prasadtalasila/JavaAutolab/issues/77","id":298139997,"user":{"login":"prasadtalasila","id":9206466,"avatar_url":"https://avatars1.githubusercontent.com/u/9206466?v=3","gravatar_id":"","url":"https://api.github.com/users/prasadtalasila","html_url":"https://github.com/prasadtalasila","followers_url":"https://api.github.com/users/prasadtalasila/followers","following_url":"https://api.github.com/users/prasadtalasila/following{/other_user}","gists_url":"https://api.github.com/users/prasadtalasila/gists{/gist_id}","starred_url":"https://api.github.com/users/prasadtalasila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasadtalasila/subscriptions","organizations_url":"https://api.github.com/users/prasadtalasila/orgs","repos_url":"https://api.github.com/users/prasadtalasila/repos","events_url":"https://api.github.com/users/prasadtalasila/events{/privacy}","received_events_url":"https://api.github.com/users/prasadtalasila/received_events","type":"User","site_admin":false},"created_at":"2017-04-29T01:54:36Z","updated_at":"2017-04-29T01:54:36Z","body":"Above error is also triggered by a run-time error in one of the test cases which results in text files in results/ folder not being updated.\r\n\r\nA permanent fix to all these problems is to have exception handling around lines 53 - 55 of [execute_node.js](https://github.com/prasadtalasila/JavaAutolab/blob/master/execution_nodes/execute_node.js)."}}
{"actor":{"display_login":"prasadtalasila"}}