Elasticsearch 6.1.0 settings parser error


(Trondhindenes) #1

It seems that 6.1.0 is more strict in how it parses settings. We're trying to upgrade to 6.1.0 but are blocked because our config file is no longer working. We're using readonlyrest, and with this config, ES refuses to start, throwing a
Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: IllegalStateException[only value lists are allowed in serialized settings]

If I remove the following section from settings, everything works. I can't see anything wrong with this yml block, and its been working great on ES 6.0.0

readonlyrest:
    audit_collector: true

    external_authentication_service_configs:
      - name: elasticsearch_auth
        authentication_endpoint: "https://stuff.stuff/api/auth"
        success_status_code: 200
        cache_ttl_in_sec: 60

(Ryan Ernst) #2

This is a result of a refactoring that occurred to improve array/list handling in settings parsing. You should be able to simply remove the -.


(Trondhindenes) #3

But removing the '-' would no longer make it a list item?


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.