{"action":"created","issue":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/859","repository_url":"https://api.github.com/repos/sameersbn/docker-gitlab","labels_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/859/labels{/name}","comments_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/859/comments","events_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/859/events","html_url":"https://github.com/sameersbn/docker-gitlab/issues/859","id":172874078,"number":859,"title":"Two factor auth has error","user":{"login":"atkrad","id":351364,"avatar_url":"https://avatars.githubusercontent.com/u/351364?v=3","gravatar_id":"","url":"https://api.github.com/users/atkrad","html_url":"https://github.com/atkrad","followers_url":"https://api.github.com/users/atkrad/followers","following_url":"https://api.github.com/users/atkrad/following{/other_user}","gists_url":"https://api.github.com/users/atkrad/gists{/gist_id}","starred_url":"https://api.github.com/users/atkrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atkrad/subscriptions","organizations_url":"https://api.github.com/users/atkrad/orgs","repos_url":"https://api.github.com/users/atkrad/repos","events_url":"https://api.github.com/users/atkrad/events{/privacy}","received_events_url":"https://api.github.com/users/atkrad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-08-24T06:27:30Z","updated_at":"2016-08-24T08:00:21Z","closed_at":null,"body":"Hi,\r\n\r\nI set `GITLAB_SECRETS_OTP_KEY_BASE=generated-token` thereafter open `/profile/two_factor_auth` then Gitlab throw error 500\r\n\r\nproduction.log:\r\n\r\n```\r\nStarted GET \"/profile/two_factor_auth\" for 192.168.11.197 at 2016-08-24 10:52:24 +0430\r\nProcessing by Profiles::TwoFactorAuthsController#show as HTML\r\nCompleted 500 Internal Server Error in 57ms (ActiveRecord: 3.7ms)\r\nOpenSSL::Cipher::CipherError (bad decrypt):\r\napp/controllers/profiles/two_factor_auths_controller.rb:5:in `show'\r\nlib/gitlab/request_profiler/middleware.rb:15:in `call'\r\nlib/gitlab/middleware/go.rb:16:in `call'\r\n```\r\n\r\nCould you help me, please."},"comment":{"url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/comments/241986947","html_url":"https://github.com/sameersbn/docker-gitlab/issues/859#issuecomment-241986947","issue_url":"https://api.github.com/repos/sameersbn/docker-gitlab/issues/859","id":241986947,"user":{"login":"smcgivern","id":1120328,"avatar_url":"https://avatars.githubusercontent.com/u/1120328?v=3","gravatar_id":"","url":"https://api.github.com/users/smcgivern","html_url":"https://github.com/smcgivern","followers_url":"https://api.github.com/users/smcgivern/followers","following_url":"https://api.github.com/users/smcgivern/following{/other_user}","gists_url":"https://api.github.com/users/smcgivern/gists{/gist_id}","starred_url":"https://api.github.com/users/smcgivern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smcgivern/subscriptions","organizations_url":"https://api.github.com/users/smcgivern/orgs","repos_url":"https://api.github.com/users/smcgivern/repos","events_url":"https://api.github.com/users/smcgivern/events{/privacy}","received_events_url":"https://api.github.com/users/smcgivern/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T08:00:21Z","updated_at":"2016-08-24T08:00:21Z","body":"In GitLab 8.11, we made some changes to secret names and locations to reflect what they're actually used for and make managing them easier. There's a description of this for Omnibus here: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/update/README.md#migrating-legacy-secrets\r\n\r\nFor source installs, this is what happens:\r\n\r\n1. Previously, we used the value from `.secret` for `otp_key_base` and `secret_key_base`. While `secret_key_base` can be rotated fairly harmlessly (it will expire password reset tokens, etc.), changing the value of `otp_key_base` will prevent 2FA from working for all users: https://gitlab.com/gitlab-org/gitlab-ce/issues/3963\r\n2. On upgrade, move the value of `.secret` into `config/secrets.yml` under both keys, so that this is clearer, and delete the `.secret` file.\r\n3. If there is no `.secret` file and there are no matching values in `config/secrets.yml`, we generate new secrets - again, if there's existing 2FA data encrypted in the DB, this will also have the effect of stopping 2FA working for everyone.\r\n\r\nSo my first suggestion would be to see if you have a backup of your old `.secret` file, and provide that value in `config/secrets.yml`. If `/home/git/data/.secret` has the right value, that should work too."}}
{"actor":{"display_login":"smcgivern"}}