Re: ReviewBoard throws trace when trying to add a Perforce repository

2019-07-26 Thread Suresh Burra
Thanks Christian,

Unfortunately, I have reimaged the server and am trying to bring it up 
again as I felt the suggestions provided by David may be reason for causing 
this error.
Will let you know incase I face the same issue again here.

Regards,
Suresh.

On Thursday, 25 July 2019 06:44:27 UTC+5:30, Christian Hammond wrote:
>
> It might be something we can work around (though Python 2.7.5 *is* very 
> old and buggy -- I agree that you'll want to upgrade it to avoid a 
> multitude of problems they've fixed in subsequent releases).
>
> Suresh, can you supply the full backtrace? I need to see what the call is 
> that's triggering this.
>
> Christian
>
> On Tue, Jul 23, 2019 at 12:49 PM David Trowbridge  > wrote:
>
>> Something is messed up with your Python and/or openssl. This isn't a 
>> Review Board issue.
>>
>> Python 2.7.5 is quite old (over 6 years). I highly recommend upgrading to 
>> the latest 2.7.x if you can.
>>
>> -David
>>
>> On Tue, Jul 23, 2019 at 10:16 AM Suresh Burra > > wrote:
>>
>>> Hi,
>>>
>>> I am trying to add a Perforce repository and am getting the following 
>>> trace when adding a password, using both ticket and password authentication.
>>> Anything I am missing here ? Thanks in Advance for the help.
>>>
>>> Regards,
>>> Suresh.
>>>
>>>
>>> TypeError at /mscrb/admin/db/scmtools/repository/2/ 
>>>
>>> from_buffer() cannot return the address of the raw string within a str or 
>>> unicode or bytearray object
>>>
>>> Request Method: POST 
>>> Request URL: http://surb604.na.com/mscrb/admin/db/scmtools/repository/2/ 
>>> Django Version: 1.6.11 
>>> Exception Type: TypeError 
>>> Exception Value: 
>>>
>>> from_buffer() cannot return the address of the raw string within a str or 
>>> unicode or bytearray object
>>>
>>> Exception Location: 
>>> /usr/lib64/python2.7/site-packages/cryptography/hazmat/backends/openssl/ciphers.py
>>>  
>>> in __init__, line 62 
>>> Python Executable: /usr/local/bin/python 
>>> Python Version: 2.7.5 
>>> Python Path: 
>>>
>>> ['/var/www/mscrb/conf',
>>>  '/usr/lib/python2.7/site-packages/ReviewBoard-3.0.15-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/rbintegrations-1.0-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/pymdown_extensions-3.5-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/paramiko-2.6.0-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/mimeparse-0.1.3-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/Markdown-2.6.11-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/django_multiselectfield-0.1.8-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/django_haystack-2.4.1-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/django_cors_headers-1.1.0-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/Whoosh-2.7.4-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/Djblets-1.0.12-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/Django-1.6.11-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/asana-0.8.2-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/bcrypt-3.1.7-py2.7-linux-x86_64.egg',
>>>  '/usr/lib/python2.7/site-packages/dnspython-1.16.0-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/requests-2.22.0-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/requests_oauthlib-0.8.0-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/certifi-2019.6.16-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/urllib3-1.25.3-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/idna-2.8-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/chardet-3.0.4-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages',
>>>  '/usr/lib64/python2.7/site-packages',
>>>  '/usr/lib64/python27.zip',
>>>  '/usr/lib64/python2.7',
>>>  '/usr/lib64/python2.7/plat-linux2',
>>>  '/usr/lib64/python2.7/lib-tk',
>>>  '/usr/lib64/python2.7/lib-old',
>>>  '/usr/lib64/python2.7/lib-dynload',
>>>  '/usr/lib64/python2.7/site-packages/gtk-2.0',
>>>  '/usr/lib/python2.7/site-packages/pip-19.1.1-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/django_pipeline-1.3.23-py2.7.egg',
>>>  '/usr/lib/python2.7/site-packages/mysql-0.0.2-py2.7.egg']
>>>
>>> -- 
>>> 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/ff7b21cb-68f5-4983-bf7d-0c1c86197f31%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out 

Re: ReviewBoard throws trace when trying to add a Perforce repository

2019-07-24 Thread Christian Hammond
It might be something we can work around (though Python 2.7.5 *is* very old
and buggy -- I agree that you'll want to upgrade it to avoid a multitude of
problems they've fixed in subsequent releases).

Suresh, can you supply the full backtrace? I need to see what the call is
that's triggering this.

Christian

On Tue, Jul 23, 2019 at 12:49 PM David Trowbridge 
wrote:

> Something is messed up with your Python and/or openssl. This isn't a
> Review Board issue.
>
> Python 2.7.5 is quite old (over 6 years). I highly recommend upgrading to
> the latest 2.7.x if you can.
>
> -David
>
> On Tue, Jul 23, 2019 at 10:16 AM Suresh Burra 
> wrote:
>
>> Hi,
>>
>> I am trying to add a Perforce repository and am getting the following
>> trace when adding a password, using both ticket and password authentication.
>> Anything I am missing here ? Thanks in Advance for the help.
>>
>> Regards,
>> Suresh.
>>
>>
>> TypeError at /mscrb/admin/db/scmtools/repository/2/
>>
>> from_buffer() cannot return the address of the raw string within a str or 
>> unicode or bytearray object
>>
>> Request Method: POST
>> Request URL: http://surb604.na.com/mscrb/admin/db/scmtools/repository/2/
>> Django Version: 1.6.11
>> Exception Type: TypeError
>> Exception Value:
>>
>> from_buffer() cannot return the address of the raw string within a str or 
>> unicode or bytearray object
>>
>> Exception Location: 
>> /usr/lib64/python2.7/site-packages/cryptography/hazmat/backends/openssl/ciphers.py
>> in __init__, line 62
>> Python Executable: /usr/local/bin/python
>> Python Version: 2.7.5
>> Python Path:
>>
>> ['/var/www/mscrb/conf',
>>  '/usr/lib/python2.7/site-packages/ReviewBoard-3.0.15-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/rbintegrations-1.0-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/pymdown_extensions-3.5-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/paramiko-2.6.0-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/mimeparse-0.1.3-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/Markdown-2.6.11-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/django_multiselectfield-0.1.8-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/django_haystack-2.4.1-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/django_cors_headers-1.1.0-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/Whoosh-2.7.4-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/Djblets-1.0.12-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/Django-1.6.11-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/asana-0.8.2-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/bcrypt-3.1.7-py2.7-linux-x86_64.egg',
>>  '/usr/lib/python2.7/site-packages/dnspython-1.16.0-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/requests-2.22.0-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/requests_oauthlib-0.8.0-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/certifi-2019.6.16-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/urllib3-1.25.3-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/idna-2.8-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/chardet-3.0.4-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages',
>>  '/usr/lib64/python2.7/site-packages',
>>  '/usr/lib64/python27.zip',
>>  '/usr/lib64/python2.7',
>>  '/usr/lib64/python2.7/plat-linux2',
>>  '/usr/lib64/python2.7/lib-tk',
>>  '/usr/lib64/python2.7/lib-old',
>>  '/usr/lib64/python2.7/lib-dynload',
>>  '/usr/lib64/python2.7/site-packages/gtk-2.0',
>>  '/usr/lib/python2.7/site-packages/pip-19.1.1-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/django_pipeline-1.3.23-py2.7.egg',
>>  '/usr/lib/python2.7/site-packages/mysql-0.0.2-py2.7.egg']
>>
>> --
>> 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/ff7b21cb-68f5-4983-bf7d-0c1c86197f31%40googlegroups.com
>> 
>> .
>>
> --
> 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
> 

Re: ReviewBoard throws trace when trying to add a Perforce repository

2019-07-23 Thread David Trowbridge
Something is messed up with your Python and/or openssl. This isn't a Review
Board issue.

Python 2.7.5 is quite old (over 6 years). I highly recommend upgrading to
the latest 2.7.x if you can.

-David

On Tue, Jul 23, 2019 at 10:16 AM Suresh Burra 
wrote:

> Hi,
>
> I am trying to add a Perforce repository and am getting the following
> trace when adding a password, using both ticket and password authentication.
> Anything I am missing here ? Thanks in Advance for the help.
>
> Regards,
> Suresh.
>
>
> TypeError at /mscrb/admin/db/scmtools/repository/2/
>
> from_buffer() cannot return the address of the raw string within a str or 
> unicode or bytearray object
>
> Request Method: POST
> Request URL: http://surb604.na.com/mscrb/admin/db/scmtools/repository/2/
> Django Version: 1.6.11
> Exception Type: TypeError
> Exception Value:
>
> from_buffer() cannot return the address of the raw string within a str or 
> unicode or bytearray object
>
> Exception Location: 
> /usr/lib64/python2.7/site-packages/cryptography/hazmat/backends/openssl/ciphers.py
> in __init__, line 62
> Python Executable: /usr/local/bin/python
> Python Version: 2.7.5
> Python Path:
>
> ['/var/www/mscrb/conf',
>  '/usr/lib/python2.7/site-packages/ReviewBoard-3.0.15-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/rbintegrations-1.0-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/pymdown_extensions-3.5-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/paramiko-2.6.0-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/mimeparse-0.1.3-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/Markdown-2.6.11-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/django_multiselectfield-0.1.8-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/django_haystack-2.4.1-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/django_cors_headers-1.1.0-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/Whoosh-2.7.4-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/Djblets-1.0.12-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/Django-1.6.11-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/asana-0.8.2-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/bcrypt-3.1.7-py2.7-linux-x86_64.egg',
>  '/usr/lib/python2.7/site-packages/dnspython-1.16.0-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/requests-2.22.0-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/requests_oauthlib-0.8.0-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/certifi-2019.6.16-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/urllib3-1.25.3-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/idna-2.8-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/chardet-3.0.4-py2.7.egg',
>  '/usr/lib/python2.7/site-packages',
>  '/usr/lib64/python2.7/site-packages',
>  '/usr/lib64/python27.zip',
>  '/usr/lib64/python2.7',
>  '/usr/lib64/python2.7/plat-linux2',
>  '/usr/lib64/python2.7/lib-tk',
>  '/usr/lib64/python2.7/lib-old',
>  '/usr/lib64/python2.7/lib-dynload',
>  '/usr/lib64/python2.7/site-packages/gtk-2.0',
>  '/usr/lib/python2.7/site-packages/pip-19.1.1-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/django_pipeline-1.3.23-py2.7.egg',
>  '/usr/lib/python2.7/site-packages/mysql-0.0.2-py2.7.egg']
>
> --
> 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/ff7b21cb-68f5-4983-bf7d-0c1c86197f31%40googlegroups.com
> 
> .
>

-- 
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/CAFS3VNUwT5SXShzzjXmuji597pV_pdjpV7r5r_Kp64q3%2BO8Pxw%40mail.gmail.com.