Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] TheHive doesn't start if cassandra is not ready #1725

Closed
To-om opened this issue Dec 26, 2020 · 0 comments
Closed

[Bug] TheHive doesn't start if cassandra is not ready #1725

To-om opened this issue Dec 26, 2020 · 0 comments
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@To-om
Copy link
Contributor

To-om commented Dec 26, 2020

Request Type

Bug

Work Environment

TheHive with cassandra

Problem Description

If cassandra service is not ready, TheHive fails to start with the error:

java.lang.reflect.InvocationTargetException: null
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /x.x.x.x:9042 (com.datastax.driver.core.exceptions.TransportException: [/x.x.x.x:9042] Cannot connect))

The solution is to retry the connection to cassandra after a while. The following configuration is added to define the timings and the number of retries:

db.janusgraph.connect {
  maxAttempts = 10
  minBackoff = 1 second
  maxBackoff = 5 seconds
  randomFactor = 0.2
}
@To-om To-om added bug TheHive4 TheHive4 related issues labels Dec 26, 2020
@To-om To-om added this to the 4.1.0 milestone Dec 26, 2020
@To-om To-om self-assigned this Dec 26, 2020
@To-om To-om closed this as completed Dec 26, 2020
@To-om To-om modified the milestones: 4.1.0, 4.0.4 Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

1 participant