Re: Review Board timeout / throw exception randomly while doing normal operation.

2016-12-19 Thread kapil chauhan
Hi Christian,

Thanks for your reply .Here are requested details 

1) Server info: Red Hat Enterprise Linux Server release 6.4
2)repository type : git 
3)OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013




reviewboard site conf (apache-wsgi.conf) : 



ServerName servername.example.com
DocumentRoot "/var/www/<>/htdocs"

# Error handlers
ErrorDocument 500 /errordocs/500.html

WSGIPassAuthorization On
WSGIScriptAlias "/" 
"/var/www/servername.example.com/htdocs/reviewboard.wsgi/"


AllowOverride All
Options -Indexes +FollowSymLinks
Allow from all


# Prevent the server from processing or allowing the rendering of
# certain file types.

SetHandler None
Options None

AddType text/plain .html .htm .shtml .php .php3 .php4 .php5 .phps .asp
AddType text/plain .pl .py .fcgi .cgi .phtml .phtm .pht .jsp .sh .rb


php_flag engine off



# Alias static media requests to filesystem
Alias /media "/var/www/servername.example.com/htdocs/media"
Alias /static "/var/www/servername.example.com/htdocs/static"
Alias /errordocs "/var/www/servername.example.com/htdocs/errordocs"
Alias /favicon.ico 
"/var/www/servername.example.com/htdocs/static/rb/images/favicon.png"








On Monday, 19 December 2016 17:38:08 UTC+5:30, Christian Hammond wrote:
>
> Hi,
>
> What type of repository are you using? This is generally due to a timeout 
> or communication issue with that repository. The OpenSSL errors are pretty 
> interesting though... I've never seen those before.
>
> Can you tell me more about the server? Distro and version, OpenSSL 
> version, and type of repository would be helpful.
>
> I'd also like to see the Apache setup for Review Board, as that could shed 
> some light as well.
>
> Thanks,
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Mon, Dec 19, 2016 at 1:49 AM, kapil chauhan  > wrote:
>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Hi Team,
>>
>> I am running ReviewBoard site ( Version 2.5.6.1) while doing normal 
>> operation it is throwing couple of weird below error.
>>
>>
>> 
>> Error 1 : 
>> 
>> InternalError at /admin/db/scmtools/repository/12/
>> Unknown OpenSSL error. This error is commonly encountered when another 
>> library is not cleaning up the OpenSSL error stack. If you are using 
>> cryptography with another library that uses OpenSSL try disabling it before 
>> reporting a bug. Otherwise please file an issue at 
>> https://github.com/pyca/cryptography/issues with information on how to 
>> reproduce this. ([_OpenSSLErrorWithText(code=151441516L, lib=9, func=109, 
>> reason=108, reason_text='error:0906D06C:PEM routines:PEM_read_bio:no start 
>> line'), _OpenSSLErrorWithText(code=151441516L, lib=9, func=109, reason=108, 
>> reason_text='error:0906D06C:PEM routines:PEM_read_bio:no start line')])
>> Request Method: GET
>> Request URL: 
>> http://reviewboard-site-name.com/admin/db/scmtools/repository/121/
>> Django Version: 1.6.11
>> Exception Type: InternalError
>> Exception Value: 
>> Unknown OpenSSL error. This error is commonly encountered when another 
>> library is not cleaning up the OpenSSL error stack. If you are using 
>> cryptography with another library that uses OpenSSL try disabling it before 
>> reporting a bug. Otherwise please file an issue at 
>> https://github.com/pyca/cryptography/issues with information on how to 
>> reproduce this. ([_OpenSSLErrorWithText(code=151441516L, lib=9, func=109, 
>> reason=108, reason_text='error:0906D06C:PEM routines:PEM_read_bio:no start 
>> line'), _OpenSSLErrorWithText(code=151441516L, lib=9, func=109, reason=108, 
>> reason_text='error:0906D06C:PEM routines:PEM_read_bio:no start line')])
>> Exception Location: 
>> /usr/lib64/python2.6/site-packages/cryptography/hazmat/bindings/openssl/binding.py
>>  
>> in _openssl_assert, line 62
>> Python Executable: /usr/bin/python
>> Python Version: 2.6.6
>> Python Path: 
>> ['/var/www/sample.example.com/conf',
>>  '/usr/lib/python2.6/site-packages/ReviewBoard-2.5.6.1-py2.6.egg',
>>  '/usr/lib/python2.6/site-packages/Whoosh-2.7.4-py2.6.egg',
>>  '/usr/lib/python2.6/site-packages/python_dateutil-1.5-py2.6.egg',
>>  '/usr/lib/python2.6/site-packages/Pygments-2.1.3-py2.6.egg',
>>  '/usr/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg',
>>  '/usr/lib/python2.6/site-packages/paramiko-2.0.2-py2.6.egg',
>>  '/usr/lib/python2.6/site-packages/mimeparse-0.1.3-py2.6.egg',
>>  '/usr/lib/python2.6/site-packages/Markdown-2.4.1-py2.6.egg',
>>  '/usr/lib/python2.6/site-packages/Djblets-0.9.3-py2.6.egg',
>>
>>  '/usr/lib/python2.6/site-packages/django_multiselectfield-0.1.4-py2.6.egg',
>>  '/usr/lib/python2.6/site-packages/django_haystack-2.4.1-py2.6.egg',
>>  '/usr/lib/python2.6/site-packages/django_evolution-0.7.6-py2.6.egg',
>>  '/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg',
>>  '/usr/lib/python2.6/site-pack

Re: A weird unicode puzzle after upgrade from 2.0.20 to 2.5.4

2016-12-19 Thread Christian Hammond
Hi,

Sorry you're hitting this too. To confirm, did the actual database upgrade
itself complete without errors, once the table type and such were adjusted?

Can you show me the full error information?

Thanks,

Christian


On Mon, Dec 19, 2016 at 15:23 Koushik Roy  wrote:


Christian,
  I too, have faced this problem while upgrading from 2.0.21 to 2.5.7
  The 'invalid utf8 character' may be only a symptom of the problem.
  My only guess is around the following -
- the database was using 'latin1' as default charset, RB 2.5.x expects
'utf8'. So some mismatch/warning results.
- the database was using 'MyISAM' with which the evolution fails; one
has to change the engine to 'InnoDB' before evolution.
  If you want a sample diff, I can possibly produce it - let me know how,
please give me step by step instructions.

  Bottomline, this upgrade has not yet been successful for me.
  Any help is appreciated.
  Thanks

Koushik Roy.









-- 


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
"reviewboard" 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 
"reviewboard" 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: A weird unicode puzzle after upgrade from 2.0.20 to 2.5.4

2016-12-19 Thread Koushik Roy

Christian,
  I too, have faced this problem while upgrading from 2.0.21 to 2.5.7
  The 'invalid utf8 character' may be only a symptom of the problem.
  My only guess is around the following -
- the database was using 'latin1' as default charset, RB 2.5.x expects 
'utf8'. So some mismatch/warning results.
- the database was using 'MyISAM' with which the evolution fails; one 
has to change the engine to 'InnoDB' before evolution.
  If you want a sample diff, I can possibly produce it - let me know how, 
please give me step by step instructions.

  Bottomline, this upgrade has not yet been successful for me.
  Any help is appreciated.
  Thanks

Koushik Roy.

-- 
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 
"reviewboard" 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: rbt post of a new file added to Mercurial causes blank files to be added to the diff.

2016-12-19 Thread Christian Hammond
Hi John,

What version of RBTools and Review Board are you using? Can you show a full
debug log (using --debug)?

Along with that, can you run the following and attach the file:

rbt diff --debug > rbt-diff.log 2>&1

Thanks,

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Mon, Dec 19, 2016 at 2:10 PM, John  wrote:

> We are using mercurial in our environment and for some reason we are
> seeing a number of __init__.py (blank files for module inclusion in python)
> are being added to our diff file.  Here is the process we used to reproduce
> the issue:
>
> 1. Clone a branch in the repo.
> 2. create a new file with some text in it (i.e. mytestfile.py).
> 3. Add a new file in the repo with "hg add mytestfile.py"
> 4. hg commit -m "This is a test" ./mytestfile.py
> 5. rbt post
>
>
> Here is what the diff of the new file looks like with a simple "hg diff"
> before running commit:
>
> diff --git a/python/tools/mytestfile.py b/python/tools/mytestfile.py
> new file mode 100644
> --- /dev/null
> +++ b/python/mytestfile.py
> @@ -0,0 +1,1 @@
> +print "This is a test"
>
> Attached please find the diff that was downloaded from Review Board.
>
> What you'll find is that the diff for the new file that was added does
> make it up there but for some reason ~50+ __init__.py files are also
> removed and then added to the diff.  It causes the review request to look
> very messy.  The diff file I added was downloaded directly from review
> board and then I snipped the end of it so the file wouldn't be too large.
>
> --
> 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
> "reviewboard" 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 
"reviewboard" 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.


rbt post of a new file added to Mercurial causes blank files to be added to the diff.

2016-12-19 Thread John
We are using mercurial in our environment and for some reason we are seeing 
a number of __init__.py (blank files for module inclusion in python) are 
being added to our diff file.  Here is the process we used to reproduce the 
issue:

1. Clone a branch in the repo.
2. create a new file with some text in it (i.e. mytestfile.py).
3. Add a new file in the repo with "hg add mytestfile.py"
4. hg commit -m "This is a test" ./mytestfile.py
5. rbt post


Here is what the diff of the new file looks like with a simple "hg diff" 
before running commit:

diff --git a/python/tools/mytestfile.py b/python/tools/mytestfile.py
new file mode 100644
--- /dev/null
+++ b/python/mytestfile.py
@@ -0,0 +1,1 @@
+print "This is a test"

Attached please find the diff that was downloaded from Review Board.  

What you'll find is that the diff for the new file that was added does make 
it up there but for some reason ~50+ __init__.py files are also removed and 
then added to the diff.  It causes the review request to look very messy. 
 The diff file I added was downloaded directly from review board and then I 
snipped the end of it so the file wouldn't be too large.  

-- 
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 
"reviewboard" 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.
diff --git a/python/tools/mytestfile.py b/python/tools/mytestfile.py
new file mode 100644
--- /dev/null
+++ b/python/tools/mytestfile.py
@@ -0,0 +1,1 @@
+print "This is a test"
diff -r 74840703b2fc -r 91ae1954c259 ../../nmc_ui/test/management/commands/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../../nmc_ui/test/management/commands/__init__.py	Mon Dec 19 16:57:17 2016 -0500
diff -r 74840703b2fc -r 91ae1954c259 ../../gui/apps/config/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../../gui/apps/config/__init__.py	Mon Dec 19 16:57:17 2016 -0500
diff -r 74840703b2fc -r 91ae1954c259 ../../nmc_ui/apps/config/accounts/management/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../../nmc_ui/apps/config/accounts/management/__init__.py	Mon Dec 19 16:57:17 2016 -0500
diff -r 74840703b2fc -r 91ae1954c259 ../nasuni_test/ui/accounts/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../nasuni_test/ui/accounts/__init__.py	Mon Dec 19 16:57:17 2016 -0500
diff -r 74840703b2fc -r 91ae1954c259 ../../gui/apps/nfs/templatetags/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../../gui/apps/nfs/templatetags/__init__.py	Mon Dec 19 16:57:17 2016 -0500
diff -r 74840703b2fc -r 91ae1954c259 ../../gui/apps/certs/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../../gui/apps/certs/__init__.py	Mon Dec 19 16:57:17 2016 -0500
diff -r 74840703b2fc -r 91ae1954c259 ../nasuni_test/config/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../nasuni_test/config/__init__.py	Mon Dec 19 16:57:17 2016 -0500
diff -r 74840703b2fc -r 91ae1954c259 ../tests/ui/website/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../tests/ui/website/__init__.py	Mon Dec 19 16:57:17 2016 -0500
diff -r 74840703b2fc -r 91ae1954c259 ../tests/feature/snmp/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../tests/feature/snmp/__init__.py	Mon Dec 19 16:57:17 2016 -0500
diff -r 74840703b2fc -r 91ae1954c259 ../../gui/apps/events/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../../gui/apps/events/__init__.py	Mon Dec 19 16:57:17 2016 -0500
diff -r 74840703b2fc -r 91ae1954c259 ../nasuni/gui_common/accountsbase/templatetags/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../nasuni/gui_common/accountsbase/templatetags/__init__.py	Mon Dec 19 16:57:17 2016 -0500
diff -r 74840703b2fc -r 91ae1954c259 ../../gui/apps/ftp/migrations/__init__.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +
+++ b/../../gui/apps/ftp/migrations/__init__.py	Mon Dec 19 16:57:17 2016 -0500

…This goes on for a while finding all the __init__.py files in our repository but don’t want to list them all here.

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3078: ordinal not in range(128)

2016-12-19 Thread Christian Hammond
Hi,

What version of Review Board are you using?

Christian


On Mon, Dec 19, 2016 at 07:00  wrote:

> Hi!
>
> After trying out reviewboard we struggle to be able to post a review via
> the web interface on base of a commit. The error in the server log is the
> following:
>
> 2016-12-19 14:24:08,215 - DEBUG -  - Logging to
> /var/www//logs/reviewboard.log with a minimum level of DEBUG
> 2016-12-19 14:24:08,571 - ERROR -  - Unable to update new review request
> from commit ID de32e07abc2f2152eea5b7b1b43cb66002146143: 'ascii' codec
> can't decode byte 0xe2 in position 3078: ordinal not in range(128)
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/reviewboard/reviews/managers.py",
> line 150, in create
> review_request.update_from_commit_id(commit_id)
>   File
> "/usr/local/lib/python2.7/dist-packages/reviewboard/reviews/models/base_review_request_details.py",
> line 221, in update_from_commit_id
> self.update_from_committed_change(commit_id)
>   File
> "/usr/local/lib/python2.7/dist-packages/reviewboard/reviews/models/base_review_request_details.py",
> line 278, in update_from_committed_change
> diff_file_contents=commit.diff.encode('utf-8'),
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3078:
> ordinal not in range(128)
>
> We use Gitlab, please let me know if I am able to provide you with any
> more information.
>
> Kind regards,
>
> Christiaan
>
>
>
>
>
>
>
>
> --
>
>
> 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
> "reviewboard" 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 
"reviewboard" 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: Depends-On, Blocks and Circular Reference

2016-12-19 Thread David Trowbridge
This bug is fixed in 2.0.21.

-David

On Mon, Dec 19, 2016 at 8:55 AM Philip Sanders 
wrote:

> I think I just hit this issue with the same release too.  Is there any way
> to get out of this situation other than creating an entire new review?
>
>
> On Friday, July 3, 2015 at 3:54:30 PM UTC-5, David Trowbridge wrote:
>
> Dan,
>
> This is something that used to work correctly, but obviously something has
> regressed. I'd actually run into this just a couple days ago, so I'll take
> a look soon.
>
> -David
>
> On Thu, Jul 2, 2015 at 6:01 AM, Daniel Laird 
> wrote:
>
> WE are running 2.0.17 and have managed to create a situation and dont know
> how to resolve it - or whether its a defect
>
> Someone created 2 reviews with code changes that were dependent.
> They marked Review 2 as Depends On Review 1 -  this then updated the
> 'Blocks' field.
> They then marked Review 1 as Depends On Review 2 - as they felt that both
> reviews had to be committed together.
>
> However the server then starts to give us lots of errors:
> Traceback (most recent call last):
>
>   File
> "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/core/handlers/base.py",
> line 199, in get_response
> response = middleware_method(request, response)
>
>   File
> "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/middleware/http.py",
> line 14, in process_response
> response['Content-Length'] = str(len(response.content))
>
>   File
> "/usr/local/lib/python2.7/dist-packages/Djblets-0.8.20-py2.7.egg/djblets/webapi/responses.py",
> line 109, in _get_content
> **self.encoder_kwargs)
>
>   File
> "/usr/local/lib/python2.7/dist-packages/Djblets-0.8.20-py2.7.egg/djblets/webapi/encoders.py",
> line 110, in encode
> return super(JSONEncoderAdapter, self).encode(o)
>
>   File "/usr/lib/python2.7/json/encoder.py", line 201, in encode
> chunks = self.iterencode(o, _one_shot=True)
>
>   File "/usr/lib/python2.7/json/encoder.py", line 264, in iterencode
> return _iterencode(o, 0)
>
> ValueError: Circular reference detected
>
> It maybe that the double linking is incorrect usage - however having been
> able to get into that situation.  If we try to remove one of the 'Blocks'
> fields we just get a spinning 'Loading' icon and are unable to move past
> this to remove the Circular Reference.
>
> Not sure if you think this is user error, a defect or a combination of
> both - but thought I would share it.
>
> Cheers
> Dan
>
> --
> 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
> "reviewboard" 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
> "reviewboard" 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 
"reviewboard" 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: Depends-On, Blocks and Circular Reference

2016-12-19 Thread Philip Sanders
I think I just hit this issue with the same release too.  Is there any way 
to get out of this situation other than creating an entire new review?

On Friday, July 3, 2015 at 3:54:30 PM UTC-5, David Trowbridge wrote:
>
> Dan,
>
> This is something that used to work correctly, but obviously something has 
> regressed. I'd actually run into this just a couple days ago, so I'll take 
> a look soon.
>
> -David
>
> On Thu, Jul 2, 2015 at 6:01 AM, Daniel Laird  > wrote:
>
>> WE are running 2.0.17 and have managed to create a situation and dont 
>> know how to resolve it - or whether its a defect
>>
>> Someone created 2 reviews with code changes that were dependent.
>> They marked Review 2 as Depends On Review 1 -  this then updated the 
>> 'Blocks' field.
>> They then marked Review 1 as Depends On Review 2 - as they felt that both 
>> reviews had to be committed together.
>>
>> However the server then starts to give us lots of errors:
>> Traceback (most recent call last):
>>
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/core/handlers/base.py",
>>  
>> line 199, in get_response
>> response = middleware_method(request, response)
>>
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/middleware/http.py",
>>  
>> line 14, in process_response
>> response['Content-Length'] = str(len(response.content))
>>
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/Djblets-0.8.20-py2.7.egg/djblets/webapi/responses.py",
>>  
>> line 109, in _get_content
>> **self.encoder_kwargs)
>>
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/Djblets-0.8.20-py2.7.egg/djblets/webapi/encoders.py",
>>  
>> line 110, in encode
>> return super(JSONEncoderAdapter, self).encode(o)
>>
>>   File "/usr/lib/python2.7/json/encoder.py", line 201, in encode
>> chunks = self.iterencode(o, _one_shot=True)
>>
>>   File "/usr/lib/python2.7/json/encoder.py", line 264, in iterencode
>> return _iterencode(o, 0)
>>
>> ValueError: Circular reference detected
>>
>> It maybe that the double linking is incorrect usage - however having been 
>> able to get into that situation.  If we try to remove one of the 'Blocks' 
>> fields we just get a spinning 'Loading' icon and are unable to move past 
>> this to remove the Circular Reference.
>>
>> Not sure if you think this is user error, a defect or a combination of 
>> both - but thought I would share it.
>>
>> Cheers
>> Dan
>>
>> -- 
>> 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 
>> "reviewboard" 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 
"reviewboard" 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.


UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3078: ordinal not in range(128)

2016-12-19 Thread christiaan
Hi!

After trying out reviewboard we struggle to be able to post a review via 
the web interface on base of a commit. The error in the server log is the 
following:

2016-12-19 14:24:08,215 - DEBUG -  - Logging to 
/var/www//logs/reviewboard.log with a minimum level of DEBUG
2016-12-19 14:24:08,571 - ERROR -  - Unable to update new review request 
from commit ID de32e07abc2f2152eea5b7b1b43cb66002146143: 'ascii' codec 
can't decode byte 0xe2 in position 3078: ordinal not in range(128)
Traceback (most recent call last):
  File 
"/usr/local/lib/python2.7/dist-packages/reviewboard/reviews/managers.py", 
line 150, in create
review_request.update_from_commit_id(commit_id)
  File 
"/usr/local/lib/python2.7/dist-packages/reviewboard/reviews/models/base_review_request_details.py",
 
line 221, in update_from_commit_id
self.update_from_committed_change(commit_id)
  File 
"/usr/local/lib/python2.7/dist-packages/reviewboard/reviews/models/base_review_request_details.py",
 
line 278, in update_from_committed_change
diff_file_contents=commit.diff.encode('utf-8'),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3078: 
ordinal not in range(128)

We use Gitlab, please let me know if I am able to provide you with any more 
information.

Kind regards,

Christiaan

-- 
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 
"reviewboard" 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: Review Board timeout / throw exception randomly while doing normal operation.

2016-12-19 Thread Christian Hammond
Hi,

What type of repository are you using? This is generally due to a timeout
or communication issue with that repository. The OpenSSL errors are pretty
interesting though... I've never seen those before.

Can you tell me more about the server? Distro and version, OpenSSL version,
and type of repository would be helpful.

I'd also like to see the Apache setup for Review Board, as that could shed
some light as well.

Thanks,

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Mon, Dec 19, 2016 at 1:49 AM, kapil chauhan  wrote:

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi Team,
>
> I am running ReviewBoard site ( Version 2.5.6.1) while doing normal
> operation it is throwing couple of weird below error.
>
>
> 
> Error 1 :
> 
> InternalError at /admin/db/scmtools/repository/12/
> Unknown OpenSSL error. This error is commonly encountered when another
> library is not cleaning up the OpenSSL error stack. If you are using
> cryptography with another library that uses OpenSSL try disabling it before
> reporting a bug. Otherwise please file an issue at
> https://github.com/pyca/cryptography/issues with information on how to
> reproduce this. ([_OpenSSLErrorWithText(code=151441516L, lib=9, func=109,
> reason=108, reason_text='error:0906D06C:PEM routines:PEM_read_bio:no
> start line'), _OpenSSLErrorWithText(code=151441516L, lib=9, func=109,
> reason=108, reason_text='error:0906D06C:PEM routines:PEM_read_bio:no
> start line')])
> Request Method: GET
> Request URL: http://reviewboard-site-name.com/admin/db/scmtools/
> repository/121/
> Django Version: 1.6.11
> Exception Type: InternalError
> Exception Value:
> Unknown OpenSSL error. This error is commonly encountered when another
> library is not cleaning up the OpenSSL error stack. If you are using
> cryptography with another library that uses OpenSSL try disabling it before
> reporting a bug. Otherwise please file an issue at
> https://github.com/pyca/cryptography/issues with information on how to
> reproduce this. ([_OpenSSLErrorWithText(code=151441516L, lib=9, func=109,
> reason=108, reason_text='error:0906D06C:PEM routines:PEM_read_bio:no
> start line'), _OpenSSLErrorWithText(code=151441516L, lib=9, func=109,
> reason=108, reason_text='error:0906D06C:PEM routines:PEM_read_bio:no
> start line')])
> Exception Location: /usr/lib64/python2.6/site-
> packages/cryptography/hazmat/bindings/openssl/binding.py in
> _openssl_assert, line 62
> Python Executable: /usr/bin/python
> Python Version: 2.6.6
> Python Path:
> ['/var/www/sample.example.com/conf',
>  '/usr/lib/python2.6/site-packages/ReviewBoard-2.5.6.1-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/Whoosh-2.7.4-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/python_dateutil-1.5-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/Pygments-2.1.3-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg',
>  '/usr/lib/python2.6/site-packages/paramiko-2.0.2-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/mimeparse-0.1.3-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/Markdown-2.4.1-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/Djblets-0.9.3-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/django_multiselectfield-0.1.4-py2.6.
> egg',
>  '/usr/lib/python2.6/site-packages/django_haystack-2.4.1-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/django_evolution-0.7.6-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/pyasn1-0.1.9-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/pillowfight-0.2-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/django_pipeline-1.3.27-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/futures-3.0.5-py2.6.egg',
>  '/usr/lib/python2.6/site-packages',
>  '/usr/lib64/python2.6/site-packages',
>  '/usr/lib64/python2.6/site-packages/PIL',
>  '/usr/lib64/python26.zip',
>  '/usr/lib64/python2.6',
>  '/usr/lib64/python2.6/plat-linux2',
>  '/usr/lib64/python2.6/lib-tk',
>  '/usr/lib64/python2.6/lib-old',
>  '/usr/lib64/python2.6/lib-dynload',
>  '/usr/lib64/python2.6/site-packages/gst-0.10',
>  '/usr/lib64/python2.6/site-packages/gtk-2.0',
>  '/usr/lib64/python2.6/site-packages/webkit-1.0',
>  '/usr/lib/python2.6/site-packages/pip-8.1.2-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/threadpool-1.3.2-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/requests-2.12.3-py2.6.egg',
>  '/usr/lib/python2.6/site-packages/gtk-2.0']
> Http Logs:
>
>
> <> - - [19/Dec/2016:09:42:20 +] "GET
> /admin/db/scmtools/repository/64/ HTTP/1.1" 500 31481 "
> http://review-boardsite-name.com/admin/db/scmtools/repository/";
> "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
>
> Mon, 19 Dec 2016 09:39:37 +
>
>
> Error 2 :  Page gets timeout with below error on web browser.
>
> The connection was reset
> The connection to the server was reset while the page was loading.
>
> The site could be temporarily unav

Review Board timeout / throw exception randomly while doing normal operation.

2016-12-19 Thread kapil chauhan






















Hi Team,

I am running ReviewBoard site ( Version 2.5.6.1) while doing normal 
operation it is throwing couple of weird below error.



Error 1 : 

InternalError at /admin/db/scmtools/repository/12/
Unknown OpenSSL error. This error is commonly encountered when another 
library is not cleaning up the OpenSSL error stack. If you are using 
cryptography with another library that uses OpenSSL try disabling it before 
reporting a bug. Otherwise please file an issue at 
https://github.com/pyca/cryptography/issues with information on how to 
reproduce this. ([_OpenSSLErrorWithText(code=151441516L, lib=9, func=109, 
reason=108, reason_text='error:0906D06C:PEM routines:PEM_read_bio:no start 
line'), _OpenSSLErrorWithText(code=151441516L, lib=9, func=109, reason=108, 
reason_text='error:0906D06C:PEM routines:PEM_read_bio:no start line')])
Request Method: GET
Request URL: 
http://reviewboard-site-name.com/admin/db/scmtools/repository/121/
Django Version: 1.6.11
Exception Type: InternalError
Exception Value: 
Unknown OpenSSL error. This error is commonly encountered when another 
library is not cleaning up the OpenSSL error stack. If you are using 
cryptography with another library that uses OpenSSL try disabling it before 
reporting a bug. Otherwise please file an issue at 
https://github.com/pyca/cryptography/issues with information on how to 
reproduce this. ([_OpenSSLErrorWithText(code=151441516L, lib=9, func=109, 
reason=108, reason_text='error:0906D06C:PEM routines:PEM_read_bio:no start 
line'), _OpenSSLErrorWithText(code=151441516L, lib=9, func=109, reason=108, 
reason_text='error:0906D06C:PEM routines:PEM_read_bio:no start line')])
Exception Location: 
/usr/lib64/python2.6/site-packages/cryptography/hazmat/bindings/openssl/binding.py
 
in _openssl_assert, line 62
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path: 
['/var/www/sample.example.com/conf',
 '/usr/lib/python2.6/site-packages/ReviewBoard-2.5.6.1-py2.6.egg',
 '/usr/lib/python2.6/site-packages/Whoosh-2.7.4-py2.6.egg',
 '/usr/lib/python2.6/site-packages/python_dateutil-1.5-py2.6.egg',
 '/usr/lib/python2.6/site-packages/Pygments-2.1.3-py2.6.egg',
 '/usr/lib/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg',
 '/usr/lib/python2.6/site-packages/paramiko-2.0.2-py2.6.egg',
 '/usr/lib/python2.6/site-packages/mimeparse-0.1.3-py2.6.egg',
 '/usr/lib/python2.6/site-packages/Markdown-2.4.1-py2.6.egg',
 '/usr/lib/python2.6/site-packages/Djblets-0.9.3-py2.6.egg',
 '/usr/lib/python2.6/site-packages/django_multiselectfield-0.1.4-py2.6.egg',
 '/usr/lib/python2.6/site-packages/django_haystack-2.4.1-py2.6.egg',
 '/usr/lib/python2.6/site-packages/django_evolution-0.7.6-py2.6.egg',
 '/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg',
 '/usr/lib/python2.6/site-packages/pyasn1-0.1.9-py2.6.egg',
 '/usr/lib/python2.6/site-packages/pillowfight-0.2-py2.6.egg',
 '/usr/lib/python2.6/site-packages/django_pipeline-1.3.27-py2.6.egg',
 '/usr/lib/python2.6/site-packages/futures-3.0.5-py2.6.egg',
 '/usr/lib/python2.6/site-packages',
 '/usr/lib64/python2.6/site-packages',
 '/usr/lib64/python2.6/site-packages/PIL',
 '/usr/lib64/python26.zip',
 '/usr/lib64/python2.6',
 '/usr/lib64/python2.6/plat-linux2',
 '/usr/lib64/python2.6/lib-tk',
 '/usr/lib64/python2.6/lib-old',
 '/usr/lib64/python2.6/lib-dynload',
 '/usr/lib64/python2.6/site-packages/gst-0.10',
 '/usr/lib64/python2.6/site-packages/gtk-2.0',
 '/usr/lib64/python2.6/site-packages/webkit-1.0',
 '/usr/lib/python2.6/site-packages/pip-8.1.2-py2.6.egg',
 '/usr/lib/python2.6/site-packages/threadpool-1.3.2-py2.6.egg',
 '/usr/lib/python2.6/site-packages/requests-2.12.3-py2.6.egg',
 '/usr/lib/python2.6/site-packages/gtk-2.0']
Http Logs:


<> - - [19/Dec/2016:09:42:20 +] "GET 
/admin/db/scmtools/repository/64/ HTTP/1.1" 500 31481 
"http://review-boardsite-name.com/admin/db/scmtools/repository/"; 
"Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"

Mon, 19 Dec 2016 09:39:37 +


Error 2 :  Page gets timeout with below error on web browser.

The connection was reset 
The connection to the server was reset while the page was loading.

The site could be temporarily unavailable or too busy. Try again in a 
few moments.
If you are unable to load any pages, check your computer's network 
connection.
If your computer or network is protected by a firewall or proxy, make 
sure that Firefox is permitted to access the Web.




This issue occur once a while randomly any suggestion on this is highly 
appreciated.






-- 
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 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googl