{"action":"created","issue":{"url":"https://api.github.com/repos/logentries/le_python/issues/9","labels_url":"https://api.github.com/repos/logentries/le_python/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/logentries/le_python/issues/9/comments","events_url":"https://api.github.com/repos/logentries/le_python/issues/9/events","html_url":"https://github.com/logentries/le_python/issues/9","id":26018898,"number":9,"title":"RuntimeError Exception \"threads can only be started once\"","user":{"login":"nielsonsantana","id":627596,"avatar_url":"https://avatars.githubusercontent.com/u/627596?v=3","gravatar_id":"","url":"https://api.github.com/users/nielsonsantana","html_url":"https://github.com/nielsonsantana","followers_url":"https://api.github.com/users/nielsonsantana/followers","following_url":"https://api.github.com/users/nielsonsantana/following{/other_user}","gists_url":"https://api.github.com/users/nielsonsantana/gists{/gist_id}","starred_url":"https://api.github.com/users/nielsonsantana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nielsonsantana/subscriptions","organizations_url":"https://api.github.com/users/nielsonsantana/orgs","repos_url":"https://api.github.com/users/nielsonsantana/repos","events_url":"https://api.github.com/users/nielsonsantana/events{/privacy}","received_events_url":"https://api.github.com/users/nielsonsantana/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-01-21T17:44:42Z","updated_at":"2015-09-28T18:57:10Z","closed_at":"2015-02-24T16:55:46Z","body":"I created 2 handlers and two loggers using the logentries on my Django project.\r\nWhen I start my celery worker, I geting RuntimeError \"threads can only be started once\".\r\n\r\nI'm using:\r\ndjango 1.5\r\ncelery 3.1.7\r\n\r\nTrack:\r\n\r\n    File \"/home/user/.virtualenvs/celery3.1/local/lib/python2.7/site-packages/celery/worker/__init__.py\", line 206, in start\r\n      self.blueprint.start(self)\r\n    File \"/home/user/.virtualenvs/celery3.1/local/lib/python2.7/site-packages/celery/bootsteps.py\", line 123, in start\r\n      step.start(parent)\r\n    File \"/home/user/.virtualenvs/celery3.1/local/lib/python2.7/site-packages/celery/bootsteps.py\", line 373, in start\r\n      return self.obj.start()\r\n    File \"/home/user/.virtualenvs/celery3.1/local/lib/python2.7/site-packages/celery/worker/consumer.py\", line 270, in start\r\n      blueprint.start(self)\r\n    File \"/home/user/.virtualenvs/celery3.1/local/lib/python2.7/site-packages/celery/bootsteps.py\", line 123, in start\r\n      step.start(parent)\r\n    File \"/home/user/.virtualenvs/celery3.1/local/lib/python2.7/site-packages/celery/worker/consumer.py\", line 469, in start\r\n      info('Connected to %s', c.connection.as_uri())\r\n    File \"/usr/lib/python2.7/logging/__init__.py\", line 1140, in info\r\n      self._log(INFO, msg, args, **kwargs)\r\n    File \"/usr/lib/python2.7/logging/__init__.py\", line 1258, in _log\r\n      self.handle(record)\r\n    File \"/usr/lib/python2.7/logging/__init__.py\", line 1268, in handle\r\n      self.callHandlers(record)\r\n    File \"/usr/lib/python2.7/logging/__init__.py\", line 1308, in callHandlers\r\n      hdlr.handle(record)\r\n    File \"/usr/lib/python2.7/logging/__init__.py\", line 748, in handle\r\n      self.emit(record)\r\n    File \"/home/user/Dropbox/workspace/paas/appfog/soar-site/logentries/utils.py\", line 132, in emit\r\n      self._thread.start()\r\n    File \"/usr/lib/python2.7/threading.py\", line 488, in start\r\n      raise RuntimeError(\"threads can only be started once\")\r\n    RuntimeError: threads can only be started once\r\n"},"comment":{"url":"https://api.github.com/repos/logentries/le_python/issues/comments/143843702","html_url":"https://github.com/logentries/le_python/issues/9#issuecomment-143843702","issue_url":"https://api.github.com/repos/logentries/le_python/issues/9","id":143843702,"user":{"login":"lucascosta","id":119821,"avatar_url":"https://avatars.githubusercontent.com/u/119821?v=3","gravatar_id":"","url":"https://api.github.com/users/lucascosta","html_url":"https://github.com/lucascosta","followers_url":"https://api.github.com/users/lucascosta/followers","following_url":"https://api.github.com/users/lucascosta/following{/other_user}","gists_url":"https://api.github.com/users/lucascosta/gists{/gist_id}","starred_url":"https://api.github.com/users/lucascosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucascosta/subscriptions","organizations_url":"https://api.github.com/users/lucascosta/orgs","repos_url":"https://api.github.com/users/lucascosta/repos","events_url":"https://api.github.com/users/lucascosta/events{/privacy}","received_events_url":"https://api.github.com/users/lucascosta/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T18:57:10Z","updated_at":"2015-09-28T18:57:10Z","body":"Same with celery workers and version `0.15`.\r\n@StephenHynes7 can you reopen this?"}}