{"action":"created","issue":{"url":"https://api.github.com/repos/openaustralia/morph/issues/910","repository_url":"https://api.github.com/repos/openaustralia/morph","labels_url":"https://api.github.com/repos/openaustralia/morph/issues/910/labels{/name}","comments_url":"https://api.github.com/repos/openaustralia/morph/issues/910/comments","events_url":"https://api.github.com/repos/openaustralia/morph/issues/910/events","html_url":"https://github.com/openaustralia/morph/issues/910","id":106884415,"number":910,"title":"Scrapers with stopped containers can't be manually stopped & don't get restarted","user":{"login":"henare","id":48945,"avatar_url":"https://avatars.githubusercontent.com/u/48945?v=3","gravatar_id":"","url":"https://api.github.com/users/henare","html_url":"https://github.com/henare","followers_url":"https://api.github.com/users/henare/followers","following_url":"https://api.github.com/users/henare/following{/other_user}","gists_url":"https://api.github.com/users/henare/gists{/gist_id}","starred_url":"https://api.github.com/users/henare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henare/subscriptions","organizations_url":"https://api.github.com/users/henare/orgs","repos_url":"https://api.github.com/users/henare/repos","events_url":"https://api.github.com/users/henare/events{/privacy}","received_events_url":"https://api.github.com/users/henare/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openaustralia/morph/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-09-16T23:24:15Z","updated_at":"2016-02-24T01:45:17Z","closed_at":null,"body":"[Reported by](https://help.morph.io/t/scraper-wont-stop-running/145) @jennahowe:\r\n\r\n>The 'stop scraper' button isn't doing anything.\r\n>\r\n>It's been running for about a day now https://morph.io/jennahowe/El_Salvador_Legislative_Assembly, so I guess it will be killed automatically soon when it goes over 24 hours.\r\n>\r\n>It should have just stopped of it's own accord ages ago because it errored pretty much straight away (bad gateway error), but that hasn't happened.\r\n\r\nI found a [similar PlanningAlerts scraper](https://morph.io/planningalerts-scrapers/greater_geelong) that had been \"running\" for 2 months. It had a stopped container so I:\r\n\r\n```\r\nr = Morph::Runner.new(Run.find(132141))\r\nr.go_with_logging\r\n```\r\n\r\nThat connected to the stopped container and finished the run. Now the scraper is working again.\r\n\r\nHow should we fix this in the long term?"},"comment":{"url":"https://api.github.com/repos/openaustralia/morph/issues/comments/188004050","html_url":"https://github.com/openaustralia/morph/issues/910#issuecomment-188004050","issue_url":"https://api.github.com/repos/openaustralia/morph/issues/910","id":188004050,"user":{"login":"henare","id":48945,"avatar_url":"https://avatars.githubusercontent.com/u/48945?v=3","gravatar_id":"","url":"https://api.github.com/users/henare","html_url":"https://github.com/henare","followers_url":"https://api.github.com/users/henare/followers","following_url":"https://api.github.com/users/henare/following{/other_user}","gists_url":"https://api.github.com/users/henare/gists{/gist_id}","starred_url":"https://api.github.com/users/henare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henare/subscriptions","organizations_url":"https://api.github.com/users/henare/orgs","repos_url":"https://api.github.com/users/henare/repos","events_url":"https://api.github.com/users/henare/events{/privacy}","received_events_url":"https://api.github.com/users/henare/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T01:45:16Z","updated_at":"2016-02-24T01:45:16Z","body":"@Charrod if you can't stop your scraper it's a sure sign of this bug and not your scraper. Maybe you'd like to have a go at fixing this issue or [becoming a supporter](https://morph.io/supporters/new) to continue the development and operation of morph.io?\r\n\r\nI think one of the reasons your scraper has been affected by this issue is because you're outputting tens of thousands of lines (43,110 lines in the current run). Of course this shouldn't matter but until this bug is fixed it could help to not output so many lines on your scraper.\r\n\r\nAnyway, I've got your scraper running again. If you have similar problems like this in the future, please post them to [the help forum](https://help.morph.io/)."}}