{"action":"created","issue":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/1254","repository_url":"https://api.github.com/repos/Flexget/Flexget","labels_url":"https://api.github.com/repos/Flexget/Flexget/issues/1254/labels{/name}","comments_url":"https://api.github.com/repos/Flexget/Flexget/issues/1254/comments","events_url":"https://api.github.com/repos/Flexget/Flexget/issues/1254/events","html_url":"https://github.com/Flexget/Flexget/issues/1254","id":162408534,"number":1254,"title":"RuntimeError: threads can only be started once","user":{"login":"fabrizio5680","id":1358758,"avatar_url":"https://avatars.githubusercontent.com/u/1358758?v=3","gravatar_id":"","url":"https://api.github.com/users/fabrizio5680","html_url":"https://github.com/fabrizio5680","followers_url":"https://api.github.com/users/fabrizio5680/followers","following_url":"https://api.github.com/users/fabrizio5680/following{/other_user}","gists_url":"https://api.github.com/users/fabrizio5680/gists{/gist_id}","starred_url":"https://api.github.com/users/fabrizio5680/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabrizio5680/subscriptions","organizations_url":"https://api.github.com/users/fabrizio5680/orgs","repos_url":"https://api.github.com/users/fabrizio5680/repos","events_url":"https://api.github.com/users/fabrizio5680/events{/privacy}","received_events_url":"https://api.github.com/users/fabrizio5680/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Flexget/Flexget/labels/Bug","name":"Bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-27T09:24:00Z","updated_at":"2016-10-06T07:32:55Z","closed_at":null,"body":"### Expected behaviour:\r\nWhile daemon running, I should still be able to run a manual execution.\r\n### Actual behaviour:\r\nIt's seeing process is there but crashes because of Runtime error regards threads.\r\n### Steps to reproduce:\r\n- Step 1: start daemon `flexget daemon start -d`\r\n- Step 2: run standard execution `flexget execute --verbose`\r\n\r\n#### Log:\r\n```\r\nThere is a FlexGet process already running for this config, sending execution there.\r\nTraceback (most recent call last):\r\n  File \"/opt/bin/flexget\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/opt/lib/python3.5/site-packages/flexget/__init__.py\", line 42, in main\r\n    manager.start()\r\n  File \"/opt/lib/python3.5/site-packages/flexget/manager.py\", line 294, in start\r\n    client.handle_cli(self.args)\r\n  File \"/opt/lib/python3.5/site-packages/rpyc/core/netref.py\", line 196, in __call__\r\n    return syncreq(_self, consts.HANDLE_CALL, args, kwargs)\r\n  File \"/opt/lib/python3.5/site-packages/rpyc/core/netref.py\", line 71, in syncreq\r\n    return conn.sync_request(handler, oid, *args)\r\n  File \"/opt/lib/python3.5/site-packages/rpyc/core/protocol.py\", line 441, in sync_request\r\n    raise obj\r\nRuntimeError: threads can only be started once\r\n\r\n========= Remote Traceback (1) =========\r\nTraceback (most recent call last):\r\n  File \"/opt/lib/python3.5/site-packages/rpyc/core/protocol.py\", line 305, in _dispatch_request\r\n    res = self._HANDLERS[handler](self, *args)\r\n  File \"/opt/lib/python3.5/site-packages/rpyc/core/protocol.py\", line 535, in _handle_call\r\n    return self._local_objects[oid](*args, **dict(kwargs))\r\n  File \"/opt/lib/python3.5/site-packages/flexget/ipc.py\", line 80, in exposed_handle_cli\r\n    self.manager.handle_cli(options)\r\n  File \"/opt/lib/python3.5/contextlib.py\", line 77, in __exit__\r\n    self.gen.throw(type, value, traceback)\r\n  File \"/opt/lib/python3.5/site-packages/flexget/logger.py\", line 88, in capture_output\r\n    yield\r\n  File \"/opt/lib/python3.5/site-packages/flexget/ipc.py\", line 80, in exposed_handle_cli\r\n    self.manager.handle_cli(options)\r\n  File \"/opt/lib/python3.5/site-packages/flexget/manager.py\", line 333, in handle_cli\r\n    self.execute_command(command_options)\r\n  File \"/opt/lib/python3.5/site-packages/flexget/manager.py\", line 365, in execute_command\r\n    self.task_queue.start()\r\n  File \"/opt/lib/python3.5/site-packages/flexget/task_queue.py\", line 35, in start\r\n    self._thread.start()\r\n  File \"/opt/lib/python3.5/threading.py\", line 840, in start\r\n    raise RuntimeError(\"threads can only be started once\")\r\nRuntimeError: threads can only be started once\r\n```\r\n\r\n### Additional information:\r\n\r\n- Flexget Version: 2.1.1\r\n- Python Version: 3.5\r\n- Installation method: pip install\r\n- OS and version: Android 4.4 AMLogic s805"},"comment":{"url":"https://api.github.com/repos/Flexget/Flexget/issues/comments/251888069","html_url":"https://github.com/Flexget/Flexget/issues/1254#issuecomment-251888069","issue_url":"https://api.github.com/repos/Flexget/Flexget/issues/1254","id":251888069,"user":{"login":"liiight","id":4374581,"avatar_url":"https://avatars.githubusercontent.com/u/4374581?v=3","gravatar_id":"","url":"https://api.github.com/users/liiight","html_url":"https://github.com/liiight","followers_url":"https://api.github.com/users/liiight/followers","following_url":"https://api.github.com/users/liiight/following{/other_user}","gists_url":"https://api.github.com/users/liiight/gists{/gist_id}","starred_url":"https://api.github.com/users/liiight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liiight/subscriptions","organizations_url":"https://api.github.com/users/liiight/orgs","repos_url":"https://api.github.com/users/liiight/repos","events_url":"https://api.github.com/users/liiight/events{/privacy}","received_events_url":"https://api.github.com/users/liiight/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T07:32:55Z","updated_at":"2016-10-06T07:32:55Z","body":"@gazpachoking any clue?"}}
{"actor":{"display_login":"liiight"}}