4597: ERROR:root:Authorization error linking hosting account ID=None for hosting service='github-enterprise', username=u'XXXXXX', LocalSite=None

ramveer1193

-# What version are you running?
reviewboardpowerpack-2.5.15-0

What's the URL of the page containing the problem?

/admin/db/scmtools/repository/add/

What steps will reproduce the problem?

  1. go to admin
  2. try adding git hub enter prise account
  3. it says bad credentials

What is the expected output? What do you see instead?

account should get added

What operating system are you using? What browser?

centos

Please provide any additional information below.

[Tue Sep 26 01:05:35.936424 2017] [:error] [pid 5516] ERROR:root:Authorization error linking hosting account ID=None for hosting service='github-enterprise', username=u'502779090', LocalSite=None
[Tue Sep 26 01:05:35.936470 2017] [:error] [pid 5516] Traceback (most recent call last):
[Tue Sep 26 01:05:35.936485 2017] [:error] [pid 5516] File "/predix/reviewboardpowerpack-2.5.15-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/forms.py", line 348, in save
[Tue Sep 26 01:05:35.936487 2017] [:error] [pid 5516] **extra_authorize_kwargs)
[Tue Sep 26 01:05:35.936489 2017] [:error] [pid 5516] File "/predix/reviewboardpowerpack-2.5.15-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/github.py", line 626, in authorize
[Tue Sep 26 01:05:35.936492 2017] [:error] [pid 5516] raise AuthorizationError(rsp['message'])
[Tue Sep 26 01:05:35.936494 2017] [:error] [pid 5516] AuthorizationError: Bad credentials

This is the log i am getting from apache ,I am wondering why the username is starting with u , however I am not passing that u. My input to UI is just 502779090

david
#1 david

The "u" is just a python thing indicating that it's a unicode string. It sounds like your credentials aren't correct.

Note that because of limitations in how GitHub Enterprise works with LDAP or other SSO solutions, you'll need to authenticate via a local user in GitHub Enterprise, not an SSO user.

  • -New
    +SetupIssue