You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per release notes, ES 5.3.1 now fails to start if you provide default.path.data and an array of path.data in order to correct a bug from 5.3.0 that merged the default into the array instead of ignoring it. However, default values for cookbook attributes that set those values are also preventing ES from starting, even though path.data isn't an array. I'm not sure if that's a bug in the bugfix or the way it's supposed to work, but after upgrading from 5.3.0 to 5.3.1 my logs now tell me I have to move files from /var/lib/elasticsearch (default.path.data) to /var/lib/elasticsearch (in elasticsearch.yaml, with path.data: "/var/lib/elasticsearch") in order to proceed. Ridiculousness of the warning message aside, I don't see a way to correct this from within the cookbook. There's no way to get rid of the path.data setting as using nil just gets you the cookbook default value, so my current, definitely not preferable, fix is to edit the packaged /etc/init.d/elasticsearch and remove the part of DAEMON_OPTS that sets default.data.path.
Advice on a better fix is welcome.
The text was updated successfully, but these errors were encountered:
Per release notes, ES 5.3.1 now fails to start if you provide default.path.data and an array of path.data in order to correct a bug from 5.3.0 that merged the default into the array instead of ignoring it. However, default values for cookbook attributes that set those values are also preventing ES from starting, even though path.data isn't an array. I'm not sure if that's a bug in the bugfix or the way it's supposed to work, but after upgrading from 5.3.0 to 5.3.1 my logs now tell me I have to move files from
/var/lib/elasticsearch
(default.path.data) to/var/lib/elasticsearch
(inelasticsearch.yaml
, withpath.data: "/var/lib/elasticsearch"
) in order to proceed. Ridiculousness of the warning message aside, I don't see a way to correct this from within the cookbook. There's no way to get rid of the path.data setting as usingnil
just gets you the cookbook default value, so my current, definitely not preferable, fix is to edit the packaged/etc/init.d/elasticsearch
and remove the part ofDAEMON_OPTS
that sets default.data.path.Advice on a better fix is welcome.
The text was updated successfully, but these errors were encountered: