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] Migration 4 to 5 hangs #13

Open
plup opened this issue Sep 1, 2022 · 1 comment
Open

[Bug] Migration 4 to 5 hangs #13

plup opened this issue Sep 1, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@plup
Copy link

plup commented Sep 1, 2022

Request Type

Bug

Work Environment

Question Answer
OS version (server) strangebee/thehive:5.0
Virtualized Env. Kubernetes
TheHive version 5.0.12-1
Package Type Docker
Database Cassandra
Index type Elasticsearch
Attachments storage Local

Problem Description

ManagementSystem$UpdateStatusTrigger process hangs forever on a Set status REGISTERED on schema.... I left it running for 14 hours and it's sill on the same log line.

Steps to Reproduce

  1. Create a new cassandra:3.11.10 db with restored data from production database (same version)
  2. Upgrade to cassandra:4.0 node by node
  3. Upgrade sstables as stated in the doc
  4. Start a thehive:5.0 with extra config forcing index rebuild

Complementary information

In the logs I can see:

The extra config is loaded

including /etc/thehive/application.conf in the generated configuration

Something odd with the JanusDB speaking about a local elasticsearch...

JanusDatabase | Full-text index is available (elasticsearch:[127.0.0.1]) single node

Some expected things when upgrading:

IndexRemoveJob...

The first error (retried 6 times):

PermanentLockingException: Local lock contention

Some other expected things:

IndexRepairJob...

An error about the indexation:

The index global1 is in an invalid state and cannot be indexed.

Then it continues with som ManagementSystem$UpdateStatusTrigger | Set status REGISTERED on schema... and hangs.

I noticed it hangs when the property key writable appears in the list.

@plup plup added the bug Something isn't working label Sep 1, 2022
@plup plup changed the title [Bug] [Bug] Migration 4 to 5 hangs Sep 1, 2022
@plup
Copy link
Author

plup commented Sep 1, 2022

application.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant