Hello,
I'm trying to run cassandra-reaper with a postgresql backend.
Java crashes on a NullPointerException at start.
I'm running with
reaper-1.5.0_BETA_20191018-1.x86_64
postgresql10-10.11-2PGDG.rhel7.x86_64
It seems that reaper is able to reach postgresql and store its data :
postgres=# \c reaper
You are now connected to database "reaper" as user "postgres".
reaper=# \dt
List of relations
Schema | Name | Type | Owner
--------+------------------------------+-------+--------
public | cluster | table | reaper
public | diag_event_subscription | table | reaper
public | flyway_schema_history | table | reaper
public | leader | table | reaper
public | node_metrics_v1 | table | reaper
public | node_metrics_v2 | table | reaper
public | node_metrics_v2_metric_types | table | reaper
public | node_metrics_v2_source_nodes | table | reaper
public | node_operations | table | reaper
public | repair_run | table | reaper
public | repair_schedule | table | reaper
public | repair_segment | table | reaper
public | repair_unit | table | reaper
public | running_reapers | table | reaper
public | snapshot | table | reaper
(15 rows)
Below is last line of debug. Complete log is attached, and my reaper configuration yaml.
[...]
INFO [2019-12-20 14:45:33,971] [main] i.c.ReaperApplication - creating and registering health checks
INFO [2019-12-20 14:45:33,971] [main] i.c.ReaperApplication - creating resources and registering endpoints
DEBUG [2019-12-20 14:45:34,204] [main] o.e.j.s.session - SessionManager default maxInactiveInterval=600
DEBUG [2019-12-20 14:45:34,204] [main] o.e.j.u.c.ContainerLifeCycle - i.d.j.MutableServletContextHandler@48d293ee{/,null,UNAVAILABLE} added {org.eclipse.jetty.server.session.SessionHandler1371953731==dftMaxIdleSec=600,MANAGED}
DEBUG [2019-12-20 14:45:34,204] [main] o.e.j.u.c.ContainerLifeCycle - org.eclipse.jetty.server.session.SessionHandler1371953731==dftMaxIdleSec=600 added {ServletHandler@146dcfe6{STOPPED},MANAGED}
DEBUG [2019-12-20 14:45:34,205] [main] o.e.j.u.c.ContainerLifeCycle - org.eclipse.jetty.server.session.SessionHandler1371953731==dftMaxIdleSec=600 added {ServletHandler@146dcfe6{STOPPED},MANAGED}
java.lang.NullPointerException
at javax.xml.bind.DatatypeConverterImpl.guessLength(DatatypeConverterImpl.java:654)
at javax.xml.bind.DatatypeConverterImpl._parseBase64Binary(DatatypeConverterImpl.java:692)
at javax.xml.bind.DatatypeConverterImpl.parseBase64Binary(DatatypeConverterImpl.java:434)
at javax.xml.bind.DatatypeConverter.parseBase64Binary(DatatypeConverter.java:342)
at io.cassandrareaper.resources.auth.ShiroJwtProvider.getSigningKey(ShiroJwtProvider.java:63)
at io.cassandrareaper.resources.auth.ShiroJwtProvider.<init>(ShiroJwtProvider.java:44)
at io.cassandrareaper.ReaperApplication.run(ReaperApplication.java:257)
at io.cassandrareaper.ReaperApplication.run(ReaperApplication.java:91)
at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:43)
at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)
at io.dropwizard.cli.Cli.run(Cli.java:78)
at io.dropwizard.Application.run(Application.java:93)
at io.cassandrareaper.ReaperApplication.main(ReaperApplication.java:110)
Reaper runs perfectly fine when using memory storageType.
Thanks for you help !
Nicolas