{"action":"created","issue":{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/384","labels_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/384/labels{/name}","comments_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/384/comments","events_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/384/events","html_url":"https://github.com/SiCKRAGETV/sickrage-issues/issues/384","id":53995821,"number":384,"title":"Daemon mode not working","user":{"login":"sacii","id":10480077,"avatar_url":"https://avatars.githubusercontent.com/u/10480077?v=3","gravatar_id":"","url":"https://api.github.com/users/sacii","html_url":"https://github.com/sacii","followers_url":"https://api.github.com/users/sacii/followers","following_url":"https://api.github.com/users/sacii/following{/other_user}","gists_url":"https://api.github.com/users/sacii/gists{/gist_id}","starred_url":"https://api.github.com/users/sacii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sacii/subscriptions","organizations_url":"https://api.github.com/users/sacii/orgs","repos_url":"https://api.github.com/users/sacii/repos","events_url":"https://api.github.com/users/sacii/events{/privacy}","received_events_url":"https://api.github.com/users/sacii/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/labels/1:%20Bug%20/%20issue","name":"1: Bug / issue","color":"fc2929"},{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/labels/3:%20Unconfirmed","name":"3: Unconfirmed","color":"aaaaaa"},{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/labels/branch:%20master","name":"branch: master","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-11T16:10:14Z","updated_at":"2015-02-17T16:24:30Z","closed_at":"2015-02-16T02:08:48Z","body":"Fresh install\r\n\r\n```\r\nSR Version:\t\tBRANCH: (master) / COMMIT: (33e95870e0c1b241c93f541d4ee27ed6ba3bfcb8) \r\nSR Arguments:\t['--datadir=/usr/home/sacii/.config/sickrage-torrents', '--daemon', '--pidfile=/usr/home/sacii/.config/sickrage-torrents/sickrage-torrents.pid']\r\nPython Version:\t2.7.9 (default, Dec 23 2014, 11:29:06) [GCC 4.2.1 Compatible FreeBSD Clang 3.3 (tags/RELEASE_33/final 183502)]\r\nOS:\t\t\t\tNas4free 9.2.0.1 (FreeBSD 9.2-RELEASE-p4) x64-embedded\r\n```\r\n\r\nThe daemon mode does not work. Trying to make any changes to the show database (adding a show, changing an episodes' status) results in the following error:\r\n\r\nError\r\n\r\ndisk I/O error\r\n\r\nTraceback\r\n\r\n```python\r\nTraceback (most recent call last): \r\nFile \"/usr/local/share/sickrage/tornado/web.py\", line 1292, in _stack_context_handle_exception raise_exc_info((type, value, traceback)) \r\nFile \"/usr/local/share/sickrage/tornado/stack_context.py\", line 314, in wrapped ret = fn(*args, **kwargs) \r\nFile \"/usr/local/share/sickrage/tornado/concurrent.py\", line 226, in lambda future: callback(future.result())) \r\nFile \"/usr/local/share/sickrage/lib/concurrent/futures/_base.py\", line 400, in result return self.__get_result() \r\nFile \"/usr/local/share/sickrage/lib/concurrent/futures/_base.py\", line 359, in __get_result reraise(self._exception, self._traceback) \r\nFile \"/usr/local/share/sickrage/lib/concurrent/futures/_compat.py\", line 107, in reraise exec('raise exc_type, exc_value, traceback', {}, locals_) \r\nFile \"/usr/local/share/sickrage/lib/concurrent/futures/thread.py\", line 61, in run result = self.fn(*self.args, **self.kwargs) \r\nFile \"/usr/local/share/sickrage/sickbeard/webserve.py\", line 230, in async_call result = function(**kwargs) \r\nFile \"/usr/local/share/sickrage/sickbeard/webserve.py\", line 1161, in displayShow t.xem_numbering = get_xem_numbering_for_show(indexerid, indexer) \r\nFile \"/usr/local/share/sickrage/sickbeard/scene_numbering.py\", line 380, in get_xem_numbering_for_show xem_refresh(indexer_id, indexer) \r\nFile \"/usr/local/share/sickrage/sickbeard/scene_numbering.py\", line 491, in xem_refresh {'indexer_id': indexer_id}) \r\nFile \"/usr/local/share/sickrage/sickbeard/db.py\", line 217, in upsert self.action(query, valueDict.values() + keyDict.values()) \r\nFile \"/usr/local/share/sickrage/sickbeard/db.py\", line 170, in action sqlResult = self.execute(query, args, fetchall=fetchall, fetchone=fetchone) \r\nFile \"/usr/local/share/sickrage/sickbeard/db.py\", line 92, in execute raise e \r\nOperationalError: disk I/O error \r\n```\r\n\r\nRequest Info\r\n\r\n```python\r\nbody: \r\nfiles: {}\r\nprotocol: http\r\nconnection: \r\nbody_arguments: {}\r\nuri: /home/displayShow?show=207621\r\nquery_arguments: {'show': ['207621']}\r\n_start_time: 1420991626.83\r\nheaders: {'Accept-Language': 'en-US,en;q=0.8', 'Accept-Encoding': 'gzip, deflate, sdch', 'Connection': 'keep-alive', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36', 'Host': 'nas4free.lan:65069', 'Referer': 'http://nas4free.lan:65069/manage/backlogOverview/', 'Cookie': 'user=\"2|1:0|10:1420484646|4:user|44:MTkzNDI4ZTBlZTc4YjlkYjdlMDUwYjAwM2VlZmM2NDc=|32bd2813d65db37a154b52e640e38cba4d93744e11cb9a7618e3afa0aca1b64d\"'}\r\nhost: nas4free.lan:65069\r\nversion: HTTP/1.1\r\narguments: {'show': '207621'}\r\n_finish_time: None\r\nquery: show=207621\r\npath: /home/displayShow\r\n_cookies: Set-Cookie: user=\"2|1:0|10:1420484646|4:user|44:MTkzNDI4ZTBlZTc4YjlkYjdlMDUwYjAwM2VlZmM2NDc=|32bd2813d65db37a154b52e640e38cba4d93744e11cb9a7618e3afa0aca1b64d\"\r\nmethod: GET\r\nremote_ip: 192.168.1.103\r\n```\r\n\r\nJust to rule out a permissions problem, I changed permissions to wide-open (777) for every file/directory in the program directory and the data directory, however, the error still occurs. The error **does not** occur when the daemon mode is not used, such as when sickrage is run in console mode in a tmux screen."},"comment":{"url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/comments/74696692","html_url":"https://github.com/SiCKRAGETV/sickrage-issues/issues/384#issuecomment-74696692","issue_url":"https://api.github.com/repos/SiCKRAGETV/sickrage-issues/issues/384","id":74696692,"user":{"login":"sacii","id":10480077,"avatar_url":"https://avatars.githubusercontent.com/u/10480077?v=3","gravatar_id":"","url":"https://api.github.com/users/sacii","html_url":"https://github.com/sacii","followers_url":"https://api.github.com/users/sacii/followers","following_url":"https://api.github.com/users/sacii/following{/other_user}","gists_url":"https://api.github.com/users/sacii/gists{/gist_id}","starred_url":"https://api.github.com/users/sacii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sacii/subscriptions","organizations_url":"https://api.github.com/users/sacii/orgs","repos_url":"https://api.github.com/users/sacii/repos","events_url":"https://api.github.com/users/sacii/events{/privacy}","received_events_url":"https://api.github.com/users/sacii/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T16:24:30Z","updated_at":"2015-02-17T16:24:30Z","body":"@abeloin  & @fernandog \r\n\r\nThere is only one unionfs layer, the mounting of /mnt/Workspace/nas4free/usr above /usr.  Both the sickrage program and the configuration directory were in the writeable /usr layer. I had to move both the program and the configuration directory out of the unionfs layer to get the daemon mode to work.\r\n\r\nI am using the mount_unionfs command (alias for mount -t unionfs) to mount the unionfs layer which is not based on fuse, it is instead a unionfs service for Linux and FreeBSD which is built into a loadable module (unionfs.ko).\r\n\r\nI hope this information is useful, however, I do not believe that unionfs is the problem because sabnzbd+ and sickbeard have no problems with unionfs."}}