Main ERROR ESJsonLayout contains an invalid element or a ttribute "esmessagefields"


I have ES cluster with version 7.4.2.
and i have version 7.3.1 also. ES clustering is working fine. But when i am trying to start ES services for version 7.3.1 . I am getting an error:

Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was depreca
ted in version 9.0 and will likely be removed in a future release.
2020-01-28 04:43:13,346 main ERROR ESJsonLayout contains an invalid element or a
ttribute "esmessagefields"
2020-01-28 04:43:13,374 main ERROR ESJsonLayout contains an invalid element or a
ttribute "esmessagefields"
2020-01-28 04:43:13,382 main ERROR ESJsonLayout contains an invalid element or a
ttribute "esmessagefields"
[2020-01-28T04:43:14,426][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [N
L0123EPCC019] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: c
annot downgrade a node from version [7.4.2] to version [7.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(
) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(
150) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwar ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(
24) ~[elasticsearch-cli-7.3.1.jar:7.3.1]
at org.elasticsearch.cli.Command.main( ~[elasticsearch-c
at org.elasticsearch.bootstrap.Elasticsearch.main(
) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(
Caused by: java.lang.IllegalStateException: cannot downgrade a node from version
[7.4.2] to version [7.3.1]
at org.elasticsearch.env.NodeMetaData.upgradeToCurrentVersion(NodeMetaDa ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.env.NodeEnvironment.loadOrCreateNodeMetaData(NodeEn ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.env.NodeEnvironment.(
) ~[elasticsearch-7.3.1.jar:7.3.1]
at org.elasticsearch.node.Node.( ~[elasticsearch-7.3
at org.elasticsearch.node.Node.( ~[elasticsearch-7.3
at org.elasticsearch.bootstrap.Bootstrap$5.( ~[
at org.elasticsearch.bootstrap.Bootstrap.setup( ~[ela
at org.elasticsearch.bootstrap.Bootstrap.init( ~[elas
at org.elasticsearch.bootstrap.Elasticsearch.init(
) ~[elasticsearch-7.3.1.jar:7.3.1]
... 6 more


The error is:

cannot downgrade a node from version [7.4.2] to version [7.3.1]

Why do you want to mix versions?

Hello @dadoonet,

Actually es cluster version is 7.4.2 and my indexes are created on older version. (7.3.1).
I am trying logstash jdbc input plugin to create new indexes from db in new cluster version. but i am getting error there.

So i am trying to start es services for older version.


You can't downgrade.

May be share what the real problem is ?

Hello @dadoonet,

I am getting below error when i am trying to start logstash from new es version (7.4.2):

E:\logstash-7.4.2\bin>logstash -f Master.conf
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was depreca
ted in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.runtime.encoding.EncodingService
(file:/E:/logstash-7.4.2/logstash-core/lib/jars/jruby-complete- to
WARNING: Please consider reporting this to the maintainers of org.jruby.runtime.
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect
ive access operations
WARNING: All illegal access operations will be denied in a future release
Thread.exclusive is deprecated, use Thread::Mutex
Sending Logstash logs to E:/logstash-7.4.2/logs which is now configured via log4
[2020-01-28T07:19:51,282][WARN ][logstash.config.source.multilocal] Ignoring the
'pipelines.yml' file because modules or command line options are specified
[2020-01-28T07:19:51,294][INFO ][logstash.runner ] Starting Logstash {"
[2020-01-28T07:19:52,834][INFO ][org.reflections.Reflections] Reflections took 4
0 ms to scan 1 urls, producing 20 keys and 40 values
[2020-01-28T07:19:53,146][ERROR][logstash.agent ] Failed to execute ac
tion {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"J
ava::JavaLang::IllegalStateException", :message=>"Unable to configure plugins: I
llegal character in opaque part at index 5: http:\\localhost:9200", :backt
)", "org.logstash.execution.JavaBasePipelineExt.initialize(JavaBasePipelineExt.j
ava:60)", "org.logstash.execution.JavaBasePipelineExt$INVOKER$i$1$0$initialize.c
all(JavaBasePipelineExt$INVOKER$i$1$0$initialize.gen)", "org.jruby.internal.runt
ime.methods.JavaMethod$", "
time.IRRuntimeHelpers.instanceSuper(", "
runtime.IRRuntimeHelpers.instanceSuperSplatArgs(", "o
39)", "E_3a_.logstash_minus_7_dot_4_dot_2.logstash_minus_core.lib.logstash.java_
ava_pipeline.rb:26)", "", "org.jruby.internal.runtime.methods.MixedModeIRMetho", "org.jruby.runtime.callsite.CachingCallSite.
cacheAndCall(", "org.jruby.runtime.callsite.CachingCall", "org.jruby.RubyClass.newInstance(RubyClass.
java:915)", "org.jruby.RubyClass$INVOKER$i$$INVOKER$i$
newInstance.gen)", ""
, "E_3a_.logstash_minus_7_dot_4_dot_2.logstash_minus_core.lib.logstash.pipeline_
/pipeline_action/create.rb:36)", "E_3a_.logstash_minus_7_dot_4_dot_2.logstash_mi
:/logstash-7.4.2/logstash-core/lib/logstash/pipeline_action/create.rb)", "org.jr", "
:90)", "", "E_3a_.log
erge_state$2(E:/logstash-7.4.2/logstash-core/lib/logstash/agent.rb:326)", "org.j
ruby.runtime.CompiledIRBlockBody.callDirect(", "org", "org.jruby.runtime.Block.
call(", "", "org.jruby.", "",
"", "java.bas
warning: thread "Converge PipelineAction::Create" terminated with exceptio
n (report_on_exception is true):
LogStash::Error: Don't know how to handle Java::JavaLang::IllegalStateException for PipelineAction::Create<main>
create at org/logstash/execution/
add at org/logstash/execution/
converge_state at E:/logstash-7.4.2/logstash-core/lib/logstash/agent.rb:339
[2020-01-28T07:19:53,170][ERROR][logstash.agent ] An exception happene
d when converging configuration {:exception=>LogStash::Error, :message=>"Don't k
now how to handle Java::JavaLang::IllegalStateException for PipelineAction::C reate<main>", :backtrace=>["org/logstash/execution/
n create'", "org/logstash/execution/ add'", "E:/lo
gstash-7.4.2/logstash-core/lib/logstash/agent.rb:339:in block in converge_state '"]} [2020-01-28T07:19:53,354][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600} [2020-01-28T07:19:53,422][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<LogStash::Error: Don't know how to handle Java::JavaLang::
IllegalStateExceptionforPipelineAction::Create>, :backtrace=>["org/lo gstash/execution/ create'", "org/logstash/executio
n/ add'", "E:/logstash-7.4.2/logstash-core/lib/logs tash/agent.rb:339:in block in converge_state'"]}
[2020-01-28T07:19:53,558][ERROR][org.logstash.Logstash ] java.lang.IllegalSta
teException: Logstash stopped processing because of an error: (SystemExit) exit


Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:


This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Please update your post.

Does the problem happen with LS 7.3.1? If not, I think you can always connect LS 7.3 to ES 7.4. Although I'd not really recommend it.

Then, I'd suggest that you ask about the Logstash problem specifically in #logstash or move your question there.

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