Re: Can't add perforce repository

2018-01-23 Thread Giuseppe Salvatore
Hi David, After further investigation I discovered that it was the firewall blocking httpd outgoing connection to perforce. I couldn't figure it out from ssh, I had to remote in through vnc to see an alert related to that. The error message from the python script was suggesting to look at the

Re: Can't add perforce repository

2018-01-20 Thread David Trowbridge
Giuseppe, Do you have the full traceback? That's generic worker code that's called in many places. -David On Tue, Jan 16, 2018 at 10:23 AM Giuseppe Salvatore < giuseppe.salvat...@gmail.com> wrote: > It's in file > > reviewboard/scmtools/perforce.py > > line 490 (highlighted in yellow, I have

Re: Can't add Perforce Repository with SSL Support

2018-01-16 Thread Peter Storkey
Hi Christian, That did the trick! Thank you so much for your fast response! Thanks, Pete On Tuesday, January 16, 2018 at 2:40:25 PM UTC-8, Christian Hammond wrote: > > Hi Pete, > > That's not a very good error... > > It's trying to use the p4 command line tool to accept the SSL certificate. >

Re: Can't add Perforce Repository with SSL Support

2018-01-16 Thread Christian Hammond
Hi Pete, That's not a very good error... It's trying to use the p4 command line tool to accept the SSL certificate. It's not finding it in Apache's path. You'll need to place a copy of p4 in /usr/bin. We'll work on improving that error. Christian On Tue, Jan 16, 2018 at 9:59 AM, Peter Storkey

Can't add Perforce Repository with SSL Support

2018-01-16 Thread Peter Storkey
Hi all, I'm installing a new ReviewBoard 3.0.2 server on a CentOS 7 VM. We have two Perforce repositories, one that uses SSL and one that does not. I have successfully added the non-SSL repository, but when I try to add the SSL repository I get a 500 error when accepting the SSL fingerprint

Re: Can't add perforce repository

2018-01-16 Thread Giuseppe Salvatore
It's in file reviewboard/scmtools/perforce.py line 490 (highlighted in yellow, I have added the two lines in bold to get more debug information) try: with self.connect(): yield except P4Exception as e: error = six.text_type(e)

Re: Can't add perforce repository

2018-01-15 Thread David Trowbridge
Giuseppe, Can you confirm exactly where in the code it was failing? There shouldn't be any dependency on the environment. -David On Mon, Jan 15, 2018 at 9:07 AM Giuseppe Salvatore < giuseppe.salvat...@gmail.com> wrote: > Hi David, > > I fixed it now!! The problem was the following but I need

Re: Can't add perforce repository

2018-01-15 Thread Giuseppe Salvatore
Hi David, I fixed it now!! The problem was the following but I need you to confirm it. In the python scripts at some point I think there is a check done (think was check_repository) that was basically running p4 info ignoring the values in the filled fields of the web UI but reading for the

Re: Can't add perforce repository

2018-01-15 Thread Giuseppe Salvatore
Hi David, sure thank you! By looking into the log file I think a different errors is showing up. Not sure if it is related in any way with the Perforce repo interaction, seems to be related to rbintegrations missing hook library. Here is what it says ImportError: cannot import name

Re: Can't add perforce repository

2018-01-12 Thread David Trowbridge
The error message is generic for all repository types, most of which have a "path". Would it be possible for you to share a screenshot of what you're putting into the field? (possibly anonymizing any domain names)? Can you check the Review Board log file after attempting to save it to see if there

Re: Can't add perforce repository

2018-01-12 Thread Giuseppe Salvatore
Hi David, yes I do. And it's strange that the error message refers to a path! Also, is the Name field the name of the repository or a name that will identify the repository in review board (btw I tried putting the real repository name in perforce and doesn't work as well) It's strange that the

Re: Can't add perforce repository

2018-01-10 Thread David Trowbridge
Giuseppe, There's no way of configuring it via the command-line. The repository has to be set up in the Review Board admin UI first. Are you still getting the same error with the correct P4PORT string? "rbt setup-repo" is for configuring RBTools (creating a .reviewboardrc file). This is for

Re: Can't add perforce repository

2018-01-09 Thread Giuseppe Salvatore
Hi David, thanks for your reply. Yes I tried that as well but didn't work. I am wondering if there's anyway of doing it using command line. I tried also using rbt setup-repo command but I am not sure if that's equivalent of doing it from RB web dashboard. BTW also rbt setup-repo doesn't

Re: Can't add perforce repository

2018-01-08 Thread David Trowbridge
Giuseppe, The path should be the P4PORT setting. So it should look something like " perforce.example.com:1666" -David On Mon, Jan 8, 2018 at 11:08 AM Giuseppe Salvatore < giuseppe.salvat...@gmail.com> wrote: > Hi, > I am trying to add a perforce repository in the list of available >

Can't add perforce repository

2018-01-08 Thread Giuseppe Salvatore
Hi, I am trying to add a perforce repository in the list of available repositories. Unfortunately it looks like from the admin dashbord this can't be done. In REPOSITORY INFORMATION -> Path it is not really clear what is should go. From the description I am assuming p4server:p4port but that