{"action":"created","issue":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4514","labels_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4514/labels{/name}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4514/comments","events_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4514/events","html_url":"https://github.com/pouchdb/pouchdb/issues/4514","id":113557131,"number":4514,"title":"PouchDB Failing within Atom","user":{"login":"ShMcK","id":4660659,"avatar_url":"https://avatars.githubusercontent.com/u/4660659?v=3","gravatar_id":"","url":"https://api.github.com/users/ShMcK","html_url":"https://github.com/ShMcK","followers_url":"https://api.github.com/users/ShMcK/followers","following_url":"https://api.github.com/users/ShMcK/following{/other_user}","gists_url":"https://api.github.com/users/ShMcK/gists{/gist_id}","starred_url":"https://api.github.com/users/ShMcK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShMcK/subscriptions","organizations_url":"https://api.github.com/users/ShMcK/orgs","repos_url":"https://api.github.com/users/ShMcK/repos","events_url":"https://api.github.com/users/ShMcK/events{/privacy}","received_events_url":"https://api.github.com/users/ShMcK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-27T10:56:05Z","updated_at":"2015-10-27T11:57:32Z","closed_at":null,"body":"I'm getting the following error when trying to startup PouchDB within an Atom package. \r\n\r\nThis is likely an Atom issue, however, I thought I should check here first for any obvious errors. Atom does not allow write permissions within a package. However, there is talk of [PouchDB working within Atom](https://discuss.atom.io/t/storage-limits-with-pouchdb-and-electron/20509) on the discussion boards.\r\n\r\n```\r\nerr {type: \"OpenError\", name: \"OpenError\", cause: Error: IO error: database/LOCK: No such file or directory at Error (native), message: \"IO error: database/LOCK: No such file or directory\"}\r\n```\r\n\r\nSimple code, taken from the demo: \r\n\r\n```\r\nconst PouchDB = require('pouchdb');\r\n\r\nlet db = new PouchDB('database');\r\n\r\nfunction dbInit() {\r\n  console.log('seeding db...');\r\n  console.log(db);\r\n\r\n  let todo = {\r\n    _id: 'mydoc',\r\n    title: 'test'\r\n  };\r\n  db.put(todo).then(function(response) {\r\n    // handle response\r\n  }).catch(function(err) {\r\n    console.log(err);\r\n  });\r\n\r\n  db.get('mydoc').then(function(doc) {\r\n    console.log(doc);\r\n  }).then(function(response) {\r\n    // handle response\r\n  }).catch(function(err) {\r\n    console.log(err);\r\n  });\r\n}\r\n\r\ndbInit();\r\n```"},"comment":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/comments/151468287","html_url":"https://github.com/pouchdb/pouchdb/issues/4514#issuecomment-151468287","issue_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4514","id":151468287,"user":{"login":"ShMcK","id":4660659,"avatar_url":"https://avatars.githubusercontent.com/u/4660659?v=3","gravatar_id":"","url":"https://api.github.com/users/ShMcK","html_url":"https://github.com/ShMcK","followers_url":"https://api.github.com/users/ShMcK/followers","following_url":"https://api.github.com/users/ShMcK/following{/other_user}","gists_url":"https://api.github.com/users/ShMcK/gists{/gist_id}","starred_url":"https://api.github.com/users/ShMcK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShMcK/subscriptions","organizations_url":"https://api.github.com/users/ShMcK/orgs","repos_url":"https://api.github.com/users/ShMcK/repos","events_url":"https://api.github.com/users/ShMcK/events{/privacy}","received_events_url":"https://api.github.com/users/ShMcK/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T11:57:32Z","updated_at":"2015-10-27T11:57:32Z","body":"Yes, I've applied the postInstall script from `pouchdb-electron`, though I'm not sure if it's necessary.\r\n\r\nUnder resources in Chrome Dev Tools there are no IndexedDB, Web SQL or Session Storage instances. Is there another way to check if any databases are already running?"}}