More info:

==> /var/log/gitlab/unicorn/unicorn_stdout.log <==
I, [2018-01-02T16:21:19.086089 #63651]  INFO -- omniauth: (github) Callback 
phase initiated.
E, [2018-01-02T16:21:19.362203 #63651] ERROR -- omniauth: (github) 
Authentication failure! invalid_credentials: OAuth2::Error, 
bad_verification_code: The code passed is incorrect or expired.
error=bad_verification_code&error_description=The+code+passed+is+incorrect+or+expired.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23bad-verification-code
I, [2018-01-02T16:52:41.598934 #1737]  INFO -- omniauth: (github) Request 
phase initiated.
I, [2018-01-02T16:53:06.024450 #1746]  INFO -- omniauth: (github) Callback 
phase initiated.
I, [2018-01-02T16:53:13.463134 #1743]  INFO -- omniauth: (github) Callback 
phase initiated.
E, [2018-01-02T16:53:13.806115 #1743] ERROR -- omniauth: (github) 
Authentication failure! invalid_credentials: OAuth2::Error, 
bad_verification_code: The code passed is incorrect or expired.
error=bad_verification_code&error_description=The+code+passed+is+incorrect+or+expired.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23bad-verification-code

On Tuesday, January 2, 2018 at 4:31:11 PM UTC-6, Christian Holton wrote:
>
> I have followed the guide here: 
> https://docs.gitlab.com/ee/integration/github.html
>
> When I get to my Gitlab CE instance, I try logging in with Github. It 
> briefly says "OAuth Application Authorized" on my Chrome tab, but completes 
> with an Error 500. Occasionally, I actually get to the screen on Github 
> where it asks me to authorize the OAuth app via button click.
>
> Digging through logs, I see two things that bother me (not sure whether 
> LDAP error is of concern, as I do not have any LDAP configured in 
> /etc/gitlab/gitlab.rb):
>
> ==> /var/log/gitlab/gitlab-rails/production.log <==
>
> Settingslogic::MissingSetting (Missing setting 'servers' in 'ldap' section 
> in /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml):
>   lib/gitlab/ldap/config.rb:18:in `servers'
>   lib/gitlab/ldap/config.rb:28:in `providers'
>   lib/gitlab/o_auth/user.rb:112:in `ldap_person'
>   lib/gitlab/o_auth/user.rb:105:in `creating_linked_ldap_user?'
>   lib/gitlab/o_auth/user.rb:202:in `update_profile'
>   lib/gitlab/o_auth/user.rb:15:in `initialize'
>   app/controllers/omniauth_callbacks_controller.rb:107:in `new'
>   app/controllers/omniauth_callbacks_controller.rb:107:in `handle_omniauth'
>   app/controllers/omniauth_callbacks_controller.rb:9:in `block (2 levels) 
> in <class:OmniauthCallbacksController>'
>   lib/gitlab/i18n.rb:47:in `with_locale'
>   lib/gitlab/i18n.rb:53:in `with_user_locale'
>   app/controllers/application_controller.rb:324:in `set_locale'
>   lib/gitlab/middleware/multipart.rb:93:in `call'
>   lib/gitlab/request_profiler/middleware.rb:14:in `call'
>   lib/gitlab/middleware/go.rb:18:in `call'
>   lib/gitlab/etag_caching/middleware.rb:11:in `call'
>   lib/gitlab/middleware/rails_queue_duration.rb:22:in `call'
>   lib/gitlab/metrics/rack_middleware.rb:15:in `block in call'
>   lib/gitlab/metrics/transaction.rb:52:in `run'
>   lib/gitlab/metrics/rack_middleware.rb:15:in `call'
>   lib/gitlab/middleware/read_only.rb:31:in `call'
>   lib/gitlab/request_context.rb:18:in `call'
>   lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
>
> ==> I forget which log I found this in, but it's not showing up in 
> *gitlab-ctl 
> tail *anymore <==
>
> ERROR -- omniauth: (github) Authentication failure! invalid_credentials: 
> OAuth2::Error, bad_verification_code: The code passed is incorrect or 
> expired.
>
> Which is similar to the error I get in Chrome, which is:
>
> Could not authenticate you from GitHub because "Bad verification code: the 
> code passed is incorrect or expired. error=bad verification code&error 
> description=the+code+passed+is+incorrect+or+expired.&error uri=https%3a%2f%
> 2fdeveloper.github.com%2fv3%2foauth%2f%23bad-verification-code".
>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/f668fa09-53a3-4669-b1d6-1547f7d5dcd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to