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/e94cf8b0-7c78-4e9e-aa5c-7ebcea4dd5d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to