Closed AGirin closed 10 years ago
i just pushed a fix for the submodule. that error is probably because you cloned the dependencies manually, so their API may have changed.
can you try again installing the regular way? it should work fine now
Thanks! I'll try and let you know.
So tis time git clone worked fine. I still get the error when I try to run anthracite-web.py:
Traceback (most recent call last):
File "./anthracite-web.py", line 437, in
Do I need to install anything else to make this work? I used elasticsearch 0.90.11, gave unique cluster cluster.name: elasticTest. Is this all that I need to run Anthracite?
Thanks for your help!
I rebuilt VM and Anthracite start fine. There are some issues however: I ran test script to populate Anthracite with the data. That worked fine but when I click on operational report I get this:
Error: 500 Internal Server Error Sorry, the requested URL 'http://TestVM:8081/report' caused an error: Internal Server Error
I see these messages in the console:
Traceback (most recent call last): File "/opt/anthracite/bottle.py", line 763, in _handle return route.call(_args) File "/opt/anthracite/bottle.py", line 1622, in wrapper rv = callback(_a, _ka) File "/opt/anthracite/bottle.py", line 1572, in wrapper rv = callback(_a, _ka) File "./anthracite-web.py", line 345, in report return p(page='report', body=template('tpl/report', config=config, reportpoints=get_report_data(start, int(time.time()))), _kwargs) File "./anthracite-web.py", line 380, in get_report_data ttd = outages_seen[event.outage]['ttd']
Also Timeline give me 500 Error as well.
Thanks.
and this is a fresh install right? no chance that there's old libs or anything?
if so i'll try to reproduce and fix
This is fresh install on a fresh VM. Operational report shows black rectangle instead of the graph and timeline gives me 500 error.
I am running CentOS 6.4 and ElasticSearch 1.0.0 if that matters.
I also see ElasticException (very long one) when I click on timeline:
ElasticException: ElasticSearch Error: u'{"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[7GhXax28RtO2JbIOr1d_qw][anthracite][0]: SearchParseException[[anthracite][0]: from[-1],size[-1],sort[<custom:\"date\": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@53514e2>]: Parse Failure [Failed to parse source [{\"sort\": [{\"date\": {\"order\": \"asc\", \"ignoreunmapped\": true}}], \"query\": {\"field\": {\"date\": {\"query\": \"\"}}}}]]]; nested: QueryParsingException[[anthracite] No query registered for [field]]; }{[7GhXax28RtO2JbIOr1d_qw][anthracite][2]: SearchParseException[[anthracite][2]: from[-1],size[-1],sort[<custom:\"date\": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@51dd7018>]: Parse Failure [Failed to parse source [{\"sort\": [{\"date\": {\"order\": \"asc\", \"ignoreunmapped\": true}}], \"query\": {\"field\": {\"date\": {\"query\": \"\"}}}}]]]; nested: QueryParsingException[[anthracite] No query registered for [field]]; }{[7GhXax28RtO2JbIOr1d_qw][anthracite][1]: SearchParseException[[anthracite][1]: from[-1],size[-1],sort[<custom:\"date\": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@5fee0419>]: Parse Failure [Failed to parse source [{\"sort\": [{\"date\": {\"order\": \"asc\", \"ignoreunmapped\": true}}], \"query\": {\"field\": {\"date\": {\"query\": \"\"}}}}]]]; nested: QueryParsingException[[anthracite] No query registered for [field]]; }{[7GhXax28RtO2JbIOr1d_qw][anthracite][4]: SearchParseException[[anthracite][4]: from[-1],size[-1],sort[<custom:\"date\": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@3b92598c>]: Parse Failure [Failed to parse source [{\"sort\": [{\"date\": {\"order\": \"asc\", \"ignoreunmapped\": true}}], \"query\": {\"field\": {\"date\": {\"query\": \"\"}}}}]]]; nested: QueryParsingException[[anthracite] No query registered for [field]]; }{[7GhXax28RtO2JbIOr1d_qw][anthracite][3]: SearchParseException[[anthracite][3]: from[-1],size[-1],sort[<custom:\"date\": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@392948cb>]: Parse Failure [Failed to parse source [{\"sort\": [{\"date\": {\"order\": \"asc\", \"ignore_unmapped\": true}}], \"query\": {\"field\": {\"date\": {\"query\": \"*\"}}}}]]]; nested: QueryParsingException[[anthracite] No query registered for [field]]; }]","status":400}'
Hi Dieter! I'm getting the same error. I don't know enough about elasticsearch to be particularly effective in debugging, but I'll try. The following info might be useful:
Running Ubuntu 12.04.4 LTS. Elasticsearch 1.1.1 (downloaded deb package from their website). running java version "1.7.0_51" (from the openjdk-7-jre-headless package).
Found the problem. Anthracite currently uses query constructs (like query.field) that were deprecated in elasticsearch version 1.0, and removed in 1.1. I.e., the following query is no longer valid
{
"query": {
"field": {
"date": {
"query": "*"
}
}
}
}
The new version is, (I think... remember, I'm only just today starting to learn ES):
{
"query": {
"query_string": {
"default_field": "date",
"query": "*"
}
}
}
So, if we want anthracite to work on ES 1.1, there's a lot of work involved. I'm game, as this would be an excellent ES learning opportunity, but I'm nearly out of my "research new tools" time budget for this week.
If anyone else strugging with the same issue found this, I suggest installing ES 1.0 as that has a much better chance working out of the box.
So, if we want anthracite to work on ES 1.1, there's a lot of work involved
looks like that was incorrect, 851ef80 is all that was needed
Hello!
I could not install by running git clone --recursive https://github.com/Dieterbe/anthracite.git. Getting this error:
Submodule 'timezone-js' (git://github.com/mde/timezone-js.git) registered for path 'timezone-js' Initialized empty Git repository in /root/A/anthracite/assets/timeserieswidget/flot/.git/ github.com[0: 192.30.252.131]: errno=Connection refused fatal: unable to connect a socket (Connection refused) Clone of 'git://github.com/flot/flot.git' into submodule path 'flot' failed Failed to recurse into submodule path 'assets/timeserieswidget'
I manually got all repos to anthracite directory, setup elasticsearch but I get this error on startup:
Traceback (most recent call last): File "./anthracite-web.py", line 437, in
backend = Backend()
File "/opt/anthracite/backend.py", line 131, in init
"index": "not_analyzed"
File "/usr/lib/python2.6/site-packages/rawes/elastic.py", line 101, in post
return self.request('post', path, _kwargs)
File "/usr/lib/python2.6/site-packages/rawes/elastic.py", line 125, in request
method, new_path, _kwargs)
File "/usr/lib/python2.6/site-packages/rawes/http_connection.py", line 49, in request
"/".join((self.url, path)), **args)
TypeError: request() got an unexpected keyword argument 'except_on_error'
Any help is much appreciated.
Thanks.