Difficulties to run reaper with postgresql backend

51 views
Skip to first unread message

Nicolas Charles

unread,
Dec 20, 2019, 9:11:13 AM12/20/19
to TLP Apache Cassandra Reaper users
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




reaper_start_and_crash.log
cassandra-reaper.yml

Alexander Dejanovski

unread,
Dec 20, 2019, 9:52:02 AM12/20/19
to Nicolas Charles, TLP Apache Cassandra Reaper users
Hi,

this was fixed in Reaper 2.0.1, so you'll need to upgrade to get it working again.

Cheers,

-----------------
Alexander Dejanovski
France
@alexanderdeja

Consultant
Apache Cassandra Consulting


--
You received this message because you are subscribed to the Google Groups "TLP Apache Cassandra Reaper users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlp-apache-cassandra-r...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlp-apache-cassandra-reaper-users/9ae01752-70e1-45e8-9a72-84e3f3a61b43%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages