#2268 Frontend Traceback for large SRPM upload
Closed: Fixed 2 years ago by praiskup. Opened 2 years ago by praiskup.

[Tue Aug 09 12:39:29.696822 2022] [wsgi:error] [pid 1198159:tid 1198318] [client 10.43.7.71:40366] mod_wsgi (pid=1198159): Request data read error when proxying data to daemon process: Connection reset by peer.
[Tue Aug 09 12:39:29.698086 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] ERROR:coprs:Admin-only exception
[Tue Aug 09 12:39:29.698094 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] Request: POST https://copr.devel.redhat.com/api_3/build/create/upload
[Tue Aug 09 12:39:29.698098 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] User: kdudka
[Tue Aug 09 12:39:29.698101 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] Traceback (most recent call last):
[Tue Aug 09 12:39:29.698104 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/wsgi.py", line 921, in read
[Tue Aug 09 12:39:29.698107 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     read = self._read(to_read)
[Tue Aug 09 12:39:29.698110 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] OSError: Apache/mod_wsgi request data read error: Partial results are valid but processing is incomplete.
[Tue Aug 09 12:39:29.698114 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]
[Tue Aug 09 12:39:29.698116 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] During handling of the above exception, another exception occurred:
[Tue Aug 09 12:39:29.698119 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]
[Tue Aug 09 12:39:29.698122 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] Traceback (most recent call last):
[Tue Aug 09 12:39:29.698125 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/formparser.py", line 142, in wrapper
[Tue Aug 09 12:39:29.698128 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     return f(self, stream, *args, **kwargs)
[Tue Aug 09 12:39:29.698140 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/formparser.py", line 292, in _parse_multipart
[Tue Aug 09 12:39:29.698144 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     form, files = parser.parse(stream, boundary, content_length)
[Tue Aug 09 12:39:29.698147 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/formparser.py", line 458, in parse
[Tue Aug 09 12:39:29.698150 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     for data in iterator:
[Tue Aug 09 12:39:29.698153 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/wsgi.py", line 653, in _make_chunk_iter
[Tue Aug 09 12:39:29.698156 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     item = _read(buffer_size)
[Tue Aug 09 12:39:29.698159 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/wsgi.py", line 923, in read
[Tue Aug 09 12:39:29.698162 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     return self.on_disconnect()
[Tue Aug 09 12:39:29.698164 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/wsgi.py", line 893, in on_disconnect
[Tue Aug 09 12:39:29.698167 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     raise ClientDisconnected()
[Tue Aug 09 12:39:29.698171 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] werkzeug.exceptions.ClientDisconnected: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.
[Tue Aug 09 12:39:29.698174 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]
[Tue Aug 09 12:39:29.698176 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] During handling of the above exception, another exception occurred:
[Tue Aug 09 12:39:29.698179 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]
[Tue Aug 09 12:39:29.698182 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] Traceback (most recent call last):
[Tue Aug 09 12:39:29.698185 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/flask/app.py", line 1513, in full_dispatch_request
[Tue Aug 09 12:39:29.698188 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     rv = self.dispatch_request()
[Tue Aug 09 12:39:29.698191 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/flask/app.py", line 1499, in dispatch_request
[Tue Aug 09 12:39:29.698194 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
[Tue Aug 09 12:39:29.698197 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/share/copr/coprs_frontend/coprs/views/misc.py", line 203, in decorated_function
[Tue Aug 09 12:39:29.698200 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     return f(*args, **kwargs)
[Tue Aug 09 12:39:29.698202 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/share/copr/coprs_frontend/coprs/views/apiv3_ns/__init__.py", line 80, in file_upload_wrapper
[Tue Aug 09 12:39:29.698205 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     if "json" in flask.request.files:
[Tue Aug 09 12:39:29.698208 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/utils.py", line 97, in __get__
[Tue Aug 09 12:39:29.698211 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     value = self.fget(obj)  # type: ignore
[Tue Aug 09 12:39:29.698219 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/wrappers/request.py", line 499, in files
[Tue Aug 09 12:39:29.698222 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     self._load_form_data()
[Tue Aug 09 12:39:29.698225 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/flask/wrappers.py", line 113, in _load_form_data
[Tue Aug 09 12:39:29.698228 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     RequestBase._load_form_data(self)
[Tue Aug 09 12:39:29.698231 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/wrappers/request.py", line 285, in _load_form_data
[Tue Aug 09 12:39:29.698234 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     data = parser.parse(
[Tue Aug 09 12:39:29.698237 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/formparser.py", line 265, in parse
[Tue Aug 09 12:39:29.698240 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     return parse_func(self, stream, mimetype, content_length, options)
[Tue Aug 09 12:39:29.698243 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]   File "/usr/lib/python3.10/site-packages/werkzeug/formparser.py", line 150, in wrapper
[Tue Aug 09 12:39:29.698246 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366]     chunk = stream.read(1024 * 64)
[Tue Aug 09 12:39:29.698249 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] OSError: Apache/mod_wsgi request data read error: Input is already in error state.
[Tue Aug 09 12:39:29.698368 2022] [wsgi:error] [pid 1198810:tid 1198816] [remote 10.43.7.71:40366] ERROR:coprs:Response error: 500 Request wasn't successful, there is probably a bug in the Copr code.

Error on the client side is:

Something went wrong:
Error: Response is not in JSON format, there is probably a bug in the API code.

Server response:
----------------


500 Internal Server Error

Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
Please contact the server administrator at
 root@localhost to inform them of the time this error occurred,
 and the actions you performed just before this error.
More information about this error may be available
in the server error log.

Metadata Update from @praiskup:
- Issue tagged with: bug

2 years ago

Metadata Update from @praiskup:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Thanks! I will verify the fix on the next update of cov-sa* packages.

Log in to comment on this ticket.

Metadata