Dieterbe / anthracite

an event / change logging/managament app
Apache License 2.0
296 stars 33 forks source link

Can not start anthracite #27

Open nindza opened 7 years ago

nindza commented 7 years ago

When I try to start antracite it failes with:

Traceback (most recent call last): File "./anthracite-web.py", line 437, in backend = Backend(config) File "/opt/prometheus/anthracite/anthracite/backend.py", line 135, in init "index": "not_analyzed" File "/opt/prometheus/anthracite/anthracite/rawes/rawes/elastic.py", line 53, in post return self.request('post', path, kwargs) File "/opt/prometheus/anthracite/anthracite/rawes/rawes/elastic.py", line 75, in request return self.connection.request(method, new_path, kwargs) File "/opt/prometheus/anthracite/anthracite/rawes/rawes/http_connection.py", line 43, in request return self._decode(response) File "/opt/prometheus/anthracite/anthracite/rawes/rawes/http_connection.py", line 49, in _decode decoded = json.loads(response.text) File "/usr/lib/python2.7/dist-packages/simplejson/init.py", line 488, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 389, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I tried this on Ubuntu 14.04.5, and latest Elasticsearch 5.2.1. Could it be that I should try with some older version of Elasticsearch?

kishoreyellamraju commented 7 years ago

@nindza ES 5.x has lot of breaking changes. I highly doubt this code work with newer version of ES. I use it with ES 2.x and it works great.