-
Notifications
You must be signed in to change notification settings - Fork 228
v1.12.0: The keystore properties are not valid #77
Comments
I can confirm: It is the 1.12.0 of the image causing this. A 1.11.4 works. |
@xasx The helm chart now uses nifi 1.12.1 by default. (chart version 0.5.4) Can you tell me if it is working for you with this new version? |
@alexnuttinck stranegly, it does not work. I Same error message: app-log.log |
This issue and #92 are caused by this check in the Apache Nifi source code: https://github.com/apache/nifi/blob/c2960998ac70009d9365326dce47b3d15ad299e4/nifi-commons/nifi-security-utils/src/main/java/org/apache/nifi/security/util/SslContextFactory.java#L159 Since 1.12 Nifi assumes that if any keystore/truststore parameters are set then the user wants to actually use them, and so throws an error when the rest of the parameters are invalid. The default nifi.properties for this chart sets both helm-nifi/configs/nifi.properties Line 154 in b8927f7
Setting them to blank values makes the chart work again, however a true fix would be to set them to |
…ault. Nifi 1.12.1 checks whether any of these `nifi.security.XXX` values is non-empty to determine whether the user wants to set a keystore or not. We leave them blank by default so unsecured clusters will at least run. Fixes the "TlsException: The keystore properties are not valid" error when starting up. Fixes cetic#77
Describe the bug
The Nifi pods won't come up.
Version of Helm and Kubernetes:
Helm v3.3.0
Kubernetes v1.19.2
What happened:
Initially installed the helm chart with some values.
The Nifi pods app-log container logs:
This makes Jetty shutdown. And the pod gets int CrashLoopBackoff
What you expected to happen:
Everything is deployed and application runs flawlessly.
How to reproduce it (as minimally and precisely as possible):
Config values
externalSecure
set totrue
LoadBalancer
1.12.0
(I guess that's the reason?!)Then
helm upgrade -i nifi cetic/nifi -f nifi-values.yaml
The text was updated successfully, but these errors were encountered: