openshiftio / openshift.io

Red Hat OpenShift.io is an end-to-end development environment for planning, building and deploying modern applications.
https://openshift.io
97 stars 66 forks source link

ValueError: filedescriptor out of range in select() #4432

Closed msrb closed 5 years ago

msrb commented 6 years ago

From sentry: https://errortracking.prod-preview.openshift.io/openshift_io/fabric8-analytics-production/issues/6249/

ValueError: filedescriptor out of range in select()
  File "celery/app/trace.py", line 375, in trace_task
    R = retval = fun(*args, **kwargs)
  File "celery/app/trace.py", line 632, in __protected_call__
    return self.run(*args, **kwargs)
  File "selinon/task_envelope.py", line 169, in run
    raise self.retry(max_retries=0, exc=exc)
  File "celery/app/task.py", line 668, in retry
    raise_with_context(exc)
  File "selinon/task_envelope.py", line 114, in run
    result = task.run(node_args)
  File "f8a_worker/base.py", line 106, in run
    raise exc
  File "f8a_worker/base.py", line 81, in run
    result = self.execute(node_args)
  File "f8a_worker/workers/init_analysis_flow.py", line 70, in execute
    epv_cache.put_source_tarball(source_tarball_path)
  File "f8a_worker/object_cache.py", line 162, in put_source_tarball
    self._put_meta(os.path.basename(source_tarball_path))
  File "f8a_worker/object_cache.py", line 107, in _put_meta
    self._s3.store_dict(tarball_name, self._meta_json_object_key)
  File "f8a_worker/storages/s3.py", line 208, in store_dict
    return self.store_blob(blob, object_key)
  File "f8a_worker/storages/s3.py", line 191, in store_blob
    response = self._s3.Object(self.bucket_name, object_key).put(**put_kwargs)
  File "boto3/resources/factory.py", line 520, in do_action
    response = action(self, *args, **kwargs)
  File "boto3/resources/action.py", line 83, in __call__
    response = getattr(parent.meta.client, operation_name)(**params)
  File "botocore/client.py", line 314, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "botocore/client.py", line 599, in _make_api_call
    operation_model, request_dict)
  File "botocore/endpoint.py", line 148, in make_request
    return self._send_request(request_dict, operation_model)
  File "botocore/endpoint.py", line 177, in _send_request
    success_response, exception):
  File "botocore/endpoint.py", line 273, in _needs_retry
    caught_exception=caught_exception, request_dict=request_dict)
  File "botocore/hooks.py", line 227, in emit
    return self._emit(event_name, kwargs)
  File "botocore/hooks.py", line 210, in _emit
    response = handler(**kwargs)
  File "botocore/retryhandler.py", line 183, in __call__
    if self._checker(attempts, response, caught_exception):
  File "botocore/retryhandler.py", line 251, in __call__
    caught_exception)
  File "botocore/retryhandler.py", line 269, in _should_retry
    return self._checker(attempt_number, response, caught_exception)
  File "botocore/retryhandler.py", line 317, in __call__
    caught_exception)
  File "botocore/retryhandler.py", line 223, in __call__
    attempt_number, caught_exception)
  File "botocore/retryhandler.py", line 359, in _check_caught_exception
    raise caught_exception
  File "botocore/endpoint.py", line 222, in _get_response
    proxies=self.proxies, timeout=self.timeout)
  File "botocore/vendored/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "botocore/vendored/requests/adapters.py", line 370, in send
    timeout=timeout
  File "botocore/vendored/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
    body=body, headers=headers)
  File "botocore/vendored/requests/packages/urllib3/connectionpool.py", line 349, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "http/client.py", line 1137, in request
    self._send_request(method, url, body, headers)
  File "botocore/awsrequest.py", line 130, in _send_request
    self, method, url, body, headers, *args, **kwargs)
  File "http/client.py", line 1182, in _send_request
    self.endheaders(body)
  File "http/client.py", line 1133, in endheaders
    self._send_output(message_body)
  File "botocore/awsrequest.py", line 163, in _send_output
    read, write, exc = select.select([self.sock], [], [self.sock], 1)
msrb commented 5 years ago

I haven't seen this exception since we have updated to new version of Boto3.