#3268 Some network errors cannot be retried
Closed: Fixed by tkopecek. Opened by mikem.

We've been seeing a number of network infrastructure errors that manifest when kojihub is reading the input stream from the client. For example, we might see:

Traceback (most recent call last):
  File "/usr/share/koji-hub/kojixmlrpc.py", line 253, in _wrap_handler
    response = handler(environ)
  File "/usr/share/koji-hub/kojixmlrpc.py", line 276, in handle_rpc
    params, method = self._read_request(environ['wsgi.input'])
  File "/usr/share/koji-hub/kojixmlrpc.py", line 215, in _read_request
    chunk = stream.read(8192)
OSError: Apache/mod_wsgi request data read error: The timeout specified has expired.

When this happens, the hub errors and returns an xmlrpc fault representing a koji.GenericError exception and a 200 http status. Clients will not retry such errors.


Another observed example:

Traceback (most recent call last):
  File "/usr/share/koji-hub/kojixmlrpc.py", line 253, in _wrap_handler
    response = handler(environ)
  File "/usr/share/koji-hub/kojixmlrpc.py", line 276, in handle_rpc
    params, method = self._read_request(environ['wsgi.input'])
  File "/usr/share/koji-hub/kojixmlrpc.py", line 215, in _read_request
    chunk = stream.read(8192)
OSError: Apache/mod_wsgi request data read error: Partial results are valid but processing is incomplete.

Metadata Update from @mikem:
- Custom field Size adjusted to None

Metadata Update from @jcupova:
- Issue set to the milestone: 1.29

Metadata Update from @jobrauer:
- Issue tagged with: testing-ready

Metadata Update from @jobrauer:
- Issue tagged with: testing-done

Commit f5fe7a55 fixes this issue

Commit 3ece0d8e fixes this issue

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/3268

Please continue any further discussion there.

Metadata
Related Pull Requests