4705: "HTTP Error 410: Gone" for Gitlab projects

hr3pswtk

What version are you running?

2.5.17

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

https://projects/admin/db/scmtools/repository/add/ (new Gitlab project)

https://projects.dx-erkrath.de:8081/r/new/ (existing Gitlab project)

What steps will reproduce the problem?

  1. create repository with Gitlab private-token
  2. OR add a new review request on existing repository with same Gitlab private-token

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

  1. sucessfully add a new repository
  2. successfully add a new review reqest to existing repository

both not possible right now

What operating system are you using? What browser?

Chromium

Please provide any additional information below.

The existing repository (#2) was working weeks ago with the very same private-token. It has no expire date set.

I have tried with a newly created private-token, which gives another error: unable to decode base64. Are the hashes produced by Gitlab different now?

When using the existing repository (#1) a trace is written to reviewboard.log, see attachment. Also a decoding problem, I dont see if its the private-token or something else.

UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 1: ordinal not in range(128)
2018-06-15 15:51:23,621 - ERROR - None - admin - /api/repositories/8/branches/ - djblets.log.middleware - Exception thrown for use
r admin at https://projects/api/repositories/8/branches/?api_format=json
HTTP Error 410: Gone
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 52, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/vary.py", line 19, in inner_func
    response = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/djblets/webapi/resources/base.py", line 199, in __call__
    request, method, view, api_format=api_format, *args, **kwargs)
  File "/
#1 hr3pswtk

one more thing: the existing repo (#2) shows a HTTP 500 INTERNAL SERVER ERROR on the reviewboard WebUI. The HTTP 410: Gone can only be seen in reviewboard.log

david
#2 david

What version of GitLab are you using? If it's one with API v4, you'll need to upgrade Review Board to 3.0.6 or newer.

  • -New
    +NeedInfo
#3 hr3pswtk

its the public https://gitlab.com, dont know where I can see its API version.

david
#4 david

It's likely that they've turned off the old API endpoints. I believe you'll need to upgrade your Review Board.

#5 hr3pswtk

updated to 3.0.7 on python 2.7.5 and that repo works again.

However, we had to fix reviewboard.wsgi because of the trace attached.

The problem is with import pkg_resources: it also does __main__.__requires__ ... which we think makes it crash somehow. Our quick fix without understanding all of it is to import pkg_resources before importing main. That makes it run as far as I can see.

  • +
    mod_wsgi (pid=14629): Target WSGI script ' /srv/www/reviewboard/htdocs/reviewboard.wsgi' cannot be loaded as Python module.
    mod_wsgi (pid=14629): Exception occurred processing WSGI script '/srv/www/reviewboard/htdocs/reviewboard.wsgi'.
    Traceback (most recent call last):
      File "/srv/www/reviewboard/htdocs/reviewboard.wsgi", line 3, in <module>
        import pkg_resources
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3007, in <module>
        working_set.require(__requires__)
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 631, in resolve
        requirements.extend(dist.requires(req.extras)[::-1])
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2489, in requires
        dm = self._dep_map
      File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2700, in _dep_map
        self.__dep_map = self._compute_depen
david
#6 david
  • -NeedInfo
    +NotABug