Could not add a repo based on gitlab, error 410 when linking a new account

71 views
Skip to first unread message

Garry

unread,
Jun 11, 2021, 9:47:43 AM6/11/21
to Review Board Community
hi, I am adding a repo based on gitlab via the admin dashboard. An error 410 occurred when linking a new account, anyone can help on this? I am using reviewboard  2.5.17.
BTW, I noticed that 
"Unlike most types of source code management systems, Git has a very limited remote protocol, which isn’t capable of some of the requests Review Board and other similar tools require. Because of this, if Review Board does not have local file-based access to your main Git repository, you will need to set up a wrapping service, such as GitWeb or cgit. This is covered in more detail later in this guide."

Does the reviewboard also need local file-based access for  gitlab based repo ?image(1).png

Christian Hammond

unread,
Jun 11, 2021, 9:04:28 PM6/11/21
to revie...@googlegroups.com
Hi Garry,

GitLab had made changes to their API since Review Board 2.5, and 2.5 is no longer maintained. You'll need to upgrade to a modern release.

The latest 3.0.x will work fine. We're putting out 4.0.2 shortly with some GitLab fixes that might be relevant to you, depending on setup.

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/84e99cbe-9768-4bb3-95ee-22ea5b624ab5n%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board
Message has been deleted
Message has been deleted
Message has been deleted

Garry

unread,
Jun 16, 2021, 4:11:26 AM6/16/21
to Review Board Community

I upgraded reviewboard to version 4.0.x, then try to link a repository based on gitlab, no luck.addrepo.pngerror.png

errors are as below:
ERROR -  - root - Unexpected exception while verifying repository path for hosting service <reviewboard.hostingsvcs.gitlab.GitLab object at 0x7ff88086b090> using plan 'group' and tool <Tool: Git>: Could not determine the GitLab API version for https://git.xxxx.com due to an unexpected error ('HostingServiceHTTPRequest' object has no attribute 'method'). Check to make sure the URL can be resolved from this server and that any SSL certificates are valid and trusted.
Traceback (most recent call last):
  File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/scmtools/forms.py", line 2291, in _verify_repository_path
    **repository_extra_data)
  File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/gitlab.py", line 302, in check_repository
    self._get_repository_name(plan, kwargs))
  File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/gitlab.py", line 724, in _find_repository_id
    if self._get_api_version(self.account.hosting_url) == '3':
  File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/gitlab.py", line 1230, in _get_api_version
    lookup_callable=lambda: self._try_api_versions(
  File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/venv/lib/python3.7/site-packages/djblets/cache/backend.py", line 311, in cache_memoize
    data = lookup_callable()
  File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/gitlab.py", line 1233, in <lambda>
    path='/projects?per_page=1',
  File "/opt/reviewboardpowerpack-4.0.1-0/apps/reviewboardpowerpack/htdocs/reviewboard/hostingsvcs/gitlab.py", line 1310, in _try_api_versions
    causes=errors,
reviewboard.hostingsvcs.gitlab.GitLabAPIVersionError: Could not determine the GitLab API version for https://git.xxxx.com due to an unexpected error ('HostingServiceHTTPRequest' object has no attribute 'method'). Check to make sure the URL can be resolved from this server and that any SSL certificates are valid and trusted.
2021-06-16 07:58:22,268 - ERROR - None - admin - /admin/db/scmtools/repository/add/ - djblets.log.middleware - Exception thrown for user admin at http://xxxxxxx.com/admin/db/scmtools/repository/add/

Plural value must be an integer, got AdminErrorList
Traceback (most recent call last):


On Tuesday, June 15, 2021 at 7:19:50 PM UTC+8 Garry wrote:
Thanks  for your information,  Christian.

I tried to upgrade reviewboard by following  Upgrading Review Board | Documentation | Review Board,
But I got an error afer running "easy_install -U ReviewBoard", my environment is:
CentOS Linux release 7.9.2009 (Core) ,  python 2.7.5

[root@xxxx]# easy_install -U ReviewBoard
Traceback (most recent call last):
  File "/bin/easy_install", line 11, in <module>
    load_entry_point('setuptools==41.1.0.post1', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 52, in <module>

  File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 15, in <module>
ImportError: No module named py31compat

Christian Hammond

unread,
Jun 18, 2021, 8:44:25 PM6/18/21
to revie...@googlegroups.com
You'll want 4.0.2 to bypass this crash. This was a 4.0/4.0.1 bug.

A couple questions:

1) Does your GitLab use a self-signed certificate?

2) Would you be willing to share the URL with me? It might tell me something.

Christian

Garry

unread,
Jun 21, 2021, 3:18:32 AM6/21/21
to Review Board Community
1). It's signed by a certificate authority (CA), not self-signed certificate.
2). The gitlab is hosted in my intranet, you may not able to access it.

I tried  Review Board Cloud Hosting, Review Board Installer, Docker Container and VM (bitnami.com) to install the latest version 4.0.2. but this installer has a defect that I cannot get to the admin dashboard to do configuration.
I would like to know whether this installer is maintained by our team, and do we have a plan to fix this?

Christian Hammond

unread,
Jun 21, 2021, 4:22:45 AM6/21/21
to revie...@googlegroups.com
That’s a third-party installer. We have no control over it. What’s it doing when you access the admin dashboard?

The URL would just be to help me generate some tests you could run internally.

Christian


--
Reply all
Reply to author
Forward
0 new messages