Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaxRetryError #1

Open
jerrygaoLondon opened this issue Jan 11, 2016 · 0 comments
Open

MaxRetryError #1

jerrygaoLondon opened this issue Jan 11, 2016 · 0 comments

Comments

@jerrygaoLondon
Copy link
Owner


2016-01-11 11:44:29,085 [MainThread  ] - IndustryTermRecogniser - INFO - Term variation detection and aggregation...
Traceback (most recent call last):
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 135, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py", line 90, in create_connection
    raise err
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py", line 80, in create_connection
    sock.connect(sa)
OSError: [Errno 99] Cannot assign requested address

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen
    body=body, headers=headers)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 353, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/mnt/Python34/lib/python3.4/http/client.py", line 1088, in request
    self._send_request(method, url, body, headers)
  File "/mnt/Python34/lib/python3.4/http/client.py", line 1126, in _send_request
    self.endheaders(body)
  File "/mnt/Python34/lib/python3.4/http/client.py", line 1084, in endheaders
    self._send_output(message_body)
  File "/mnt/Python34/lib/python3.4/http/client.py", line 922, in _send_output
    self.send(msg)
  File "/mnt/Python34/lib/python3.4/http/client.py", line 857, in send
    self.connect()
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 160, in connect
    conn = self._new_conn()
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 144, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x7fb830c8f8d0>: Failed to establish a new connection: [Errno 99] Cannot assign requested address

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/Python34/lib/python3.4/site-packages/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 609, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py", line 271, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='oakanalysis.shef.ac.uk', port=8983): Max retries exceeded with url: /solr/tatasteel/analysis/field?analysis.fieldvalue=auto+detection&wt=json&analysis.fieldtype=industry_term_normaliser (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb830c8f8d0>: Failed to establish a new connection: [Errno 99] Cannot assign requested address',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/integration.py", line 145, in <module>
    trTagger.terminology_tagging()
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/IndustryTermRecogniser.py", line 165, in terminology_tagging
    self.synonym_aggregation(final_term_set)
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/IndustryTermRecogniser.py", line 281, in synonym_aggregation
    norm_term_dict = dict((term, self.solrClient.get_industry_term_field_analysis(term)) for term in terms)
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/IndustryTermRecogniser.py", line 281, in <genexpr>
    norm_term_dict = dict((term, self.solrClient.get_industry_term_field_analysis(term)) for term in terms)
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/SolrClient.py", line 381, in get_industry_term_field_analysis
    analysis_result = self.field_analysis(term, field_type=pfield_type)
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/SolrClient.py", line 371, in field_analysis
    response=self._send_request('GET', path)
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/SolrClient.py", line 401, in _send_request
    response = requests.request(method=method, url=urljoin(url, path),headers=headers,data=data)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/sessions.py", line 468, in request
    resp = self.send(prep, **send_kwargs)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/adapters.py", line 423, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='xxx.shef.ac.uk', port=8983): Max retries exceeded with url: /solr/tatasteel/analysis/field?analysis.fieldvalue=auto+detection&wt=json&analysis.fieldtype=industry_term_normaliser (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb830c8f8d0>: Failed to establish a new connection: [Errno 99] Cannot assign requested address',))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant