mordecai: Connection error
I confronted with a connection error in the updated Mordecai. I did not have this issue with the previous Mordecai. I will be thankful if you can help me to solve this error.
mordecai_1 | WARNING:elasticsearch:GET http://localhost:9200/_search [status:N/A request:0.000s]
mordecai_1 | Traceback (most recent call last):
mordecai_1 | File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 74, in perform_request
mordecai_1 | response = self.pool.urlopen(method, url, body, retries=False, headers=self.headers, **kw)
mordecai_1 | File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 597, in urlopen
mordecai_1 | _stacktrace=sys.exc_info()[2])
mordecai_1 | File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 222, in increment
mordecai_1 | raise six.reraise(type(error), error, _stacktrace)
mordecai_1 | File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 544, in urlopen
mordecai_1 | body=body, headers=headers)
mordecai_1 | File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 349, in _make_request
mordecai_1 | conn.request(method, url, **httplib_request_kw)
mordecai_1 | File "/usr/lib/python2.7/httplib.py", line 979, in request
mordecai_1 | self._send_request(method, url, body, headers)
mordecai_1 | File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request
mordecai_1 | self.endheaders(body)
mordecai_1 | File "/usr/lib/python2.7/httplib.py", line 975, in endheaders
mordecai_1 | self._send_output(message_body)
mordecai_1 | File "/usr/lib/python2.7/httplib.py", line 835, in _send_output
mordecai_1 | self.send(msg)
mordecai_1 | File "/usr/lib/python2.7/httplib.py", line 797, in send
mordecai_1 | self.connect()
mordecai_1 | File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 155, in connect
mordecai_1 | conn = self._new_conn()
mordecai_1 | File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 134, in _new_conn
mordecai_1 | (self.host, self.port), self.timeout, **extra_kw)
mordecai_1 | File "/usr/local/lib/python2.7/dist-packages/urllib3/util/connection.py", line 88, in create_connection
mordecai_1 | raise err
mordecai_1 | ProtocolError: ('Connection aborted.', error(111, 'Connection refused'))
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (15 by maintainers)
Commits related to this issue
- Resolve issue with results not coming back from ES (closes #9) — committed to openeventdata/mordecai by ahalterman 8 years ago
I had the same issue as the described here, and tried the adm1 branch -started with the instructions in the readme of that branch
everything loads and network now appears to route correctly, but the python api only returns an empty array for the exemplar queries – example below:
(not sure if this should be a new issue or included in this, since it’s against the adm1 branch)
I also don’t see any logfile output for the mordecai box (sudo docker logs -f ab51)
The expected elasticsearch logs are visible using the same pattern.
OS is ubuntu 16.04
$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b9753dc6cd32 mordecaimaster3_mordecai “python /src/app.py” 47 hours ago Up 31 minutes 0.0.0.0:5000->5000/tcp mordecaimaster3_mordecai_1 188a73e53717 openeventdata/es-geonames “/bin/sh -c 'cd elast” 47 hours ago Up 31 minutes 9200/tcp, 9300/tcp mordecaimaster3_elastic_1
$ curl -XGET http://localhost:9200/_search {“took”:1,“timed_out”:false,“_shards”:{“total”:0,“successful”:0,“failed”:0},“hits”:{“total”:0,“max_score”:0.0,“hits”:[]}}