{"action":"closed","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1537","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1537/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1537/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1537/events","html_url":"https://github.com/ipfs/go-ipfs/issues/1537","id":97911114,"number":1537,"title":"repo.lock prevents daemon restart","user":{"login":"Luzifer","id":20142,"avatar_url":"https://avatars.githubusercontent.com/u/20142?v=3","gravatar_id":"","url":"https://api.github.com/users/Luzifer","html_url":"https://github.com/Luzifer","followers_url":"https://api.github.com/users/Luzifer/followers","following_url":"https://api.github.com/users/Luzifer/following{/other_user}","gists_url":"https://api.github.com/users/Luzifer/gists{/gist_id}","starred_url":"https://api.github.com/users/Luzifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luzifer/subscriptions","organizations_url":"https://api.github.com/users/Luzifer/orgs","repos_url":"https://api.github.com/users/Luzifer/repos","events_url":"https://api.github.com/users/Luzifer/events{/privacy}","received_events_url":"https://api.github.com/users/Luzifer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/repo","name":"repo","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-07-29T10:52:26Z","updated_at":"2015-09-15T22:20:53Z","closed_at":"2015-09-15T22:20:53Z","body":"```\r\nRunning ipfs version 0.3.5...\r\nFound ipfs repository. Not initializing.\r\nError: ipfs daemon is running. please stop it to run this command\r\nUse 'ipfs daemon --help' for information about this command\r\n```\r\n\r\n**How?** The old container running IPFS was killed by whatever reason, the `repo.lock` was left behind, the new container is unable to start because of that file.\r\n\r\n**Tempfix?** Remove `repo.lock`, start new container.\r\n\r\n**Proposed fix?** See age of repo.lock, renew it periodically, if it's stale ignore it and override it."}}