Re: Installation on Ubuntu 20.04
Hello, Unless there is a valid distribution for Python 3, you would need to use Python 2.x for ReviewBoard. The RBTools client would work on Python3. The server ReviewBoard (at this time) is the 3.x branch and is only for Python2 The recommended way would be to setup a virtual python environment (ie pyenv, virtualenv), so you can have multiple Python version and modules installed. Install a Python2 environment in it, switch to it then use the normal install process, pip to install reviewboard in it (if using the distribution package) When using Apache, to use the WSGI interface, ensure that all the three versions are compatible with each other. The WSGI module must match your Python version, and the WSGI module must be supported by your Apache version (ie Python 2.7.x + Apache 2.4 + /mod_python27-wsgi). As it's a virtual setup, you will have to make small modifications to two files to "use" it: - apache-wsgi.conf, you need to have some similar lines: WSGIDaemonProcess reviewboard user= group= python-home=/your/path/to/.pyenv/versions/rbweb2717 WSGIProcessGroup reviewboard WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On WSGIScriptAlias "/" "/var/www/reviewboard/review/htdocs/reviewboard.wsgi/" - generated wsgi template (reviewboard.wsgi) must also contains python_home = ' /your/path/to/.pyenv/versions/rbweb2717 ' activate_this = python_home + '/bin/activate_this.py' execfile(activate_this, dict(__file__=activate_this)) Far to be complete, but I hope it will help. Laurent\ On Wednesday, September 2, 2020 at 7:45:28 AM UTC+2 vishal...@gmail.com wrote: > I see Ubuntu 20.04 comes with Python3 out of the box. > > Could you pls share instructions on how to install review board on Ubuntu > 20.04 > -- 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/12621466-efa1-465b-ad3f-aeab3e9eb2d4n%40googlegroups.com.
ReviewBoard install on RHEL7, mod_wsgi and pyenv, any updated doc or process ?
Good afternoon, As much as the install on CentOs went fine, the one in RHEL is just finding issue after issues, this is becoming a nightmare. I was wondering if anyone had it installed successfully and what version/setup/steps they were using. This is a small recap of my experience until now: - OS is RHEL 7.6. - It comes with an old Python version 2.7.5 and a set of modules frozen in the distribution (can't upgrade them). - Trying to install RB on it fail as half of the module are outdated (bad idea anyway to install it in the system python..) - Install pyenv in one of the user environment, created a virtual env base of 2.7.5 and updated as it should with all requirements. - Trying to use virtualenv-multiverse on the system python (to create the virtual env) fail as it is also complaining about old modules. And when it install, it break at execution with some 10 year old error message. - Using only pyenv, switching to the user pyenv and installing RB in it, all went fine \o/, no error. Now come the time to link it to apache - Apache in the repository is the 2.6 version. Installed and working and it will only be used for RB. - Installed mod_wsgi from the repository. - Try to run both and link them to RB and that's where it start. After hours of looking around, I found that: --> The wsgi module from the repository is for python 3.4. Too bad that both the installed python and RB does not support it. (btw how do they expect to run a 3.4 mod with a system 2.7.5 and broken multiverse.) --> There is a 2.7 version but this is apache 2.6 and it does not like it. --> Removing apache 2.6, installing apache 2.4 and the mod_wsgi. That should be good. Well no. It still cannot find the right python environment and whatever I change I get either RB is taking a nap or a error 400 or error 500. I went through the whole RB site instructions, stackexchange and RH doc. It just seems more and more confusing each time none is recommending the same setup (except get out of RH) As much as installing RB went fine and was flawless, the integration to have it working is a nightmare (in my case). It seems to that most of the issue now is with using apache+mod_wsgi with the pyenv. What do you use to run the server ? Did I forgot something obvious ? If anyone knows a step/configuration or process to have a successful installation on RH7.6 I would be interested,I can't imagine I'm the only one to have meet all theses issues. Best regards. L.MARECHAL -- 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/c2d3a74a-3838-4308-a45b-1c7b5fd9883eo%40googlegroups.com.
Re: Automate Review Board
Well, you have several solution depending how complex you want it to be. 1. If you want something simple, easy and that is already provided via RBTools, use it (or it's API). Just call it from your own Python script, simple, easy, just build the command line/API call and execute it. 2. If you want more control and more access/features (ie creating repository), you will want to use the webAPI. When understood it's not hard to use and open a whole lot possibilities. The doc for the webAPI will tell you the parameters, up to you to create the call and parse result (JSON). On Tuesday, May 5, 2020 at 8:34:48 AM UTC+2, Akshatha D wrote: > > How can I automate review board using python script without GUI. > Plz give suggestion regarding thz implementation. > -- 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/0bfa21c4-3ce0-4d3c-bf00-16e40b93b219%40googlegroups.com.
Re: ClearCase and ReviewBoard setup : Any pointer, best practice or setup instruction ?
Thanks you. Yes I did fix it for the first error. For the permission I did follow the technote before and also others setting. As I was using the apache user (added to the correct group) I have to chmod everything, which I did. I finally found that I was missing one chmod in one folder. It's now working. Creating review with base CC is working fine, now I'll check with UCM. Thanks again. On Monday, August 19, 2019 at 6:32:25 PM UTC+2, Laurent M. wrote: > > Good morning, > > I've setup RB with Git with no issue, but when trying with ClearCase, that > did not went well. > I understand the current integration is done by the community. > Looking at old messages (both in forum, review and bugtracking) did not > really help. > > > I was wondering if there are any kind of best practice or setup > instructions somewhere or made by current CC user ? > > I'm on CentOS, CC9.0.1.7, Apache, RB 3.0.15, RBT 1.0.2 > > The first issue I got was during a rbt post where it keep failing with > missing attribute. > > if parse_version(server.rb_version) >= parse_version('1.5.3'): > File "/usr/lib/python2.7/site-packages/rbtools/api/resource.py", line > 348, in __getattr__ > % (self.__class__.__name__, name)) > AttributeError: This RootResource does not have an attribute "rb_version". > > > After some time, I found out that it cannot grab the uuid and by renaming > the repository to the CC vobtag, it could process. > > Which is where I'm stuck now. I "know" the issue, it's with access > permissions. But until now whatever I changed did not help. > > When trying to post from rbt > > > >>> Error data: {u'stat': u'fail', u'err': {u'msg': u'There was an error > fetching extended information for this repository.', u'code': 210}} > Traceback (most recent call last): > File "/usr/bin/rbt", line 11, in > sys.exit(main()) > File "/usr/lib/python2.7/site-packages/rbtools/commands/main.py", line > 120, in main > command.run_from_argv([RB_MAIN, command_name] + args) > File "/usr/lib/python2.7/site-packages/rbtools/commands/__init__.py", > line 725, in run_from_argv > exit_code = self.main(*args) or 0 > File "/usr/lib/python2.7/site-packages/rbtools/commands/post.py", line > 770, in main > repository_info = repository_info.find_server_repository_info(api_root > ) > File "/usr/lib/python2.7/site-packages/rbtools/clients/clearcase.py", > line 1252, in find_server_repository_info > raise SCMError('You do not have permission to access ' > rbtools.clients.errors.SCMError: You do not have permission to access this > repository. > > > > When doing it from the web > > > File > "/usr/lib64/python2.7/site-packages/reviewboard/scmtools/clearcase.py", > line 58, in __init__ > self.viewtype = self._get_view_type(self.repopath) > File > "/usr/lib64/python2.7/site-packages/reviewboard/scmtools/clearcase.py", > line 156, in _get_view_type > shell=_popen_shell) > File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ > errread, errwrite) > File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child > raise child_exception > OSError: [Errno 13] Permission denied: '/view/rbview/vobs/stdvob' > > From what I understand, it cannot access the view/vob to grab/extract the > file content. > The process is running under the apache/apache user > I have added the apache group to the VOB group list and reprotected (using > protect and protectvob (so 'others' also have access) > Also made apache user as a member of the VOB group > I tried with a view from one user, also with a view created by the apache > user. > > So for people that actually run it, do you run it with the generic apache > user or a more "CC" ones (like running an httpd instance as vob_owner) ? > I'm kind of surpized that, even if there are only a few CC user, there is > not a lot of info on the "how-to". > > Regards. > > > > > > -- 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/a775d7d2-1b44-4009-a46c-f30849f180a9%40googlegroups.com.
ClearCase and ReviewBoard setup : Any pointer, best practice or setup instruction ?
Good morning, I've setup RB with Git with no issue, but when trying with ClearCase, that did not went well. I understand the current integration is done by the community. Looking at old messages (both in forum, review and bugtracking) did not really help. I was wondering if there are any kind of best practice or setup instructions somewhere or made by current CC user ? I'm on CentOS, CC9.0.1.7, Apache, RB 3.0.15, RBT 1.0.2 The first issue I got was during a rbt post where it keep failing with missing attribute. if parse_version(server.rb_version) >= parse_version('1.5.3'): File "/usr/lib/python2.7/site-packages/rbtools/api/resource.py", line 348, in __getattr__ % (self.__class__.__name__, name)) AttributeError: This RootResource does not have an attribute "rb_version". After some time, I found out that it cannot grab the uuid and by renaming the repository to the CC vobtag, it could process. Which is where I'm stuck now. I "know" the issue, it's with access permissions. But until now whatever I changed did not help. When trying to post from rbt >>> Error data: {u'stat': u'fail', u'err': {u'msg': u'There was an error fetching extended information for this repository.', u'code': 210}} Traceback (most recent call last): File "/usr/bin/rbt", line 11, in sys.exit(main()) File "/usr/lib/python2.7/site-packages/rbtools/commands/main.py", line 120 , in main command.run_from_argv([RB_MAIN, command_name] + args) File "/usr/lib/python2.7/site-packages/rbtools/commands/__init__.py", line 725, in run_from_argv exit_code = self.main(*args) or 0 File "/usr/lib/python2.7/site-packages/rbtools/commands/post.py", line 770 , in main repository_info = repository_info.find_server_repository_info(api_root) File "/usr/lib/python2.7/site-packages/rbtools/clients/clearcase.py", line 1252, in find_server_repository_info raise SCMError('You do not have permission to access ' rbtools.clients.errors.SCMError: You do not have permission to access this repository. When doing it from the web File "/usr/lib64/python2.7/site-packages/reviewboard/scmtools/clearcase.py", line 58, in __init__ self.viewtype = self._get_view_type(self.repopath) File "/usr/lib64/python2.7/site-packages/reviewboard/scmtools/clearcase.py", line 156, in _get_view_type shell=_popen_shell) File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 13] Permission denied: '/view/rbview/vobs/stdvob' >From what I understand, it cannot access the view/vob to grab/extract the file content. The process is running under the apache/apache user I have added the apache group to the VOB group list and reprotected (using protect and protectvob (so 'others' also have access) Also made apache user as a member of the VOB group I tried with a view from one user, also with a view created by the apache user. So for people that actually run it, do you run it with the generic apache user or a more "CC" ones (like running an httpd instance as vob_owner) ? I'm kind of surpized that, even if there are only a few CC user, there is not a lot of info on the "how-to". Regards. -- 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/eb21e081-3105-4d95-9bc6-aa800119e5d8%40googlegroups.com.