{"action":"created","issue":{"url":"https://api.github.com/repos/stellar/stellar-core/issues/773","labels_url":"https://api.github.com/repos/stellar/stellar-core/issues/773/labels{/name}","comments_url":"https://api.github.com/repos/stellar/stellar-core/issues/773/comments","events_url":"https://api.github.com/repos/stellar/stellar-core/issues/773/events","html_url":"https://github.com/stellar/stellar-core/issues/773","id":107494643,"number":773,"title":"Assertion failed: (fs::exists(lock)), function getBucketDir, file bucket/BucketManagerImpl.cpp, line 130.","user":{"login":"FredericHeem","id":4118089,"avatar_url":"https://avatars.githubusercontent.com/u/4118089?v=3","gravatar_id":"","url":"https://api.github.com/users/FredericHeem","html_url":"https://github.com/FredericHeem","followers_url":"https://api.github.com/users/FredericHeem/followers","following_url":"https://api.github.com/users/FredericHeem/following{/other_user}","gists_url":"https://api.github.com/users/FredericHeem/gists{/gist_id}","starred_url":"https://api.github.com/users/FredericHeem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredericHeem/subscriptions","organizations_url":"https://api.github.com/users/FredericHeem/orgs","repos_url":"https://api.github.com/users/FredericHeem/repos","events_url":"https://api.github.com/users/FredericHeem/events{/privacy}","received_events_url":"https://api.github.com/users/FredericHeem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-21T11:48:23Z","updated_at":"2015-09-22T00:12:40Z","closed_at":null,"body":"After upgrading to the latest code from a fresh new clone, *stellar-core* stopped working due to the following assert:\r\n```\r\nAssertion failed: (fs::exists(lock)), function getBucketDir, file bucket/BucketManagerImpl.cpp, line 130.\r\n```\r\n\r\nShouldn't the code properly handle this case even in production build ?"},"comment":{"url":"https://api.github.com/repos/stellar/stellar-core/issues/comments/142143649","html_url":"https://github.com/stellar/stellar-core/issues/773#issuecomment-142143649","issue_url":"https://api.github.com/repos/stellar/stellar-core/issues/773","id":142143649,"user":{"login":"MonsieurNicolas","id":4213763,"avatar_url":"https://avatars.githubusercontent.com/u/4213763?v=3","gravatar_id":"","url":"https://api.github.com/users/MonsieurNicolas","html_url":"https://github.com/MonsieurNicolas","followers_url":"https://api.github.com/users/MonsieurNicolas/followers","following_url":"https://api.github.com/users/MonsieurNicolas/following{/other_user}","gists_url":"https://api.github.com/users/MonsieurNicolas/gists{/gist_id}","starred_url":"https://api.github.com/users/MonsieurNicolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MonsieurNicolas/subscriptions","organizations_url":"https://api.github.com/users/MonsieurNicolas/orgs","repos_url":"https://api.github.com/users/MonsieurNicolas/repos","events_url":"https://api.github.com/users/MonsieurNicolas/events{/privacy}","received_events_url":"https://api.github.com/users/MonsieurNicolas/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T00:12:40Z","updated_at":"2015-09-22T00:12:40Z","body":"We do not have a build flavor with NDEBUG, but I get your point.\r\n\r\nWe left asserts in the code for situations that should not happen and would indicate bugs, but I see this one may be more common and deserves to be first class if it's part of normal operation.\r\n\r\nThe database and buckets folder work in lockstep: one should not exist without the other (newdb creates both).\r\nDo you have additional information on how you got to this state? Did you remove the folder manually?"}}