Unable to add Gitlab Repository with a Self Signed Cert

35 views
Skip to first unread message

Travis Garza

unread,
Nov 4, 2019, 4:08:26 PM11/4/19
to Review Board Community
Hey all,

I'm trying to set up Review Board 3.0.15 and keep running into errors when adding one of our self hosted gitlab repositories. On the "Add Repository" form, I put in something along the lines of:

Input:
Name: repo_name

Hosting service: Gitlab
Service URL: Custom: https://repo_server
Account username: reviewboard_account
API Token:

Repository information:
Repo Type: Git
Repo Plan: Group
Gitlab group name: group
Repo name: repo_name

Output/error:
2019-10-30 15:18:28,321 - ERROR -  - root - Unknown error linking hosting account ID=None for hosting service='gitlab', username=u'reviewboard_account', LocalSite=None
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/reviewboard/hostingsvcs/forms.py", line 407, in authorize
    **kwargs)
  File "/usr/lib/python2.7/site-packages/reviewboard/hostingsvcs/gitlab.py", line 338, in authorize
    credentials['private_token'].encode('utf-8'),
  File "/usr/lib/python2.7/site-packages/reviewboard/hostingsvcs/gitlab.py", line 1272, in _try_api_versions
    causes=errors,
GitLabAPIVersionError: Could not determine the GitLab API version for https://repo_server due to an unexpected error (A verified SSL certificate is required to connect to this repository.). Check to make sure the URL can be resolved from this server and that any SSL certificates are valid and trusted.

Additional info:
So we use an internal self signed cert for our gitlab server and I guess reviewboard 3.0.15 doesn't like that. We currently have a reviewboard 2.5.1.1 server that is able to connect to gitlab fine. Seeing it is a large upgrade, I thought it was somewhat releated to this issue: https://reviews.reviewboard.org/r/9766/

Am I missing some config on the server? Is there a way we can ignore our cert and connect anyway? 

Thanks in advance,
Travis

Christian Hammond

unread,
Nov 8, 2019, 4:49:49 AM11/8/19
to revie...@googlegroups.com
Hi Travis,

What version of Python are you running?

Python, unfortunately, is not great when it comes to self-signed certs. We have some work in place to support this for some package types, but it may not be working with GitLab, and it definitely is Python-dependent.

Christian

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/696a2400-91d1-4a9c-b580-9ea2de3712d4%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board
Reply all
Reply to author
Forward
0 new messages