{"action":"created","issue":{"url":"https://api.github.com/repos/danmarsden/moodle-plagiarism_urkund/issues/64","labels_url":"https://api.github.com/repos/danmarsden/moodle-plagiarism_urkund/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/danmarsden/moodle-plagiarism_urkund/issues/64/comments","events_url":"https://api.github.com/repos/danmarsden/moodle-plagiarism_urkund/issues/64/events","html_url":"https://github.com/danmarsden/moodle-plagiarism_urkund/issues/64","id":123482915,"number":64,"title":"Sending pending files appears to be broken...","user":{"login":"thepurpleblob","id":664139,"avatar_url":"https://avatars.githubusercontent.com/u/664139?v=3","gravatar_id":"","url":"https://api.github.com/users/thepurpleblob","html_url":"https://github.com/thepurpleblob","followers_url":"https://api.github.com/users/thepurpleblob/followers","following_url":"https://api.github.com/users/thepurpleblob/following{/other_user}","gists_url":"https://api.github.com/users/thepurpleblob/gists{/gist_id}","starred_url":"https://api.github.com/users/thepurpleblob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thepurpleblob/subscriptions","organizations_url":"https://api.github.com/users/thepurpleblob/orgs","repos_url":"https://api.github.com/users/thepurpleblob/repos","events_url":"https://api.github.com/users/thepurpleblob/events{/privacy}","received_events_url":"https://api.github.com/users/thepurpleblob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-22T13:35:55Z","updated_at":"2015-12-22T21:08:11Z","closed_at":null,"body":"In cron output....\r\n\r\nExecute scheduled task: Send queued files\r\n... started 10:48:57. Current memory use 52MB.\r\nURKUND fileid:42397 sending for processing\r\nURKUND fileid:42397 file not found\r\nURKUND fileid:42405 sending for processing\r\nURKUND fileid:42405 file not found\r\nURKUND fileid:42406 sending for processing\r\nURKUND fileid:42406 file not found\r\nURKUND fileid:42410 sending for processing\r\nURKUND fileid:42410 file not found\r\nURKUND fileid:42560 sending for processing\r\nURKUND fileid:42560 file not found\r\nURKUND fileid:42594 sending for processing\r\nURKUND fileid:42594 file not found\r\nURKUND fileid:42603 sending for processing\r\nURKUND fileid:42603 file not found\r\nURKUND fileid:42645 sending for processing\r\nURKUND fileid:42645 file not found\r\nURKUND fileid:42703 sending for processing\r\nURKUND fileid:42703 file not found\r\nURKUND fileid:42707 sending for processing\r\nURKUND fileid:42707 file not found\r\nURKUND fileid:42739 sending for processing\r\nURKUND fileid:42739 file not found\r\nURKUND fileid:42750 sending for processing\r\nURKUND fileid:42750 file not found\r\nURKUND fileid:42872 sending for processing\r\nURKUND fileid:42872 file not found\r\nURKUND fileid:43036 sending for processing\r\nURKUND fileid:43036 file not found\r\nURKUND fileid:43051 sending for processing\r\nURKUND fileid:43051 file not found\r\nURKUND fileid:43529 sending for processing\r\nURKUND fileid:43529 file not found\r\nURKUND fileid:43546 sending for processing\r\nURKUND fileid:43546 file not found\r\nURKUND fileid:43669 sending for processing\r\nURKUND fileid:43669 file not found\r\nURKUND fileid:43835 sending for processing\r\nURKUND fileid:43835 file not found\r\nURKUND fileid:43986 sending for processing\r\nURKUND fileid:43986 file not found\r\nURKUND fileid:44078 sending for processing\r\nURKUND fileid:44078 file not found\r\nURKUND fileid:44106 sending for processing\r\nURKUND fileid:44106 file not found\r\nURKUND fileid:44536 sending for processing\r\nURKUND fileid:44536 file not found\r\nURKUND fileid:44569 sending for processing\r\nURKUND fileid:44569 file not found\r\nURKUND fileid:44590 sending for processing\r\nURKUND fileid:44590 file not found\r\nURKUND fileid:44616 sending for processing\r\nURKUND fileid:44616 file not found\r\nURKUND fileid:44692 sending for processing\r\nURKUND fileid:44692 file not found\r\nURKUND fileid:45000 sending for processing\r\nURKUND fileid:45000 file not found\r\nURKUND fileid:45001 sending for processing\r\nURKUND fileid:45001 file not found\r\nURKUND fileid:45012 sending for processing\r\nURKUND fileid:45012 file not found\r\nURKUND fileid:45042 sending for processing\r\nURKUND fileid:45042 file not found\r\nURKUND fileid:45117 sending for processing\r\nURKUND fileid:45117 file not found\r\nURKUND fileid:45119 sending for processing\r\nURKUND fileid:45119 file not found\r\nURKUND fileid:45140 sending for processing\r\nURKUND fileid:45140 file not found\r\nURKUND fileid:45221 sending for processing\r\nURKUND fileid:45221 file not found\r\nURKUND fileid:45340 sending for processing\r\nURKUND fileid:45340 file not found\r\nURKUND fileid:45414 sending for processing\r\nURKUND fileid:45414 file not found\r\nURKUND fileid:45415 sending for processing\r\nURKUND fileid:45415 file not found\r\nURKUND fileid:45658 sending for processing\r\nURKUND fileid:45658 file not found\r\nURKUND fileid:45750 sending for processing\r\nURKUND fileid:45750 file not found\r\nURKUND fileid:45811 sending for processing\r\nURKUND fileid:45811 file not found\r\nURKUND fileid:45842 sending for processing\r\nURKUND fileid:45842 file not found\r\nURKUND fileid:45978 sending for processing\r\nURKUND fileid:45978 file not found\r\nURKUND fileid:45994 sending for processing\r\nURKUND fileid:45994 file not found\r\nURKUND fileid:45998 sending for processing\r\nURKUND fileid:45998 file not found\r\nURKUND fileid:46033 sending for processing\r\nURKUND fileid:46033 file not found\r\nURKUND fileid:46065 sending for processing\r\nURKUND fileid:46065 file not found\r\nURKUND fileid:46241 sending for processing\r\nURKUND fileid:46241 file not found\r\nURKUND fileid:46242 sending for processing\r\nURKUND fileid:46242 file not found\r\nURKUND fileid:46243 sending for processing\r\nURKUND fileid:46243 file not found\r\nURKUND fileid:46244 sending for processing\r\nURKUND fileid:46244 file not found\r\nURKUND fileid:46260 sending for processing\r\nURKUND fileid:46260 sending to URKUND\r\nURKUND fileid:46260 returned status: 202\r\n\r\nJust taking the last broken one as an example however...\r\n\r\nselect * from mdl_plagiarism_urkund_files where id=46244\\G\r\n*************************** 1. row ***************************\r\n             id: 46244\r\n             cm: 390161\r\n         userid: 52365\r\n     identifier: 5ec76a53c50d6a172fb1d55ef5b2fe1e19a07c4b\r\n       filename: 2225216.docx\r\n      reporturl: NULL\r\n         optout: NULL\r\n     statuscode: pending\r\nsimilarityscore: 0\r\n        attempt: 0\r\n  errorresponse: NULL\r\n  timesubmitted: 1450714034\r\n1 row in set (0.10 sec)\r\n\r\nmysql> select * from  mdl_files where filename='2225216.docx'\\G\r\n*************************** 1. row ***************************\r\n             id: 5930511\r\n    contenthash: 5ec76a53c50d6a172fb1d55ef5b2fe1e19a07c4b\r\n   pathnamehash: 9daaff8c8e89c4d02d5411100027e66252af30d1\r\n      contextid: 351944\r\n      component: user\r\n       filearea: draft\r\n         itemid: 788603797\r\n       filepath: /\r\n       filename: 2225216.docx\r\n         userid: 52365\r\n       filesize: 32473\r\n       mimetype: application/vnd.openxmlformats-officedocument.wordprocessingml.document\r\n         status: 0\r\n         source: O:8:\"stdClass\":1:{s:6:\"source\";s:12:\"2225216.docx\";}\r\n         author: Diane Carr\r\n        license: allrightsreserved\r\n    timecreated: 1450714033\r\n   timemodified: 1450714033\r\n      sortorder: 0\r\nreferencefileid: NULL\r\n*************************** 2. row ***************************\r\n             id: 5930512\r\n    contenthash: 5ec76a53c50d6a172fb1d55ef5b2fe1e19a07c4b\r\n   pathnamehash: f2cb56167c3acf3a3eb5067d1e7261144d9a7f69\r\n      contextid: 679835\r\n      component: assignsubmission_file\r\n       filearea: submission_files\r\n         itemid: 289877\r\n       filepath: /\r\n       filename: 2225216.docx\r\n         userid: 52365\r\n       filesize: 32473\r\n       mimetype: application/vnd.openxmlformats-officedocument.wordprocessingml.document\r\n         status: 0\r\n         source: 2225216.docx\r\n         author: Diane Carr\r\n        license: allrightsreserved\r\n    timecreated: 1450714033\r\n   timemodified: 1450714034\r\n      sortorder: 0\r\nreferencefileid: NULL\r\n2 rows in set (5.59 sec)\r\n\r\nThis one was submitted about 4pm yesterday so it's a current issue.\r\n\r\nResubmitting 'pending' through the error page has the same result - mass of 'file not found' errors.\r\n\r\nThe code in plagiarism_urkund_get_file_object is not exactly trivial so I'm struggling to see what might have gone wrong but it doesn't seem to be finding any pending files. \r\n\r\nJust to note that I attempted to reproduce this on my test system (identical code base) and it all works as expected. Submission is 'pending' and then 'Resubmit all pending' from the debugging page transforms it into a 202."},"comment":{"url":"https://api.github.com/repos/danmarsden/moodle-plagiarism_urkund/issues/comments/166729781","html_url":"https://github.com/danmarsden/moodle-plagiarism_urkund/issues/64#issuecomment-166729781","issue_url":"https://api.github.com/repos/danmarsden/moodle-plagiarism_urkund/issues/64","id":166729781,"user":{"login":"danmarsden","id":362798,"avatar_url":"https://avatars.githubusercontent.com/u/362798?v=3","gravatar_id":"","url":"https://api.github.com/users/danmarsden","html_url":"https://github.com/danmarsden","followers_url":"https://api.github.com/users/danmarsden/followers","following_url":"https://api.github.com/users/danmarsden/following{/other_user}","gists_url":"https://api.github.com/users/danmarsden/gists{/gist_id}","starred_url":"https://api.github.com/users/danmarsden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmarsden/subscriptions","organizations_url":"https://api.github.com/users/danmarsden/orgs","repos_url":"https://api.github.com/users/danmarsden/repos","events_url":"https://api.github.com/users/danmarsden/events{/privacy}","received_events_url":"https://api.github.com/users/danmarsden/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T21:08:11Z","updated_at":"2015-12-22T21:08:11Z","body":"which version are you using on the prod site? - is it different from the version on testing? - there were a few issues that I fixed that I think I may have fixed after you upgraded your prod."}}