{"action":"created","issue":{"url":"https://api.github.com/repos/takezoe/gitbucket/issues/840","labels_url":"https://api.github.com/repos/takezoe/gitbucket/issues/840/labels{/name}","comments_url":"https://api.github.com/repos/takezoe/gitbucket/issues/840/comments","events_url":"https://api.github.com/repos/takezoe/gitbucket/issues/840/events","html_url":"https://github.com/takezoe/gitbucket/issues/840","id":96577571,"number":840,"title":"Restarted Gitbucket can't find existing users and repos","user":{"login":"paulocoghi","id":378397,"avatar_url":"https://avatars.githubusercontent.com/u/378397?v=3","gravatar_id":"","url":"https://api.github.com/users/paulocoghi","html_url":"https://github.com/paulocoghi","followers_url":"https://api.github.com/users/paulocoghi/followers","following_url":"https://api.github.com/users/paulocoghi/following{/other_user}","gists_url":"https://api.github.com/users/paulocoghi/gists{/gist_id}","starred_url":"https://api.github.com/users/paulocoghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulocoghi/subscriptions","organizations_url":"https://api.github.com/users/paulocoghi/orgs","repos_url":"https://api.github.com/users/paulocoghi/repos","events_url":"https://api.github.com/users/paulocoghi/events{/privacy}","received_events_url":"https://api.github.com/users/paulocoghi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/takezoe/gitbucket/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-22T14:09:24Z","updated_at":"2015-08-04T15:38:21Z","closed_at":null,"body":"I have a Gitbucket 3.4 instance that perform perfectly, with many users, repos and groups.\r\n\r\nBut, when I restart the Gitbucket process (executing it again after a `kill`), I am not able to login with the same credentials anymore, although the files in `.gitbucket/` are still there with everything we have done.\r\n\r\nI realized that it can't find existing users and repositories because I could login with the old `root`/`root` login/password and, in the admin area, no user or repository was displayed (also I had changed root's password before the restart).\r\n\r\n### System Details\r\n___\r\n\r\nUbuntu 14.04 64bits (fresh install, with Apache completely removed)\r\nGitbucket 3.4\r\nJava version \"1.7.0_79\"\r\nOpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)\r\nOpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)\r\n\r\n### How to reproduce the bug:\r\n___\r\n\r\n**1. Execute Bitbucket without servlet container, with:**\r\n`java -jar gitbucket.war --port=8080 --host=gitbucket.your-domain.net`\r\n\r\n**2. Access the instance with `http://gitbucket.your-domain.net:8080`**\r\nLogin and create some users and repos\r\n\r\n**3. Change your root password**\r\nDoing this you will be able to test if this bug ocurred using the default root password\r\n\r\n**4. Kill the Gitbucket process**\r\nIn my case, I used `ps ax | grep gitbucket` to identify the process id and `kill [id]` to kill it\r\n\r\n**5. Restart Gitbucket with:**\r\n`java -jar gitbucket.war --port=8080 --host=gitbucket.your-domain.net`\r\n\r\n**6. Try both root's password, new and old**\r\nIf the bug occurs, you will only be able to login with old `root`/`root` and will not see users in admin area"},"comment":{"url":"https://api.github.com/repos/takezoe/gitbucket/issues/comments/127653122","html_url":"https://github.com/takezoe/gitbucket/issues/840#issuecomment-127653122","issue_url":"https://api.github.com/repos/takezoe/gitbucket/issues/840","id":127653122,"user":{"login":"takezoe","id":1094760,"avatar_url":"https://avatars.githubusercontent.com/u/1094760?v=3","gravatar_id":"","url":"https://api.github.com/users/takezoe","html_url":"https://github.com/takezoe","followers_url":"https://api.github.com/users/takezoe/followers","following_url":"https://api.github.com/users/takezoe/following{/other_user}","gists_url":"https://api.github.com/users/takezoe/gists{/gist_id}","starred_url":"https://api.github.com/users/takezoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takezoe/subscriptions","organizations_url":"https://api.github.com/users/takezoe/orgs","repos_url":"https://api.github.com/users/takezoe/repos","events_url":"https://api.github.com/users/takezoe/events{/privacy}","received_events_url":"https://api.github.com/users/takezoe/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T15:38:21Z","updated_at":"2015-08-04T15:38:21Z","body":"JDBC URL in your screenshot seems wrong."}}