TheHive-Project / TheHive

TheHive: a Scalable, Open Source and Free Security Incident Response Platform
https://thehive-project.org
GNU Affero General Public License v3.0
3.39k stars 618 forks source link

[Question] #2352

Open Martin1649 opened 2 years ago

Martin1649 commented 2 years ago

Request Type

Question

Work Environment

Question Answer
OS version (server) CentOS
Virtualized Env. True
Dedicated RAM 8 GB
vCPU 8
TheHive version / git hash 4.x, hash of the commit
Package Type RPM
Database Cassandra
Index type Lucene
Attachments storage Local
Browser type & version If applicable

Question

Describe the question/requirement as clearly as possible.

Failed to log in for the first time after installation

image

LOG: 2022-03-04 17:02:38,235 [ERROR] from org.thp.scalligraph.models.Database in application-akka.actor.default-dispatcher-13 [00000006|5a066f19] Exception raised, rollback (User not found) 2022-03-04 17:02:38,238 [WARN] from org.thp.thehive.services.TOTPAuthSrv in application-akka.actor.default-dispatcher-13 [00000006|5a066f19] local fails: org.thp.scalligraph.AuthenticationError: Authentication failure 2022-03-04 17:02:38,241 [INFO] from org.thp.scalligraph.AccessLogFilter in application-akka.actor.default-dispatcher-13 [00000006|] 100.121.135.17 POST /api/login took 133ms and returned 401 65 bytes 2022-03-04 17:06:50,194 [ERROR] from org.thp.scalligraph.traversal.TraversalOps in application-akka.actor.default-dispatcher-17 [00000007|4d7e8221] ObservableType 4144 doesn't comply with its schema, field login is missing: v[4144]

so,What is the reason for this, and How to solve it?

nankopeter commented 1 year ago

Hi, I had same issue. Remove existing indexes in "/opt/thp/thehive/index" for example with this "rm -rf /opt/thp/thehive/index/*". Next restart TheHive service. I hope it helps.