Hi there,
I am currently doing a stack upgrade from 7.0.1
to 7.6.2
. Everything went fine on the Elasticsearch cluster and Kibana instances but I have issues upgrading Logstash.
To be precise, Logstash upgrade was fine, the issue I have is located in a pipeline and precisely in a Beats input (so logstash-input-beats
).
The problem seems to be located in the ssl_key
param of the beats input. The following error is popping up in Logtash logs:
[2020-04-15T14:07:44,572][ERROR][logstash.javapipeline ] Pipeline aborted due to error {:pipeline_id=>"mon_collector", :exception=>java.lang.IllegalArgumentException: File does not contain valid private key: /etc/pki/local/my-host.key.pem, :backtrace=>["io.netty.handler.ssl.SslContextBuilder.keyManager(io/netty/handler/ssl/SslContextBuilder.java:270)", "io.netty.handler.ssl.SslContextBuilder.forServer(io/netty/handler/ssl/SslContextBuilder.java:90)", "org.logstash.netty.SslContextBuilder.buildContext(org/logstash/netty/SslContextBuilder.java:104)", "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)"
What is strange is that everything was working fine with Logstash 7.0.1
and I did not change anything to the configuration / pipeline configuration during the upgrade. Moreover, I tried to rollback on 7.0.1
it worked fine again, I also tried version 7.4.2
, 7.5.2
, it is working fine too...
The breaking point seems to be version 7.6.x
(I tried 7.6.1
, 7.6.2
, both output the error and the pipeline does not start). I did not try 7.6.0
but I think it will be the same...
I searched a lot (here, GitHub, StackOverflow, googling) and tried about everything I found:
- File permission (including changing owner to Logstash)
- Ensure private key format is correct (by the way a copy of the same private key is used by Elasticsearch on this host and is currently working with
7.6.2
) - Generate a new key
At this point, I believe this is a specific issue regarding 7.6.x
version(s), and since I did not find any recent post this might be the case (7.6.x
are recent versions at the time I'm writing this).
Again, what is really strange is that 7.6
upgrade seems to break things. I have seen in release notes that there were some changes around SSL things (like netty) recently and may be it is related.
So here is my main question: while upgrading from 7.0.1
(or 7.5.2
) to 7.6.2
, am I supposed to do anything particular on the SSL settings?
Thank you in advance for your help,
Kuaaaly