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 P4PORT but
that wasn't the problem, and when I thought I had fixed it but what
actually happened was to put svn repo type when adding the repo (strangely
that was accepted without any immediate errors).

Thanks,
Giuseppe

On 20 Jan 2018 15:37, "David Trowbridge"  wrote:

> 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 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)
>>
>> if 'Perforce password' in error or 'Password must be set' in
>> error:
>> raise AuthenticationError(msg=error)
>> elif 'SSL library must be at least version' in error:
>> raise SCMError(_(
>> 'The specified Perforce port includes ssl:, but the '
>> 'p4python library was built without SSL support or
>> the '
>> 'system library path is incorrect.'
>> ))
>> elif ('check $P4PORT' in error or 
>> (error.startswith('[P4.connect()]
>> TCP connect to') and 'failed.' in error)):
>> *logging.error("RepositoryNotFound was raised: " +
>> error)*
>> *traceback.print_stack()*
>>  -->raise RepositoryNotFoundError
>> elif "To allow connection use the 'p4 trust' command" in
>> error:
>> fingerprint = error.split(r'\n')[3]
>>
>>
>> On 15 January 2018 at 20:50, David Trowbridge  wrote:
>>
>>> 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 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
 environment variables, can you confirm that? I basically included a
 logging.error() print just when RepositoryNotFoundError was thrown and the
 error there was that I received a permission denied in the TPC connect
 which was weird. Basically since the http server runs as root (I think...)
 running a p4 info with sudo was failing and so was the check I believe. So
 I basically added the P4PORT also as GLOBAL environment variable in
 /etc/profile.d/

 Thanks for the support David, I appreciated it.

 Giuseppe

 On 15 January 2018 at 11:23, Giuseppe Salvatore <
 giuseppe.salvat...@gmail.com> wrote:

> 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 IntegrationHook
> 2018-01-15 11:03:58,557 - DEBUG -  - djblets.cache.backend - Cache
> miss for key jsi18n-djangojs-reviewboard_djblets-en-gb-1515434639.
> 2018-01-15 11:05:20,140 - INFO -  - root - Reloading logging settings
> 2018-01-15 11:05:20,141 - DEBUG -  - root - Logging to
> /var/www/html/*/logs/webapp-logs/reviewboard.log
> with a minimum level of DEBUG
> 2018-01-15 11:05:20,143 - ERROR -  - djblets.extensions.manager -
> Error loading extension rbintegrations: cannot import name IntegrationHook
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/djblets/extensions/manager.py",
> line 449, in _load_extensions
> ext_class = entrypoint.load()
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",
> line 2405, in load
> return self.resolve()
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",
> line 2411, in resolve
> module = __import__(self.module_name, fromlist=['__name__'],
> level=0)
>   File "/usr/lib/python2.7/site-packages/rbintegrations/extension.py",
> line 6, in 
> from reviewboard.extensions.hooks import IntegrationHook, URLHook
> 

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 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)
>
> if 'Perforce password' in error or 'Password must be set' in
> error:
> raise AuthenticationError(msg=error)
> elif 'SSL library must be at least version' in error:
> raise SCMError(_(
> 'The specified Perforce port includes ssl:, but the '
> 'p4python library was built without SSL support or the
> '
> 'system library path is incorrect.'
> ))
> elif ('check $P4PORT' in error or 
> (error.startswith('[P4.connect()]
> TCP connect to') and 'failed.' in error)):
> *logging.error("RepositoryNotFound was raised: " + error)*
> *traceback.print_stack()*
>  -->raise RepositoryNotFoundError
> elif "To allow connection use the 'p4 trust' command" in error:
> fingerprint = error.split(r'\n')[3]
>
>
> On 15 January 2018 at 20:50, David Trowbridge  wrote:
>
>> 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 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
>>> environment variables, can you confirm that? I basically included a
>>> logging.error() print just when RepositoryNotFoundError was thrown and the
>>> error there was that I received a permission denied in the TPC connect
>>> which was weird. Basically since the http server runs as root (I think...)
>>> running a p4 info with sudo was failing and so was the check I believe. So
>>> I basically added the P4PORT also as GLOBAL environment variable in
>>> /etc/profile.d/
>>>
>>> Thanks for the support David, I appreciated it.
>>>
>>> Giuseppe
>>>
>>> On 15 January 2018 at 11:23, Giuseppe Salvatore <
>>> giuseppe.salvat...@gmail.com> wrote:
>>>
 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 IntegrationHook
 2018-01-15 11:03:58,557 - DEBUG -  - djblets.cache.backend - Cache miss
 for key jsi18n-djangojs-reviewboard_djblets-en-gb-1515434639.
 2018-01-15 11:05:20,140 - INFO -  - root - Reloading logging settings
 2018-01-15 11:05:20,141 - DEBUG -  - root - Logging to
 /var/www/html/*/logs/webapp-logs/reviewboard.log with a
 minimum level of DEBUG
 2018-01-15 11:05:20,143 - ERROR -  - djblets.extensions.manager - Error
 loading extension rbintegrations: cannot import name IntegrationHook
 Traceback (most recent call last):
   File
 "/usr/lib/python2.7/site-packages/djblets/extensions/manager.py", line 449,
 in _load_extensions
 ext_class = entrypoint.load()
   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",
 line 2405, in load
 return self.resolve()
   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",
 line 2411, in resolve
 module = __import__(self.module_name, fromlist=['__name__'],
 level=0)
   File "/usr/lib/python2.7/site-packages/rbintegrations/extension.py",
 line 6, in 
 from reviewboard.extensions.hooks import IntegrationHook, URLHook
 ImportError: cannot import name IntegrationHook

 Due to confidential info I had to blank part of the domain, repo name
 and user name.
 Regards,

 Giuseppe



 On 12 January 2018 at 22:01, David Trowbridge 
 wrote:

> 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 are any errors listed there?
>
> The name field is an identifier which will 

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. 
> 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  > wrote:
>
>> 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 
>> (clicking the "I trust this host" button). The traceback from the error is 
>> as follows:
>>
>> 2018-01-16 17:42:37,946 - ERROR - None - admin - 
>> /admin/db/scmtools/repository/add/ - djblets.log.middleware - Exception 
>> thrown for user admin at 
>> http://review.mydomain.com/admin/db/scmtools/repository/add/
>>
>> [Errno 2] No such file or directory
>> 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/contrib/admin/options.py", line 
>> 465, in wrapper
>> return self.admin_site.admin_view(view)(*args, **kwargs)
>>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", 
>> line 99, in _wrapped_view
>> response = view_func(request, *args, **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/contrib/admin/sites.py", 
>> line 198, in inner
>> return view(request, *args, **kwargs)
>>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", 
>> line 29, in _wrapper
>> return bound_func(*args, **kwargs)
>>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", 
>> line 99, in _wrapped_view
>> response = view_func(request, *args, **kwargs)
>>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", 
>> line 25, in bound_func
>> return func(self, *args2, **kwargs2)
>>   File "/usr/lib/python2.7/site-packages/django/db/transaction.py", line 
>> 371, in inner
>> return func(*args, **kwargs)
>>   File 
>> "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 
>> 1146, in add_view
>> if form.is_valid():
>>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", 
>> line 1139, in is_valid
>> if not super(RepositoryForm, self).is_valid():
>>   File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 
>> 129, in is_valid
>> return self.is_bound and not bool(self.errors)
>>   File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 
>> 121, in errors
>> self.full_clean()
>>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", 
>> line 921, in full_clean
>> super(RepositoryForm, self).full_clean(*args, **kwargs)
>>   File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 
>> 274, in full_clean
>> self._clean_form()
>>   File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 
>> 300, in _clean_form
>> self.cleaned_data = self.clean()
>>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", 
>> line 970, in clean
>> self._verify_repository_path()
>>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", 
>> line 1320, in _verify_repository_path
>> certificate=e.certificate)
>>   File 
>> "/usr/lib/python2.7/site-packages/reviewboard/scmtools/perforce.py", line 
>> 912, in accept_certificate
>> stderr=subprocess.PIPE)
>>   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 2] No such file or directory
>>
>> Any thoughts?
>>
>> Thanks,
>> Pete
>>
>> -- 
>> 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 .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 

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  wrote:

> 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
> (clicking the "I trust this host" button). The traceback from the error is
> as follows:
>
> 2018-01-16 17:42:37,946 - ERROR - None - admin -
> /admin/db/scmtools/repository/add/ - djblets.log.middleware - Exception
> thrown for user admin at http://review.mydomain.com/
> admin/db/scmtools/repository/add/
>
> [Errno 2] No such file or directory
> 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/contrib/admin/options.py",
> line 465, in wrapper
> return self.admin_site.admin_view(view)(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py",
> line 99, in _wrapped_view
> response = view_func(request, *args, **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/contrib/admin/sites.py",
> line 198, in inner
> return view(request, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py",
> line 29, in _wrapper
> return bound_func(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py",
> line 99, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py",
> line 25, in bound_func
> return func(self, *args2, **kwargs2)
>   File "/usr/lib/python2.7/site-packages/django/db/transaction.py", line
> 371, in inner
> return func(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py",
> line 1146, in add_view
> if form.is_valid():
>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py",
> line 1139, in is_valid
> if not super(RepositoryForm, self).is_valid():
>   File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line
> 129, in is_valid
> return self.is_bound and not bool(self.errors)
>   File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line
> 121, in errors
> self.full_clean()
>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py",
> line 921, in full_clean
> super(RepositoryForm, self).full_clean(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line
> 274, in full_clean
> self._clean_form()
>   File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line
> 300, in _clean_form
> self.cleaned_data = self.clean()
>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py",
> line 970, in clean
> self._verify_repository_path()
>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py",
> line 1320, in _verify_repository_path
> certificate=e.certificate)
>   File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/perforce.py",
> line 912, in accept_certificate
> stderr=subprocess.PIPE)
>   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 2] No such file or directory
>
> Any thoughts?
>
> Thanks,
> Pete
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
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 

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 
(clicking the "I trust this host" button). The traceback from the error is 
as follows:

2018-01-16 17:42:37,946 - ERROR - None - admin - 
/admin/db/scmtools/repository/add/ - djblets.log.middleware - Exception 
thrown for user admin at 
http://review.mydomain.com/admin/db/scmtools/repository/add/

[Errno 2] No such file or directory
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/contrib/admin/options.py", 
line 465, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
99, in _wrapped_view
response = view_func(request, *args, **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/contrib/admin/sites.py", 
line 198, in inner
return view(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
29, in _wrapper
return bound_func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
99, in _wrapped_view
response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 
25, in bound_func
return func(self, *args2, **kwargs2)
  File "/usr/lib/python2.7/site-packages/django/db/transaction.py", line 
371, in inner
return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", 
line 1146, in add_view
if form.is_valid():
  File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", 
line 1139, in is_valid
if not super(RepositoryForm, self).is_valid():
  File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 129, 
in is_valid
return self.is_bound and not bool(self.errors)
  File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 121, 
in errors
self.full_clean()
  File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", 
line 921, in full_clean
super(RepositoryForm, self).full_clean(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 274, 
in full_clean
self._clean_form()
  File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 300, 
in _clean_form
self.cleaned_data = self.clean()
  File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", 
line 970, in clean
self._verify_repository_path()
  File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", 
line 1320, in _verify_repository_path
certificate=e.certificate)
  File "/usr/lib/python2.7/site-packages/reviewboard/scmtools/perforce.py", 
line 912, in accept_certificate
stderr=subprocess.PIPE)
  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 2] No such file or directory

Any thoughts?

Thanks,
Pete

-- 
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.
For more options, visit https://groups.google.com/d/optout.


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)

if 'Perforce password' in error or 'Password must be set' in
error:
raise AuthenticationError(msg=error)
elif 'SSL library must be at least version' in error:
raise SCMError(_(
'The specified Perforce port includes ssl:, but the '
'p4python library was built without SSL support or the '
'system library path is incorrect.'
))
elif ('check $P4PORT' in error or (error.startswith('[P4.connect()]
TCP connect to') and 'failed.' in error)):
*logging.error("RepositoryNotFound was raised: " + error)*
*traceback.print_stack()*
 -->raise RepositoryNotFoundError
elif "To allow connection use the 'p4 trust' command" in error:
fingerprint = error.split(r'\n')[3]


On 15 January 2018 at 20:50, David Trowbridge  wrote:

> 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 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
>> environment variables, can you confirm that? I basically included a
>> logging.error() print just when RepositoryNotFoundError was thrown and the
>> error there was that I received a permission denied in the TPC connect
>> which was weird. Basically since the http server runs as root (I think...)
>> running a p4 info with sudo was failing and so was the check I believe. So
>> I basically added the P4PORT also as GLOBAL environment variable in
>> /etc/profile.d/
>>
>> Thanks for the support David, I appreciated it.
>>
>> Giuseppe
>>
>> On 15 January 2018 at 11:23, Giuseppe Salvatore <
>> giuseppe.salvat...@gmail.com> wrote:
>>
>>> 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 IntegrationHook
>>> 2018-01-15 11:03:58,557 - DEBUG -  - djblets.cache.backend - Cache miss
>>> for key jsi18n-djangojs-reviewboard_djblets-en-gb-1515434639.
>>> 2018-01-15 11:05:20,140 - INFO -  - root - Reloading logging settings
>>> 2018-01-15 11:05:20,141 - DEBUG -  - root - Logging to
>>> /var/www/html/*/logs/webapp-logs/reviewboard.log
>>> with a minimum level of DEBUG
>>> 2018-01-15 11:05:20,143 - ERROR -  - djblets.extensions.manager - Error
>>> loading extension rbintegrations: cannot import name IntegrationHook
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python2.7/site-packages/djblets/extensions/manager.py",
>>> line 449, in _load_extensions
>>> ext_class = entrypoint.load()
>>>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",
>>> line 2405, in load
>>> return self.resolve()
>>>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py",
>>> line 2411, in resolve
>>> module = __import__(self.module_name, fromlist=['__name__'], level=0)
>>>   File "/usr/lib/python2.7/site-packages/rbintegrations/extension.py",
>>> line 6, in 
>>> from reviewboard.extensions.hooks import IntegrationHook, URLHook
>>> ImportError: cannot import name IntegrationHook
>>>
>>> Due to confidential info I had to blank part of the domain, repo name
>>> and user name.
>>> Regards,
>>>
>>> Giuseppe
>>>
>>>
>>>
>>> On 12 January 2018 at 22:01, David Trowbridge 
>>> wrote:
>>>
 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 are any errors listed there?

 The name field is an identifier which will be used within Review Board,
 and can be whatever you like.

 On Fri, Jan 12, 2018 at 10:00 AM Giuseppe Salvatore <
 giuseppe.salvat...@gmail.com> wrote:

> 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 

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 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
> environment variables, can you confirm that? I basically included a
> logging.error() print just when RepositoryNotFoundError was thrown and the
> error there was that I received a permission denied in the TPC connect
> which was weird. Basically since the http server runs as root (I think...)
> running a p4 info with sudo was failing and so was the check I believe. So
> I basically added the P4PORT also as GLOBAL environment variable in
> /etc/profile.d/
>
> Thanks for the support David, I appreciated it.
>
> Giuseppe
>
> On 15 January 2018 at 11:23, Giuseppe Salvatore <
> giuseppe.salvat...@gmail.com> wrote:
>
>> 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 IntegrationHook
>> 2018-01-15 11:03:58,557 - DEBUG -  - djblets.cache.backend - Cache miss
>> for key jsi18n-djangojs-reviewboard_djblets-en-gb-1515434639.
>> 2018-01-15 11:05:20,140 - INFO -  - root - Reloading logging settings
>> 2018-01-15 11:05:20,141 - DEBUG -  - root - Logging to
>> /var/www/html/*/logs/webapp-logs/reviewboard.log with a
>> minimum level of DEBUG
>> 2018-01-15 11:05:20,143 - ERROR -  - djblets.extensions.manager - Error
>> loading extension rbintegrations: cannot import name IntegrationHook
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/site-packages/djblets/extensions/manager.py",
>> line 449, in _load_extensions
>> ext_class = entrypoint.load()
>>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
>> 2405, in load
>> return self.resolve()
>>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
>> 2411, in resolve
>> module = __import__(self.module_name, fromlist=['__name__'], level=0)
>>   File "/usr/lib/python2.7/site-packages/rbintegrations/extension.py",
>> line 6, in 
>> from reviewboard.extensions.hooks import IntegrationHook, URLHook
>> ImportError: cannot import name IntegrationHook
>>
>> Due to confidential info I had to blank part of the domain, repo name and
>> user name.
>> Regards,
>>
>> Giuseppe
>>
>>
>>
>> On 12 January 2018 at 22:01, David Trowbridge  wrote:
>>
>>> 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 are any errors listed there?
>>>
>>> The name field is an identifier which will be used within Review Board,
>>> and can be whatever you like.
>>>
>>> On Fri, Jan 12, 2018 at 10:00 AM Giuseppe Salvatore <
>>> giuseppe.salvat...@gmail.com> wrote:
>>>
 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 error message refers to a path instead of an
 address or hostname...

 We are in the process of evaluating different tools to implement a code
 review process in our team (possibly the whole company) but unfortunately
 if I am not able to get it working I will have to drop RB. I would prefer
 not to since it was me to recommend it.

 Thanks for your help and support

 Giuseppe

 On 11 January 2018 at 00:34, David Trowbridge 
 wrote:

> 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 after you've set it up in the web UI. The command is
> poorly named, and we're hoping to improve it (and rename it) in the 
> future.
>
> -David
>
> On Tue, Jan 9, 2018 at 3:00 AM Giuseppe Salvatore <
> giuseppe.salvat...@gmail.com> wrote:
>
>> Hi David,
>>
>> thanks for your reply. 

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
environment variables, can you confirm that? I basically included a
logging.error() print just when RepositoryNotFoundError was thrown and the
error there was that I received a permission denied in the TPC connect
which was weird. Basically since the http server runs as root (I think...)
running a p4 info with sudo was failing and so was the check I believe. So
I basically added the P4PORT also as GLOBAL environment variable in
/etc/profile.d/

Thanks for the support David, I appreciated it.

Giuseppe

On 15 January 2018 at 11:23, Giuseppe Salvatore <
giuseppe.salvat...@gmail.com> wrote:

> 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 IntegrationHook
> 2018-01-15 11:03:58,557 - DEBUG -  - djblets.cache.backend - Cache miss
> for key jsi18n-djangojs-reviewboard_djblets-en-gb-1515434639.
> 2018-01-15 11:05:20,140 - INFO -  - root - Reloading logging settings
> 2018-01-15 11:05:20,141 - DEBUG -  - root - Logging to
> /var/www/html/*/logs/webapp-logs/reviewboard.log with
> a minimum level of DEBUG
> 2018-01-15 11:05:20,143 - ERROR -  - djblets.extensions.manager - Error
> loading extension rbintegrations: cannot import name IntegrationHook
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/djblets/extensions/manager.py",
> line 449, in _load_extensions
> ext_class = entrypoint.load()
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
> 2405, in load
> return self.resolve()
>   File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
> 2411, in resolve
> module = __import__(self.module_name, fromlist=['__name__'], level=0)
>   File "/usr/lib/python2.7/site-packages/rbintegrations/extension.py",
> line 6, in 
> from reviewboard.extensions.hooks import IntegrationHook, URLHook
> ImportError: cannot import name IntegrationHook
>
> Due to confidential info I had to blank part of the domain, repo name and
> user name.
> Regards,
>
> Giuseppe
>
>
>
> On 12 January 2018 at 22:01, David Trowbridge  wrote:
>
>> 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
>> are any errors listed there?
>>
>> The name field is an identifier which will be used within Review Board,
>> and can be whatever you like.
>>
>> On Fri, Jan 12, 2018 at 10:00 AM Giuseppe Salvatore <
>> giuseppe.salvat...@gmail.com> wrote:
>>
>>> 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 error message refers to a path instead of an
>>> address or hostname...
>>>
>>> We are in the process of evaluating different tools to implement a code
>>> review process in our team (possibly the whole company) but unfortunately
>>> if I am not able to get it working I will have to drop RB. I would prefer
>>> not to since it was me to recommend it.
>>>
>>> Thanks for your help and support
>>>
>>> Giuseppe
>>>
>>> On 11 January 2018 at 00:34, David Trowbridge 
>>> wrote:
>>>
 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 after you've set it up in the web UI. The command is
 poorly named, and we're hoping to improve it (and rename it) in the future.

 -David

 On Tue, Jan 9, 2018 at 3:00 AM Giuseppe Salvatore <
 giuseppe.salvat...@gmail.com> wrote:

> 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 work. If I put
> perforce.server.com:1666 (just an example) the error 

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 IntegrationHook
2018-01-15 11:03:58,557 - DEBUG -  - djblets.cache.backend - Cache miss for
key jsi18n-djangojs-reviewboard_djblets-en-gb-1515434639.
2018-01-15 11:05:20,140 - INFO -  - root - Reloading logging settings
2018-01-15 11:05:20,141 - DEBUG -  - root - Logging to
/var/www/html/*/logs/webapp-logs/reviewboard.log with a
minimum level of DEBUG
2018-01-15 11:05:20,143 - ERROR -  - djblets.extensions.manager - Error
loading extension rbintegrations: cannot import name IntegrationHook
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/djblets/extensions/manager.py",
line 449, in _load_extensions
ext_class = entrypoint.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
2405, in load
return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
2411, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/site-packages/rbintegrations/extension.py", line
6, in 
from reviewboard.extensions.hooks import IntegrationHook, URLHook
ImportError: cannot import name IntegrationHook

Due to confidential info I had to blank part of the domain, repo name and
user name.
Regards,

Giuseppe



On 12 January 2018 at 22:01, David Trowbridge  wrote:

> 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
> are any errors listed there?
>
> The name field is an identifier which will be used within Review Board,
> and can be whatever you like.
>
> On Fri, Jan 12, 2018 at 10:00 AM Giuseppe Salvatore <
> giuseppe.salvat...@gmail.com> wrote:
>
>> 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 error message refers to a path instead of an
>> address or hostname...
>>
>> We are in the process of evaluating different tools to implement a code
>> review process in our team (possibly the whole company) but unfortunately
>> if I am not able to get it working I will have to drop RB. I would prefer
>> not to since it was me to recommend it.
>>
>> Thanks for your help and support
>>
>> Giuseppe
>>
>> On 11 January 2018 at 00:34, David Trowbridge  wrote:
>>
>>> 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 after you've set it up in the web UI. The command is
>>> poorly named, and we're hoping to improve it (and rename it) in the future.
>>>
>>> -David
>>>
>>> On Tue, Jan 9, 2018 at 3:00 AM Giuseppe Salvatore <
>>> giuseppe.salvat...@gmail.com> wrote:
>>>
 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 work. If I put perforce.server.com:1666
 (just an example) the error message is also quite confusing, it says

 ERROR: The current directory does not contain a checkout from a
 supported source code repository.

 Running that command in debug mode, it looks like checks with the known
 repository tools, but then when it finds one (p4 info in my case succeeds)
 then it wants probably the current directory to be on a perforce workspace

 Any ideas?

 Thanks
 Giuseppe


 On Monday, 8 January 2018 19:16:51 UTC, David Trowbridge wrote:

> 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@gmail.com> wrote:
>
 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

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
are any errors listed there?

The name field is an identifier which will be used within Review Board, and
can be whatever you like.

On Fri, Jan 12, 2018 at 10:00 AM Giuseppe Salvatore <
giuseppe.salvat...@gmail.com> wrote:

> 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 error message refers to a path instead of an address
> or hostname...
>
> We are in the process of evaluating different tools to implement a code
> review process in our team (possibly the whole company) but unfortunately
> if I am not able to get it working I will have to drop RB. I would prefer
> not to since it was me to recommend it.
>
> Thanks for your help and support
>
> Giuseppe
>
> On 11 January 2018 at 00:34, David Trowbridge  wrote:
>
>> 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 after you've set it up in the web UI. The command is
>> poorly named, and we're hoping to improve it (and rename it) in the future.
>>
>> -David
>>
>> On Tue, Jan 9, 2018 at 3:00 AM Giuseppe Salvatore <
>> giuseppe.salvat...@gmail.com> wrote:
>>
>>> 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 work. If I put perforce.server.com:1666
>>> (just an example) the error message is also quite confusing, it says
>>>
>>> ERROR: The current directory does not contain a checkout from a
>>> supported source code repository.
>>>
>>> Running that command in debug mode, it looks like checks with the known
>>> repository tools, but then when it finds one (p4 info in my case succeeds)
>>> then it wants probably the current directory to be on a perforce workspace
>>>
>>> Any ideas?
>>>
>>> Thanks
>>> Giuseppe
>>>
>>>
>>> On Monday, 8 January 2018 19:16:51 UTC, David Trowbridge wrote:
>>>
 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@gmail.com> wrote:

>>> 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 doesn't work and the error message is confusing. Says
>
> A repository was not found at the specified path.
>
> It is not clear if I have to put the path of the local p4
> workspace/client. It wouldn't make sense to me.
>
> Any comment will be appreciated
>
> Thanks,
> Giuseppe
>
> --
> 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.


> For more options, visit https://groups.google.com/d/optout.
>
 --
>>> 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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Supercharge your Review Board with Power Pack:
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board 

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 error message refers to a path instead of an address
or hostname...

We are in the process of evaluating different tools to implement a code
review process in our team (possibly the whole company) but unfortunately
if I am not able to get it working I will have to drop RB. I would prefer
not to since it was me to recommend it.

Thanks for your help and support

Giuseppe

On 11 January 2018 at 00:34, David Trowbridge  wrote:

> 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 after you've set it up in the web UI. The command is
> poorly named, and we're hoping to improve it (and rename it) in the future.
>
> -David
>
> On Tue, Jan 9, 2018 at 3:00 AM Giuseppe Salvatore <
> giuseppe.salvat...@gmail.com> wrote:
>
>> 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 work. If I put perforce.server.com:1666
>> (just an example) the error message is also quite confusing, it says
>>
>> ERROR: The current directory does not contain a checkout from a supported
>> source code repository.
>>
>> Running that command in debug mode, it looks like checks with the known
>> repository tools, but then when it finds one (p4 info in my case succeeds)
>> then it wants probably the current directory to be on a perforce workspace
>>
>> Any ideas?
>>
>> Thanks
>> Giuseppe
>>
>>
>> On Monday, 8 January 2018 19:16:51 UTC, David Trowbridge wrote:
>>
>>> 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@gmail.com> wrote:
>>>
>> 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 doesn't work and the error message is confusing. Says

 A repository was not found at the specified path.

 It is not clear if I have to put the path of the local p4
 workspace/client. It wouldn't make sense to me.

 Any comment will be appreciated

 Thanks,
 Giuseppe

 --
 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.
>>>
>>>
 For more options, visit https://groups.google.com/d/optout.

>>> --
>> 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.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 a topic in the
> Google Groups "Review Board Community" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/reviewboard/PvsyfplzUIg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board 

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 after you've set it up in the web UI. The command is
poorly named, and we're hoping to improve it (and rename it) in the future.

-David

On Tue, Jan 9, 2018 at 3:00 AM Giuseppe Salvatore <
giuseppe.salvat...@gmail.com> wrote:

> 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 work. If I put perforce.server.com:1666
> (just an example) the error message is also quite confusing, it says
>
> ERROR: The current directory does not contain a checkout from a supported
> source code repository.
>
> Running that command in debug mode, it looks like checks with the known
> repository tools, but then when it finds one (p4 info in my case succeeds)
> then it wants probably the current directory to be on a perforce workspace
>
> Any ideas?
>
> Thanks
> Giuseppe
>
>
> On Monday, 8 January 2018 19:16:51 UTC, David Trowbridge wrote:
>
>> 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@gmail.com> wrote:
>>
> 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 doesn't work and the error message is confusing. Says
>>>
>>> A repository was not found at the specified path.
>>>
>>> It is not clear if I have to put the path of the local p4
>>> workspace/client. It wouldn't make sense to me.
>>>
>>> Any comment will be appreciated
>>>
>>> Thanks,
>>> Giuseppe
>>>
>>> --
>>> 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.
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


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 work. If I put perforce.server.com:1666 
(just an example) the error message is also quite confusing, it says 

ERROR: The current directory does not contain a checkout from a supported 
source code repository.

Running that command in debug mode, it looks like checks with the known 
repository tools, but then when it finds one (p4 info in my case succeeds) 
then it wants probably the current directory to be on a perforce workspace

Any ideas?

Thanks
Giuseppe


On Monday, 8 January 2018 19:16:51 UTC, David Trowbridge wrote:
>
> 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  > wrote:
>
>> 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 doesn't work and the error message is confusing. Says 
>>
>> A repository was not found at the specified path.
>>
>> It is not clear if I have to put the path of the local p4 
>> workspace/client. It wouldn't make sense to me.
>>
>> Any comment will be appreciated
>>
>> Thanks,
>> Giuseppe
>>
>> -- 
>> 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 .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


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
> 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 doesn't work and the error message is confusing. Says
>
> A repository was not found at the specified path.
>
> It is not clear if I have to put the path of the local p4
> workspace/client. It wouldn't make sense to me.
>
> Any comment will be appreciated
>
> Thanks,
> Giuseppe
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


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 doesn't work and the error message is confusing. Says 

A repository was not found at the specified path.

It is not clear if I have to put the path of the local p4 workspace/client. 
It wouldn't make sense to me.

Any comment will be appreciated

Thanks,
Giuseppe

-- 
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.
For more options, visit https://groups.google.com/d/optout.