Re: Reviewboard showing only 20 branches of gitlab repository

2020-05-15 Thread korta...@email.cz
Hi Christian,

We are trying to make the RBTools work in the meantime, but is there any 
progress in "looking into it" ? :-)

If you say you fixed it, couldn't be the problem, that we use version 
3.0.12? We installed the RB on windows using the Bitnami installer and it 
has already version 3.0.17 as it seems. Would an update help?

Thanks for help

Jirka

Dne čtvrtek 7. května 2020 1:33:54 UTC+2 Christian Hammond napsal(a):
>
> Hi,
>
> Hrm, I was sure we fixed this. At one point, the GitLab API didn't give us 
> pagination information, but once it did we added support in places. It 
> looks like branches never got that support.
>
> I'll look into it.
>
> However, I will strongly encourage you to use RBTools 
>  for posting changes for 
> review, rather than manually selecting commits in the New Review Request 
> page. It will give you a lot more flexibility in how you manage your 
> commits locally and represent them on Review Board, and will avoid having 
> to push to any centralized place prior to review (making it easier to amend 
> your commits based on review feedback, rebase them prior to landing, etc.).
>
> Christian
>
> On Tue, May 5, 2020 at 9:07 AM kort...@email.cz  <
> kort...@email.cz > wrote:
>
>> Hello,
>>
>> I managed to connect to my Gitlab repository and when I am creating new 
>> review I see the repository allright, I even see the branches and commits 
>> on them, but the problem is I don't see all the branches.
>> I only see exactly 20 of them. I am not sure if they are the newest ones 
>> or by which key they are selected. But I need all of the branches. The 
>> worst problem is I don't see master.
>> Is it some known issue? Is there some solution? I am not an experienced 
>> Git user, so maybe it might be just something trivial... I tested in 
>> several browsers, everywhere the same behavior.
>>
>> Gitlab version seems: GitLab Community Edition 12.10.1 
>> 
>> Reviewboard version: 3.0.12
>>
>> Thanks or any help and sorry if it is a noob question...
>>
>> -- 
>> 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 revie...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/reviewboard/307d8c7a-5b4b-4451-bba5-2d8081d11f76%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/272ee64d-28a7-4950-a566-662a7ed73bc8%40googlegroups.com.


Re: utf8 colation error

2020-05-15 Thread Adam Weremczuk
I don't think utf8mb4 was a good idea and I believe it's now leading to:

sudo rb-site install /var/www/mysite
(...)
* Installing the site...
(...)
Creating table scmtools_repository

[!] There was an error synchronizing the database. Make sure the
database is created and has the appropriate permissions, and then
continue.
[!] Details: (1071, 'Specified key was too long; max key length is 767
bytes')

Press Enter to continue



On Thursday, 14 May 2020 16:01:35 UTC+1, Adam Weremczuk wrote:
>
> Hi all,
>
> Following installation guide for MySQL I've added to /etc/mysql/my.cnf
>
> [client]
> default-character-set=utf8
>
> [mysqld]
> character-set-server=utf8
>
> MariaDB fails to start:
>
> May 14 14:01:41 gittest systemd[1]: Starting MariaDB 10.1.44 database 
> server...
> May 14 14:01:41 gittest mysqld[10318]: 2020-05-14 14:01:41 139687784537472 
> [Note] /usr/sbin/mysqld (mysqld 10.1.44-MariaDB-0+deb9u1) starting as 
> process 10318 ...
> May 14 14:01:41 gittest mysqld[10318]: 2020-05-14 14:01:41 139687784537472 
> [ERROR] COLLATION 'utf8mb4_general_ci' is not valid for CHARACTER SET 'utf8'
> May 14 14:01:41 gittest mysqld[10318]: 2020-05-14 14:01:41 139687784537472 
> [ERROR] Aborting
> May 14 14:01:41 gittest systemd[1]: mariadb.service: Main process exited, 
> code=exited, status=1/FAILURE
> May 14 14:01:41 gittest systemd[1]: Failed to start MariaDB 10.1.44 
> database server.
>
> When I comment out these 2 addition it starts fine and I can retrieve the 
> following:
>
> MariaDB [(none)]> SHOW COLLATION LIKE 'utf8%';
>
> +--+-+-+-+--+-+
> | Collation| Charset | Id  | Default | Compiled | 
> Sortlen |
>
> +--+-+-+-+--+-+
> | utf8_general_ci  | utf8|  33 | Yes | Yes  |  
>  1 |
> | utf8_bin | utf8|  83 | | Yes  |  
>  1 |
> | utf8_unicode_ci  | utf8| 192 | | Yes  |  
>  8 |
> | utf8_icelandic_ci| utf8| 193 | | Yes  |  
>  8 |
> | utf8_latvian_ci  | utf8| 194 | | Yes  |  
>  8 |
> | utf8_romanian_ci | utf8| 195 | | Yes  |  
>  8 |
> | utf8_slovenian_ci| utf8| 196 | | Yes  |  
>  8 |
> | utf8_polish_ci   | utf8| 197 | | Yes  |  
>  8 |
> | utf8_estonian_ci | utf8| 198 | | Yes  |  
>  8 |
> | utf8_spanish_ci  | utf8| 199 | | Yes  |  
>  8 |
> | utf8_swedish_ci  | utf8| 200 | | Yes  |  
>  8 |
> | utf8_turkish_ci  | utf8| 201 | | Yes  |  
>  8 |
> | utf8_czech_ci| utf8| 202 | | Yes  |  
>  8 |
> | utf8_danish_ci   | utf8| 203 | | Yes  |  
>  8 |
> | utf8_lithuanian_ci   | utf8| 204 | | Yes  |  
>  8 |
> | utf8_slovak_ci   | utf8| 205 | | Yes  |  
>  8 |
> | utf8_spanish2_ci | utf8| 206 | | Yes  |  
>  8 |
> | utf8_roman_ci| utf8| 207 | | Yes  |  
>  8 |
> | utf8_persian_ci  | utf8| 208 | | Yes  |  
>  8 |
> | utf8_esperanto_ci| utf8| 209 | | Yes  |  
>  8 |
> | utf8_hungarian_ci| utf8| 210 | | Yes  |  
>  8 |
> | utf8_sinhala_ci  | utf8| 211 | | Yes  |  
>  8 |
> | utf8_german2_ci  | utf8| 212 | | Yes  |  
>  8 |
> | utf8_croatian_mysql561_ci| utf8| 213 | | Yes  |  
>  8 |
> | utf8_unicode_520_ci  | utf8| 214 | | Yes  |  
>  8 |
> | utf8_vietnamese_ci   | utf8| 215 | | Yes  |  
>  8 |
> | utf8_general_mysql500_ci | utf8| 223 | | Yes  |  
>  1 |
> | utf8_croatian_ci | utf8| 576 | | Yes  |  
>  8 |
> | utf8_myanmar_ci  | utf8| 577 | | Yes  |  
>  8 |
> | utf8_thai_520_w2 | utf8| 578 | | Yes  |  
>  4 |
> | utf8mb4_general_ci   | utf8mb4 |  45 | Yes | Yes  |  
>  1 |
> | utf8mb4_bin  | utf8mb4 |  46 | | Yes  |  
>  1 |
> | utf8mb4_unicode_ci   | utf8mb4 | 224 | | Yes  |  
>  8 |
> | utf8mb4_icelandic_ci | utf8mb4 | 225 | | Yes  |  
>  8 |
> | utf8mb4_latvian_ci   | utf8mb4 | 226 | | Yes  |  
>  8 |
> | utf8mb4_romanian_ci  | utf8mb4 | 227 | | Yes  |  
>  8 |
> | utf8mb4_slovenian_ci | utf8mb4 | 228 | | Yes  |  
>  8 |
> | utf8mb4_polish_ci| utf8mb4

Re: Reviewboard showing only 20 branches of gitlab repository

2020-05-15 Thread korta...@email.cz
Hi again,

There is another problem... I tried to create a review request from the 
branches and commits I see and I get
"HTTP 500 INTERNAL SERVER ERROR"

What is wrong? Any idea? Isn't the problem, that our reviewboard is running 
on https and port number 444?

Log for this error:
ERROR 

 - root - Unable to update new review request from commit ID 
6a60ac36244fb185817055e6e9c404106b103260 on repository ID=2: HTTP Error 404: 
Not Found
Traceback (most recent call last):
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\apps\reviewboardpowerpack\htdocs\Lib\site-packages\ReviewBoard-3.0.12-py2.7.egg\reviewboard\reviews\managers.py",
 line 165, in create
draft.update_from_commit_id(commit_id)
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\apps\reviewboardpowerpack\htdocs\Lib\site-packages\ReviewBoard-3.0.12-py2.7.egg\reviewboard\reviews\models\review_request_draft.py",
 line 419, in update_from_commit_id
return self.update_from_committed_change(commit_id)
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\apps\reviewboardpowerpack\htdocs\Lib\site-packages\ReviewBoard-3.0.12-py2.7.egg\reviewboard\reviews\models\review_request_draft.py",
 line 492, in update_from_committed_change
commit = self.repository.get_change(commit_id)
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\apps\reviewboardpowerpack\htdocs\Lib\site-packages\ReviewBoard-3.0.12-py2.7.egg\reviewboard\scmtools\models.py",
 line 509, in get_change
return hosting_service.get_change(self, revision)
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\apps\reviewboardpowerpack\htdocs\Lib\site-packages\ReviewBoard-3.0.12-py2.7.egg\reviewboard\hostingsvcs\gitlab.py",
 line 641, in get_change
headers={'Accept': 'text/plain'})
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\apps\reviewboardpowerpack\htdocs\Lib\site-packages\ReviewBoard-3.0.12-py2.7.egg\reviewboard\hostingsvcs\service.py",
 line 188, in http_get
return self.http_request(url, headers=headers, method='GET', **kwargs)
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\apps\reviewboardpowerpack\htdocs\Lib\site-packages\ReviewBoard-3.0.12-py2.7.egg\reviewboard\hostingsvcs\service.py",
 line 319, in http_request
response = urlopen(request, context=context)
  File "C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\urllib2.py", 
line 154, in urlopen
return opener.open(url, data, timeout)
  File "C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\urllib2.py", 
line 435, in open
response = meth(req, response)
  File "C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\urllib2.py", 
line 548, in http_response
'http', request, response, code, msg, hdrs)
  File "C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\urllib2.py", 
line 467, in error
result = self._call_chain(*args)
  File "C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\urllib2.py", 
line 407, in _call_chain
result = func(*args)
  File "C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\urllib2.py", 
line 654, in http_error_302
return self.parent.open(new, timeout=req.timeout)
  File "C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\urllib2.py", 
line 435, in open
response = meth(req, response)
  File "C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\urllib2.py", 
line 548, in http_response
'http', request, response, code, msg, hdrs)
  File "C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\urllib2.py", 
line 473, in error
return self._call_chain(*args)
  File "C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\urllib2.py", 
line 407, in _call_chain
result = func(*args)
  File "C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\urllib2.py", 
line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found


and


ERROR 

None - jiri.kortanek - /api/review-requests/ - djblets.log.middleware - 
Exception thrown for user jiri.kortanek at 
https://myserver.ad001.mycompany.net:444/api/review-requests/

HTTP Error 404: Not Found
Traceback (most recent call last):
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\apps\django\django\core\handlers\base.py",
 line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\apps\django\django\views\decorators\cache.py",
 line 52, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\apps\django\django\views\decorators\vary.py",
 line 19, in inner_func
response = func(*args, **kwargs)
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\python\lib\site-packages\djblets\webapi\resources\base.py",
 line 244, in __call__
request, method, view, api_format=api_format, *args, **kwargs)
  File 
"C:\App\Bitnami\reviewboardpowerpack-3.0.12-1\apps\reviewboardpowerpack\htdocs\Lib\site-packages\ReviewBoard-3.0.12-py2.7.