{"action":"closed","issue":{"url":"https://api.github.com/repos/vsivsi/meteor-file-job-sample-app/issues/2","labels_url":"https://api.github.com/repos/vsivsi/meteor-file-job-sample-app/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/vsivsi/meteor-file-job-sample-app/issues/2/comments","events_url":"https://api.github.com/repos/vsivsi/meteor-file-job-sample-app/issues/2/events","html_url":"https://github.com/vsivsi/meteor-file-job-sample-app/issues/2","id":75578677,"number":2,"title":"double job run or get error","user":{"login":"xurwxj","id":683421,"avatar_url":"https://avatars.githubusercontent.com/u/683421?v=3","gravatar_id":"","url":"https://api.github.com/users/xurwxj","html_url":"https://github.com/xurwxj","followers_url":"https://api.github.com/users/xurwxj/followers","following_url":"https://api.github.com/users/xurwxj/following{/other_user}","gists_url":"https://api.github.com/users/xurwxj/gists{/gist_id}","starred_url":"https://api.github.com/users/xurwxj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xurwxj/subscriptions","organizations_url":"https://api.github.com/users/xurwxj/orgs","repos_url":"https://api.github.com/users/xurwxj/repos","events_url":"https://api.github.com/users/xurwxj/events{/privacy}","received_events_url":"https://api.github.com/users/xurwxj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vsivsi/meteor-file-job-sample-app/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-12T12:06:57Z","updated_at":"2015-05-22T02:26:12Z","closed_at":"2015-05-22T02:26:12Z","body":"when run meteor in bundle mode(production mode), image will generate two processing thumb after uploaded, the log as following:\r\n```\r\nApp 402 stdout: Tue May 12 2015 20:00:59 GMT+0800 (CST), [SERVER], jobSave, params: [{\"runId\":null,\"type\":\"makeThumb\",\"data\":{\"owner\":\"RwkKCoX6L6tzmKDNj\",\"inputFileURL\":\"http://test.3dker.com//gridfs/files/1217bc0772ae1006a7d9e39a\",\"outputFileURL\":\"http://test.3dker.com//gridfs/files/put/6ceb1756bea6f39421a1744d\",\"inputFileId\":{\"_str\":\"1217bc0772ae1006a7d9e39a\"},\"outputFileId\":{\"_str\":\"6ceb1756bea6f39421a1744d\"}},\"status\":\"waiting\",\"updated\":\"2015-05-12T12:00:59.313Z\",\"created\":\"2015-05-12T12:00:59.313Z\",\"priority\":0,\"retries\":6,\"retryWait\":20000,\"retried\":0,\"retryBackoff\":\"constant\",\"retryUntil\":\"+275760-09-13T00:00:00.000Z\",\"repeats\":0,\"repeatWait\":300000,\"repeated\":0,\"repeatUntil\":\"+275760-09-13T00:00:00.000Z\",\"after\":\"2015-05-12T12:01:04.316Z\",\"progress\":{\"completed\":0,\"total\":1,\"percent\":0},\"depends\":[],\"resolved\":[],\"log\":[{\"time\":\"2015-05-12T12:00:59.316Z\",\"runId\":null,\"level\":\"info\",\"message\":\"Constructed\"}]},{}]\r\nApp 357 stdout: Tue May 12 2015 20:00:59 GMT+0800 (CST), [SERVER], jobSave, params: [{\"runId\":null,\"type\":\"makeThumb\",\"data\":{\"owner\":\"RwkKCoX6L6tzmKDNj\",\"inputFileURL\":\"http://test.3dker.com//gridfs/files/1217bc0772ae1006a7d9e39a\",\"outputFileURL\":\"http://test.3dker.com//gridfs/files/put/8359016a2051b0941ed522de\",\"inputFileId\":{\"_str\":\"1217bc0772ae1006a7d9e39a\"},\"outputFileId\":{\"_str\":\"8359016a2051b0941ed522de\"}},\"status\":\"waiting\",\"updated\":\"2015-05-12T12:00:59.322Z\",\"created\":\"2015-05-12T12:00:59.322Z\",\"priority\":0,\"retries\":6,\"retryWait\":20000,\"retried\":0,\"retryBackoff\":\"constant\",\"retryUntil\":\"+275760-09-13T00:00:00.000Z\",\"repeats\":0,\"repeatWait\":300000,\"repeated\":0,\"repeatUntil\":\"+275760-09-13T00:00:00.000Z\",\"after\":\"2015-05-12T12:01:04.323Z\",\"progress\":{\"completed\":0,\"total\":1,\"percent\":0},\"depends\":[],\"resolved\":[],\"log\":[{\"time\":\"2015-05-12T12:00:59.323Z\",\"runId\":null,\"level\":\"info\",\"message\":\"Constructed\"}]},{}]\r\nApp 402 stdout: Tue May 12 2015 20:00:59 GMT+0800 (CST), [SERVER], jobSave, returned: {\"_str\":\"a7edab1a06bac3c3b16e4e7e\"}\r\nApp 357 stdout: Tue May 12 2015 20:00:59 GMT+0800 (CST), [SERVER], jobSave, returned: {\"_str\":\"29c283cb0e99b931f596ec05\"}\r\nApp 402 stdout: Tue May 12 2015 20:01:05 GMT+0800 (CST), [SERVER], getWork, params: [[\"makeThumb\"],{\"maxJobs\":52}]\r\nApp 402 stdout: Tue May 12 2015 20:01:05 GMT+0800 (CST), [SERVER], getWork, returned: [{\"_id\":{\"_str\":\"29c283cb0e99b931f596ec05\"},\"runId\":{\"_str\":\"c501f04ff32209410d1914aa\"},\"type\":\"makeThumb\",\"data\":{\"owner\":\"RwkKCoX6L6tzmKDNj\",\"inputFileURL\":\"http://test.3dker.com//gridfs/files/1217bc0772ae1006a7d9e39a\",\"outputFileURL\":\"http://test.3dker.com//gridfs/files/put/8359016a2051b0941ed522de\",\"inputFileId\":{\"_str\":\"1217bc0772ae1006a7d9e39a\"},\"outputFileId\":{\"_str\":\"8359016a2051b0941ed522de\"}},\"status\":\"running\",\"updated\":\"2015-05-12T12:01:05.468Z\",\"created\":\"2015-05-12T12:00:59.326Z\",\"priority\":0,\"retries\":5,\"retryWait\":20000,\"retried\":1,\"retryBackoff\":\"constant\",\"retryUntil\":\"+275760-09-13T00:00:00.000Z\",\"repeats\":0,\"repeatWait\":300000,\"repeated\":0,\"repeatUntil\":\"+275760-09-13T00:00:00.000Z\",\"after\":\"2015-05-12T12:01:04.323Z\",\"progress\":{\"completed\":0,\"total\":1,\"percent\":0},\"depends\":[],\"resolved\":[]},{\"_id\":{\"_str\":\"a7edab1a06bac3c3b16e4e7e\"},\"runId\":{\"_str\":\"c501f04ff32209410d1914aa\"},\"type\":\"makeThumb\",\"data\":{\"owner\":\"RwkKCoX6L6tzmKDNj\",\"inputFileURL\":\"http://test.3dker.com//gridfs/files/1217bc0772ae1006a7d9e39a\",\"outputFileURL\":\"http://test.3dker.com//gridfs/files/put/6ceb1756bea6f39421a1744d\",\"inputFileId\":{\"_str\":\"1217bc0772ae1006a7d9e39a\"},\"outputFileId\":{\"_str\":\"6ceb1756bea6f39421a1744d\"}},\"status\":\"running\",\"updated\":\"2015-05-12T12:01:05.468Z\",\"created\":\"2015-05-12T12:00:59.321Z\",\"priority\":0,\"retries\":5,\"retryWait\":20000,\"retried\":1,\"retryBackoff\":\"constant\",\"retryUntil\":\"+275760-09-13T00:00:00.000Z\",\"repeats\":0,\"repeatWait\":300000,\"repeated\":0,\"repeatUntil\":\"+275760-09-13T00:00:00.000Z\",\"after\":\"2015-05-12T12:01:04.316Z\",\"progress\":{\"completed\":0,\"total\":1,\"percent\":0},\"depends\":[],\"resolved\":[]}]\r\nApp 357 stdout: Tue May 12 2015 20:01:05 GMT+0800 (CST), [SERVER], getWork, params: [[\"makeThumb\"],{\"maxJobs\":52}]\r\nApp 357 stdout: Tue May 12 2015 20:01:05 GMT+0800 (CST), [SERVER], getWork, returned: []\r\nApp 402 stdout: Tue May 12 2015 20:01:05 GMT+0800 (CST), [SERVER], jobProgress, params: [{\"_str\":\"a7edab1a06bac3c3b16e4e7e\"},{\"_str\":\"c501f04ff32209410d1914aa\"},20,100,{}]\r\nApp 402 stdout: Tue May 12 2015 20:01:05 GMT+0800 (CST), [SERVER], jobProgress, params: [{\"_str\":\"29c283cb0e99b931f596ec05\"},{\"_str\":\"c501f04ff32209410d1914aa\"},20,100,{}]\r\nApp 402 stdout: Tue May 12 2015 20:01:05 GMT+0800 (CST), [SERVER], jobProgress, returned: true\r\nApp 402 stdout: Tue May 12 2015 20:01:05 GMT+0800 (CST), [SERVER], jobProgress, returned: true\r\nApp 402 stdout: Tue May 12 2015 20:01:05 GMT+0800 (CST), [SERVER], jobFail, params: [{\"_str\":\"29c283cb0e99b931f596ec05\"},{\"_str\":\"c501f04ff32209410d1914aa\"},{},{\"fatal\":false}]\r\nApp 402 stderr:\r\nApp 402 stderr: /home/shining3d/3dker/programs/server/packages/meteor.js:1055\r\nApp 402 stderr:     Fiber(runWithEnvironment).run();\r\nApp 402 stderr:                               ^\r\nApp 402 stderr: Error: Match error: Expected plain object\r\nApp 402 stderr:     at checkSubtree (packages/check/match.js:279:1)\r\nApp 402 stderr:     at check (packages/check/match.js:32:1)\r\nApp 402 stderr:     at JobCollectionBase._DDPMethod_jobFail (packages/vsivsi:job-collection/shared.coffee:992:5)\r\nApp 402 stderr:     at Function.<anonymous> (packages/vsivsi:job-collection/server.coffee:98:20)\r\nApp 402 stderr:     at Function.<anonymous> (packages/vsivsi:job-collection/server.coffee:54:43)\r\nApp 402 stderr:     at methodCall (packages/vsivsi:job-collection/job/src/job_class.coffee:17:22)\r\nApp 402 stderr:     at Job.fail (packages/vsivsi:job-collection/job/src/job_class.coffee:752:14)\r\nApp 402 stderr:     at app/server/files/publications.js:209:21\r\nApp 402 stderr:     at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)\r\n```\r\nAlso get following errors sometimes:\r\n```\r\nApp 4751 stdout: Tue May 12 2015 18:24:24 GMT+0800 (CST), [SERVER], jobProgress, params: [{\"_str\":\"5ab150e06c88899939aa8e6b\"},{\"_str\":\"9d3e4e6449a8b7f1875ea7f6\"},20,100,{}]\r\nApp 4751 stdout: Tue May 12 2015 18:24:24 GMT+0800 (CST), [SERVER], jobProgress, params: [{\"_str\":\"c5a6947fbc2bd0bba1264927\"},{\"_str\":\"9d3e4e6449a8b7f1875ea7f6\"},20,100,{}]\r\nApp 4751 stdout: Tue May 12 2015 18:24:24 GMT+0800 (CST), [SERVER], jobProgress, returned: true\r\nApp 4751 stdout: Tue May 12 2015 18:24:24 GMT+0800 (CST), [SERVER], jobProgress, returned: true\r\nApp 4751 stdout: Exception in callback of async function: Error: gm().stream() or gm().write() with a non-readable stream.\r\nApp 4751 stdout:     at gm._spawn (/home/3dker/web/programs/server/npm/npm-container/node_modules/gm/lib/command.js:236:15)\r\nApp 4751 stdout:     at /home/3dker/web/programs/server/npm/npm-container/node_modules/gm/lib/command.js:148:19\r\nApp 4751 stdout:     at series (/home/3dker/web/programs/server/npm/npm-container/node_modules/gm/node_modules/array-series/index.js:11:36)\r\nApp 4751 stdout:     at gm._preprocess (/home/3dker/web/programs/server/npm/npm-container/node_modules/gm/lib/command.js:185:5)\r\nApp 4751 stdout:     at gm.stream (/home/3dker/web/programs/server/npm/npm-container/node_modules/gm/lib/command.js:146:10)\r\nApp 4751 stdout:     at app/server/files/publications.js:241:14\r\nApp 4751 stdout:     at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)\r\nApp 4751 stdout: Tue May 12 2015 18:24:24 GMT+0800 (CST), [SERVER], jobProgress, params: [{\"_str\":\"c5a6947fbc2bd0bba1264927\"},{\"_str\":\"9d3e4e6449a8b7f1875ea7f6\"},80,100,{}]\r\nApp 4751 stdout: Tue May 12 2015 18:24:24 GMT+0800 (CST), [SERVER], jobProgress, returned: true\r\nApp 4751 stdout: Tue May 12 2015 18:24:24 GMT+0800 (CST), [SERVER], jobDone, params: [{\"_str\":\"c5a6947fbc2bd0bba1264927\"},{\"_str\":\"9d3e4e6449a8b7f1875ea7f6\"},{},{}]\r\nApp 4751 stdout: Tue May 12 2015 18:24:24 GMT+0800 (CST), [SERVER], jobDone, returned: true\r\nApp 4751 stdout: Tue May 12 2015 18:24:24 GMT+0800 (CST), [SERVER], getWork, params: [[\"makeThumb\"],{\"maxJobs\":1099}]\r\nApp 4751 stdout: Tue May 12 2015 18:24:24 GMT+0800 (CST), [SERVER], getWork, returned: []\r\nApp 4751 stdout: Tue May 12 2015 18:25:49 GMT+0800 (CST), [SERVER], jobProgress, params: [{\"_str\":\"5ab150e06c88899939aa8e6b\"},{\"_str\":\"9d3e4e6449a8b7f1875ea7f6\"},80,100,{}]\r\nApp 4751 stdout: Tue May 12 2015 18:25:49 GMT+0800 (CST), [SERVER], jobProgress, returned: true\r\nApp 4751 stdout: Tue May 12 2015 18:25:49 GMT+0800 (CST), [SERVER], jobDone, params: [{\"_str\":\"5ab150e06c88899939aa8e6b\"},{\"_str\":\"9d3e4e6449a8b7f1875ea7f6\"},{},{}]\r\nApp 4751 stderr: Warning: gridfs-locking-stream Write Lock Expired for file 23ca637ca86537806f72d997\r\nApp 4751 stdout: Tue May 12 2015 18:25:49 GMT+0800 (CST), [SERVER], jobProgress, params: [{\"_str\":\"5ab150e06c88899939aa8e6b\"},{\"_str\":\"9d3e4e6449a8b7f1875ea7f6\"},80,100,{}]\r\nApp 4751 stderr: Warning: gridfs-locking-stream Read Lock Expired for file b9ed18e88fce65907928b343\r\nApp 4751 stdout: Tue May 12 2015 18:25:49 GMT+0800 (CST), [SERVER], jobProgress, returned: true\r\nApp 4751 stdout: Tue May 12 2015 18:25:49 GMT+0800 (CST), [SERVER], jobDone, returned: true\r\nApp 4751 stdout: Tue May 12 2015 18:25:49 GMT+0800 (CST), [SERVER], jobDone, params: [{\"_str\":\"5ab150e06c88899939aa8e6b\"},{\"_str\":\"9d3e4e6449a8b7f1875ea7f6\"},{},{}]\r\nApp 4751 stderr: Running job not found { [String: '5ab150e06c88899939aa8e6b'] _str: '5ab150e06c88899939aa8e6b' } { [String: '9d3e4e6449a8b7f1875ea7f6'] _str: '9d3e4e6449a8b7f1875ea7f6' }\r\nApp 4751 stdout: Tue May 12 2015 18:25:49 GMT+0800 (CST), [SERVER], jobDone, returned: false\r\nApp 4751 stderr: Callback called multiple times in JobQueue\r\nApp 4751 stderr: /home/3dker/web/programs/server/node_modules/fibers/future.js:245\r\nApp 4751 stderr: \t\t\t\t\t\tthrow(ex);\r\nApp 4751 stderr: \t\t\t\t\t\t      ^\r\nApp 4751 stderr: Error: Callback was already called.\r\nApp 4751 stderr:     at packages/vsivsi:job-collection/job/src/job_class.coffee:136:19\r\nApp 4751 stderr:     at app/server/files/publications.js:221:13\r\nApp 4751 stderr:     at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)\r\n```\r\nwhat's wrong for me?\r\n\r\nAll ok under develop mode.\r\n\r\nthx a lot \r\nvictor"}}