Cannot start Elasticsearch after upgrade to 2.0


#1

I did a upgrade from 1.7.3 to 2.0 via apt-get and after this I cannot start it via init.d script.

[2015-10-30 11:37:36,442][INFO ][bootstrap ] es.default.config is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed.

When I check the init.d script it seems correct and the elasticsearch.yml is present in /etc/elasticsearch.


(Isabel Drost-Fromm) #2

Could it be that you have the same issues like here:


#3

I haven't installed Marvel.

I checked and found some difference between https://github.com/elastic/elasticsearch/blob/e95af69fb71d67c3fb2a2806da24214dc4805140/distribution/deb/src/main/packaging/init.d/elasticsearch and my local file, however if I replace mine with that one I get "Bad substitution" error


(Isabel Drost-Fromm) #4

Yeah - the title of the issue is misleading. I meant the answer given here

might actually be related to your problem as well.

What exactly was the difference?

Isabel


#5

I've tried to do a search for es.default.config in /etc/ but didn't find anything.

See https://www.diffnow.com/?report=0wh98.
Mine is to the left.


(Isabel Drost-Fromm) #6

At least line 100 is what's giving you the parsing error.


#7

On the one from repository?


#8

Anyone else have any suggestions?


(David Pilato) #9

@tlrx gave a great answer there: https://github.com/elastic/elasticsearch/issues/14347#issuecomment-152946882


#10

But I installed it via a packet manager, so as far as I understand I shouldn't start it that way?

Anyway, if I try I get errors about logging.


#11

Anyone?


#12

Bump.


(justin) #13

Hi Did you run the migration check before running the upgrade of ES from 1.7 to 2.0


(system) #14