cassandra-reaper icon indicating copy to clipboard operation
cassandra-reaper copied to clipboard

add cluster failing

Open bhanupratapm02 opened this issue 2 years ago • 0 comments

I am new to repear and I am trying to add cluster to the reaper tool and its failing with below error ERROR [2022-05-13 04:57:18,195] [dw-194 - POST /cluster/auth] i.d.j.e.IllegalStateExceptionMapper - Error handling a request: 8d1a256b1e84557e java.lang.IllegalStateException: No passphrase detected in environment for: REAPER_JMX_KEY at io.cassandrareaper.crypto.SymmetricCryptograph.fetchPassphrase(SymmetricCryptograph.java:117) at io.cassandrareaper.crypto.SymmetricCryptograph.encrypt(SymmetricCryptograph.java:78) at io.cassandrareaper.resources.ClusterResource.addOrUpdateCluster(ClusterResource.java:228) at io.cassandrareaper.resources.ClusterResource.addOrUpdateCluster(ClusterResource.java:175) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:475)


From cassandra-reaper.yaml

cryptograph: type: symmetric systemPropertySecret: REAPER_JMX_KEY

I did set environment variable export REAPER_JMX_KEY=somekeyvalue systemctl stop cassandra-reaper systemctl start cassandra-reaper

Please guide me how to fix this issue.

┆Issue is synchronized with this Jira Task by Unito ┆friendlyId: K8SSAND-1510 ┆priority: Medium

bhanupratapm02 avatar May 13 '22 09:05 bhanupratapm02