{"action":"closed","issue":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/1574","labels_url":"https://api.github.com/repos/medic/medic-webapp/issues/1574/labels{/name}","comments_url":"https://api.github.com/repos/medic/medic-webapp/issues/1574/comments","events_url":"https://api.github.com/repos/medic/medic-webapp/issues/1574/events","html_url":"https://github.com/medic/medic-webapp/issues/1574","id":117030361,"number":1574,"title":"Exporting logs doesn't work","user":{"login":"garethbowen","id":2064938,"avatar_url":"https://avatars.githubusercontent.com/u/2064938?v=3","gravatar_id":"","url":"https://api.github.com/users/garethbowen","html_url":"https://github.com/garethbowen","followers_url":"https://api.github.com/users/garethbowen/followers","following_url":"https://api.github.com/users/garethbowen/following{/other_user}","gists_url":"https://api.github.com/users/garethbowen/gists{/gist_id}","starred_url":"https://api.github.com/users/garethbowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethbowen/subscriptions","organizations_url":"https://api.github.com/users/garethbowen/orgs","repos_url":"https://api.github.com/users/garethbowen/repos","events_url":"https://api.github.com/users/garethbowen/events{/privacy}","received_events_url":"https://api.github.com/users/garethbowen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/medic/medic-webapp/labels/1%20-%20Scheduled","name":"1 - Scheduled","color":"bfd4d2"},{"url":"https://api.github.com/repos/medic/medic-webapp/labels/Bug","name":"Bug","color":"c10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/medic/medic-webapp/milestones/39","html_url":"https://github.com/medic/medic-webapp/milestones/Iteration%202015-45:%20Field%20Test%20Preparation%20and%20QA","labels_url":"https://api.github.com/repos/medic/medic-webapp/milestones/39/labels","id":1390158,"number":39,"title":"Iteration 2015-45: Field Test Preparation and QA","description":"Final QA, testing, and deployment preparation for the LG field test.","creator":{"login":"browndav","id":763977,"avatar_url":"https://avatars.githubusercontent.com/u/763977?v=3","gravatar_id":"","url":"https://api.github.com/users/browndav","html_url":"https://github.com/browndav","followers_url":"https://api.github.com/users/browndav/followers","following_url":"https://api.github.com/users/browndav/following{/other_user}","gists_url":"https://api.github.com/users/browndav/gists{/gist_id}","starred_url":"https://api.github.com/users/browndav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/browndav/subscriptions","organizations_url":"https://api.github.com/users/browndav/orgs","repos_url":"https://api.github.com/users/browndav/repos","events_url":"https://api.github.com/users/browndav/events{/privacy}","received_events_url":"https://api.github.com/users/browndav/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":38,"state":"open","created_at":"2015-11-02T23:40:57Z","updated_at":"2015-11-16T15:26:55Z","due_on":"2015-11-16T08:00:00Z","closed_at":null},"comments":1,"created_at":"2015-11-16T00:18:25Z","updated_at":"2015-11-16T15:26:55Z","closed_at":"2015-11-16T15:26:55Z","body":"Go to https://lg.app.medicmobile.org/medic/_design/medic/_rewrite/#/configuration/export and click the Server Logs export.\r\n\r\nI get this error on screen:\r\n\r\n```\r\nServer error: Log export exited with non-zero status 1\r\n```\r\n\r\nAnd this error in the api log on the server:\r\n\r\n```\r\n2015-11-16T00:13:06.106Z - info: 127.0.0.1 - admin [16/Nov/2015:00:13:06 +0000] \"GET /api/v1/export/logs?format=zip&locale=en HTTP/1.0\" - - \"https://lg.app.medicmobile.org/medic/_design/medic/_rewrite/\" \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0\"\r\n \r\n2015-11-16T00:13:06.239Z - error: Server error: \r\n \r\n2015-11-16T00:13:06.239Z - info:   detail: Error: Log export exited with non-zero status 1\r\n    at ChildProcess.<anonymous> (/srv/storage/gardener/data/working_dir/aHR0cDovL2xvY2FsaG9zdDo1OTg0L21lZGljL19kZXNpZ24vbWVkaWMvbWVkaWMtYXBp/node_modules/medic-api/controllers/export-data.js:234:27)\r\n    at ChildProcess.emit (events.js:110:17)\r\n    at Process.ChildProcess._handle.onexit (child_process.js:1067:12)\r\n```"}}