Python error while indexing data in Solr – PySolr Error – 2

Error:

Traceback (most recent call last):
 File "index_data.py", line 47, in 
 main(sys.argv[1:])
 File "index_data.py", line 41, in main
 s.add(items, commit=True)
 File "/usr/lib/python2.6/site-packages/pysolr.py", line 779, in add
 return self._update(m, commit=commit, waitFlush=waitFlush, waitSearcher=waitSearcher)
 File "/usr/lib/python2.6/site-packages/pysolr.py", line 387, in _update
 return self._send_request('post', path, message, {'Content-type': 'text/xml; charset=utf-8'})
 File "/usr/lib/python2.6/site-packages/pysolr.py", line 306, in _send_request
 raise SolrError(error_message % (url, err))
 pysolr.SolrError: Connection to server 'http://54.254.192.149:8983/solr/feeddata/update/?commit=true' timed out: HTTPConnectionPool(host='54.254.192.149', port=8983): Max retries exceeded with url: /solr/feeddata/update/?commit=true (Caused by ConnectTimeoutError(, 'Connection to 54.254.192.149 timed out. (connect timeout=10)'))

Solution:

Connection Issues. Check if you can connetct to the remote boxes directly

Leave a Reply

Your email address will not be published. Required fields are marked *