SQLite error[BUG]
gr00T0x opened this issue · comments
Describe the bug
I have been running Mihari 5.4.4 for months without any issues. Most of my rules are still running fine except a larger rule that returns the following error:
2023-12-19 08:55:31.050928 I [23:7000] Mihari -- Emission by Mihari::Emitters::Database is failed: SQLite3::ConstraintException: NOT NULL constraint failed: geolocations.country
Steps to reproduce
Expected behavior
The rule to run as expected
Actual behavior
The following error is returned without the rule being run:
2023-12-19 08:55:30.933162 I [22:7000] Mihari -- Emission by Mihari::Emitters::MISP is succeeded
2023-12-19 08:55:31.050928 I [23:7000] Mihari -- Emission by Mihari::Emitters::Database is failed: SQLite3::ConstraintException: NOT NULL constraint failed: geolocations.country
Screenshots
Add screenshots to help explain your problem.
System Information:
System Information:
OS: Ubuntu 20
Ruby version: (ruby:3.2.2-alpine3.18)
Mihari version: 5.4.4
Additional context
Add any other context about the problem here.
Fixed backend issue by setting countries table to allow Null values