Hi Eran,

You're probably uploading a *very* large diff, and it's timing out. If
you're using Git, you'll need to make sure that you're not generating a
diff using the wrong remote tracking branch. Assuming you're using RBTools,
you can use `rbt diff` to generate the diff, and you can check the file
size of the resulting content to see how big that is.

Can you tell me how you're posting the change, and tell me your repository
type and describe the branch setup?

Christian

On Sat, Aug 5, 2017 at 9:59 PM, eran meiri <eme...@gmail.com> wrote:

> Hello,
> lately we have been getting these errors more and more and it causes
> problems in the response time ( rbt post takes 2 minutes )
>
> please help
>
> Traceback (most recent call last):
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/core/handlers/base.py", line 112, in
> get_response
>
>     response = wrapped_callback(request, *callback_args, **callback_kwargs)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/views/decorators/cache.py", line 52, in
> _wrapped_view_func
>
>     response = view_func(request, *args, **kwargs)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/views/decorators/vary.py", line 19, in
> inner_func
>
>     response = func(*args, **kwargs)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/djblets/webapi/resources/base.py", line 158, in
> __call__
>
>     method = request.POST.get('_method', kwargs.get('_method', method))
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/core/handlers/wsgi.py", line 146, in
> _get_post
>
>     self._load_post_and_files()
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/http/request.py", line 215, in
> _load_post_and_files
>
>     self._post, self._files = self.parse_file_upload(self.META, data)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/http/request.py", line 180, in
> parse_file_upload
>
>     return parser.parse()
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/http/multipartparser.py", line 201, in
> parse
>
>     for chunk in field_stream:
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/utils/six.py", line 535, in next
>
>     return type(self).__next__(self)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/http/multipartparser.py", line 330, in
> __next__
>
>     output = next(self._producer)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/utils/six.py", line 535, in next
>
>     return type(self).__next__(self)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/http/multipartparser.py", line 458, in
> __next__
>
>     for bytes in stream:
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/utils/six.py", line 535, in next
>
>     return type(self).__next__(self)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/http/multipartparser.py", line 330, in
> __next__
>
>     output = next(self._producer)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/utils/six.py", line 535, in next
>
>     return type(self).__next__(self)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/http/multipartparser.py", line 391, in
> __next__
>
>     data = self.flo.read(self.chunk_size)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/http/request.py", line 244, in read
>
>     six.reraise(UnreadablePostError, UnreadablePostError(*e.args),
> sys.exc_info()[2])
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/http/request.py", line 242, in read
>
>     return self._stream.read(*args, **kwargs)
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/core/handlers/wsgi.py", line 51, in read
>
>     result = self.buffer + self._read_limited(size - len(self.buffer))
>
>
>
>   File "/opt/reviewboard-2.5-0/apps/reviewboard/htdocs/venv/lib/
> python2.7/site-packages/django/core/handlers/wsgi.py", line 39, in
> _read_limited
>
>     result = self.stream.read(size)
>
>
>
> UnreadablePostError: request data read error
>
>
>
>
>
> <WSGIRequest
>
> path:/reviewboard/api/review-requests/6489/diffs/,
>
> GET:<QueryDict: {}>,
>
> POST:<could not parse>,
>
> COOKIES:{'rbsessionid': 'wr0w61blq27ykdxav4r4k3bn5s62me0r'},
>
> META:{'CONTENT_LENGTH': '151045672',
>
>  'CONTENT_TYPE': 'multipart/form-data; boundary================
> 1283044404851972134==',
>
>  'CONTEXT_DOCUMENT_ROOT': '/opt/reviewboard-2.5-0/apache2/htdocs',
>
>  'CONTEXT_PREFIX': '',
>
>  'DOCUMENT_ROOT': '/opt/reviewboard-2.5-0/apache2/htdocs',
>
>  'GATEWAY_INTERFACE': 'CGI/1.1',
>
>  'HTTP_ACCEPT_ENCODING': 'identity',
>
>  'HTTP_CONNECTION': 'Keep-Alive',
>
>  'HTTP_COOKIE': 'rbsessionid=wr0w61blq27ykdxav4r4k3bn5s62me0r',
>
>  'HTTP_HOST': 'ilreviewb.redbend.com:8080',
>
>  'HTTP_RVBD_CSH': '10.223.126.51',
>
>  'HTTP_RVBD_SSH': '::ffff:10.82.64.13',
>
>  'HTTP_USER_AGENT': 'RBTools/0.7.9',
>
>  'HTTP_X_RBT_OPTIMIZED_BY': 'HILZ-WAC-01 (RiOS 9.5.0) IK',
>
>  'HTTP_X_RBT_SCAR': '10.223.126.51:41069242:1000',
>
>  'LD_LIBRARY_PATH': '/opt/reviewboard-2.5-0/sqlite/lib:/opt/reviewboard-2.
> 5-0/python/lib:/opt/reviewboard-2.5-0/apache2/lib:
> /opt/reviewboard-2.5-0/common/lib:/opt/reviewboard-2.5-0/
> sqlite/lib:/opt/reviewboard-2.5-0/python/lib:/opt/
> reviewboard-2.5-0/apache2/lib:/opt/reviewboard-2.5-0/common/
> lib:/opt/reviewboard-2.5-0/git/lib:/opt/reviewboard-2.5-
> 0/apps/django/lib/python2.7/site-packages:/opt/
> reviewboard-2.5-0/memcached/lib:/opt/reviewboard-2.5-0/
> python/lib:/opt/reviewboard-2.5-0/mysql/lib:/opt/
> reviewboard-2.5-0/subversion/lib:/opt/reviewboard-2.5-0/
> sqlite/lib:/opt/reviewboard-2.5-0/apache2/lib:/opt/
> reviewboard-2.5-0/common/lib:',
>
>  u'LOCAL_SITE': None,
>
>  'PATH_INFO': u'/reviewboard/api/review-requests/6489/diffs/',
>
>  'PATH_TRANSLATED': '/opt/reviewboard-2.5-0/apps/
> reviewboard/htdocs/rb-sites/reviewboard/htdocs/
> reviewboard.wsgi/reviewboard/api/review-requests/6489/diffs/',
>
>  'QUERY_STRING': '',
>
>  'REMOTE_ADDR': '10.223.73.13',
>
>  'REMOTE_PORT': '46234',
>
>  'REQUEST_METHOD': 'POST',
>
>  'REQUEST_SCHEME': 'http',
>
>  'REQUEST_URI': '/reviewboard/api/review-requests/6489/diffs/',
>
>  'SCRIPT_FILENAME': '/opt/reviewboard-2.5-0/apps/
> reviewboard/htdocs/rb-sites/reviewboard/htdocs/reviewboard.wsgi',
>
>  'SCRIPT_NAME': u'',
>
>  'SERVER_ADDR': '10.82.73.138',
>
>  'SERVER_ADMIN': 'y...@example.com',
>
>  'SERVER_NAME': 'ilreviewb.redbend.com',
>
>  'SERVER_PORT': '8080',
>
>  'SERVER_PROTOCOL': 'HTTP/1.1',
>
>  'SERVER_SIGNATURE': '',
>
>  'SERVER_SOFTWARE': 'Apache',
>
>  u'USERNAME': u'pllstrobin',
>
>  u'USER_EMAIL': u'lukasz.stro...@harman.com',
>
>  'mod_wsgi.application_group': 'localhost:8080|',
>
>  'mod_wsgi.callable_object': 'application',
>
>  'mod_wsgi.enable_sendfile': '0',
>
>  'mod_wsgi.handler_script': '',
>
>  'mod_wsgi.input_chunked': '0',
>
>  'mod_wsgi.listener_host': '',
>
>  'mod_wsgi.listener_port': '8080',
>
>  'mod_wsgi.process_group': 'wsgi-reviewboard',
>
>  'mod_wsgi.queue_start': '1501849838552282',
>
>  'mod_wsgi.request_handler': 'wsgi-script',
>
>  'mod_wsgi.script_reloading': '1',
>
>  'mod_wsgi.version': (3, 5),
>
>  'wsgi.errors': <mod_wsgi.Log object at 0x7f3a8f2842f0>,
>
>  'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter
> object at 0x7f3a8f2ffcd8>,
>
>  'wsgi.input': <mod_wsgi.Input object at 0x7f3a8f2840f0>,
>
>  'wsgi.multiprocess': True,
>
>  'wsgi.multithread': True,
>
>  'wsgi.run_once': False,
>
>  'wsgi.url_scheme': 'http',
>
>  'wsgi.version': (1, 0)}>
>
> --
> 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.
>



-- 
Christian Hammond
President/CEO of Beanbag <https://www.beanbaginc.com/>
Makers of Review Board <https://www.reviewboard.org/>

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

Reply via email to