{"action":"created","issue":{"url":"https://api.github.com/repos/linuxserver/docker-headphones/issues/5","labels_url":"https://api.github.com/repos/linuxserver/docker-headphones/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/linuxserver/docker-headphones/issues/5/comments","events_url":"https://api.github.com/repos/linuxserver/docker-headphones/issues/5/events","html_url":"https://github.com/linuxserver/docker-headphones/issues/5","id":122853887,"number":5,"title":"Can't connect to the database: disk I/O error","user":{"login":"alebianco","id":772115,"avatar_url":"https://avatars.githubusercontent.com/u/772115?v=3","gravatar_id":"","url":"https://api.github.com/users/alebianco","html_url":"https://github.com/alebianco","followers_url":"https://api.github.com/users/alebianco/followers","following_url":"https://api.github.com/users/alebianco/following{/other_user}","gists_url":"https://api.github.com/users/alebianco/gists{/gist_id}","starred_url":"https://api.github.com/users/alebianco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alebianco/subscriptions","organizations_url":"https://api.github.com/users/alebianco/orgs","repos_url":"https://api.github.com/users/alebianco/repos","events_url":"https://api.github.com/users/alebianco/events{/privacy}","received_events_url":"https://api.github.com/users/alebianco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-18T00:46:17Z","updated_at":"2015-12-18T01:38:19Z","closed_at":null,"body":"When sharing the config folder with a windows host, Headphones fails to connect to the database on startup and gives this log:\r\n```\r\n18-Dec-2015 00:44:09 - INFO :: MainThread : Checking to see if the database has all tables....\r\n18-Dec-2015 00:44:09 - ERROR :: MainThread : Can't connect to the database: disk I/O error\r\n18-Dec-2015 00:44:09 - INFO :: MainThread : Retrieving latest version information from GitHub\r\n18-Dec-2015 00:44:09 - DEBUG :: MainThread : Requesting URL via GET method: https://api.github.com/repos/rembo10/headphones/commits/master\r\nDec 18 00:44:08 25df6913e9a3 syslog-ng[18]: syslog-ng starting up; version='3.5.3'\r\n18-Dec-2015 00:44:09 - DEBUG :: MainThread : Latest version is 6720575bd94cda8ef153d4781c06dff2813975e0\r\n18-Dec-2015 00:44:09 - INFO :: MainThread : You are running an unknown version of Headphones. Run the updater to identify your version\r\n18-Dec-2015 00:44:09 - DEBUG :: MainThread : Using the following server values: MBHost: musicbrainz.org, MBPort: 80, Sleep Interval: 1\r\n18-Dec-2015 00:44:09 - INFO :: MainThread : Using forced web server port: 8181\r\n18-Dec-2015 00:44:09 - INFO :: MainThread : Starting Headphones web server on http://localhost:8181/\r\n18-Dec-2015 00:44:09 - INFO :: MainThread : Scheduled background task: Search for Wanted\r\n18-Dec-2015 00:44:10 - INFO :: MainThread : Scheduled background task: Download Scan\r\n18-Dec-2015 00:44:10 - INFO :: MainThread : Scheduled background task: Library Scan\r\n18-Dec-2015 00:44:10 - INFO :: MainThread : Scheduled background task: MusicBrainz Update\r\n18-Dec-2015 00:44:10 - INFO :: MainThread : Scheduled background task: Check GitHub for updates\r\n18-Dec-2015 00:44:10 - INFO :: MainThread : Scheduled background task: Torrent removal check\r\n```\r\nIf i try to open the web ui, I either get a `GET http://192.168.99.100:8181/home net::ERR_CONNECTION_REFUSED` error, with no web content at all, or with this error message:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/opt/headphones/lib/cherrypy/_cprequest.py\", line 670, in respond\r\n    response.body = self.handler()\r\n  File \"/opt/headphones/lib/cherrypy/lib/encoding.py\", line 217, in __call__\r\n    self.body = self.oldhandler(*args, **kwargs)\r\n  File \"/opt/headphones/lib/cherrypy/_cpdispatch.py\", line 61, in __call__\r\n    return self.callable(*self.args, **self.kwargs)\r\n  File \"/opt/headphones/headphones/webserve.py\", line 72, in home\r\n    myDB = db.DBConnection()\r\n  File \"/opt/headphones/headphones/db.py\", line 50, in __init__\r\n    self.connection.execute(\"PRAGMA synchronous = OFF\")\r\nOperationalError: disk I/O error\r\n```\r\nIf the docker container is run without sharing the /config folder with the host, everything seems to work fine, but it's very much less desirable for portability."},"comment":{"url":"https://api.github.com/repos/linuxserver/docker-headphones/issues/comments/165633531","html_url":"https://github.com/linuxserver/docker-headphones/issues/5#issuecomment-165633531","issue_url":"https://api.github.com/repos/linuxserver/docker-headphones/issues/5","id":165633531,"user":{"login":"sparklyballs","id":4343808,"avatar_url":"https://avatars.githubusercontent.com/u/4343808?v=3","gravatar_id":"","url":"https://api.github.com/users/sparklyballs","html_url":"https://github.com/sparklyballs","followers_url":"https://api.github.com/users/sparklyballs/followers","following_url":"https://api.github.com/users/sparklyballs/following{/other_user}","gists_url":"https://api.github.com/users/sparklyballs/gists{/gist_id}","starred_url":"https://api.github.com/users/sparklyballs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparklyballs/subscriptions","organizations_url":"https://api.github.com/users/sparklyballs/orgs","repos_url":"https://api.github.com/users/sparklyballs/repos","events_url":"https://api.github.com/users/sparklyballs/events{/privacy}","received_events_url":"https://api.github.com/users/sparklyballs/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T01:38:19Z","updated_at":"2015-12-18T01:38:19Z","body":"permissions are everything in linux. linuxserver containers don't run as root by default, so probably does not have permissions to read/write to a mapped folder on a windows host. \r\nwhat is your docker create or run line ?"}}