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
unbound/logger.py crash #7049
Comments
intel microcode issues? the N families seem to be famous for strange behavior |
I've the same issue with Celeron N5095 |
any idea when the issue started? If logger.py is not running and crashes quite rapidly, you could try to run the logger in a shell to see if it produces any readable errors using the following command:
|
more information: |
no clue what happened there, could be an issue with duckdb, it doesn't seem to produce a python exception which points to something more low level |
This might be caused by a broken database file, can you try to install 29377ce and export/import the database using the commands below?
This likely also shrinks the db file (/var/unbound/data/unbound.duckdb ) significantly as well. |
caused by a broken database file. |
close issue then? |
Thank you very much! |
I've also been seeing this since December. Deleting the database is a workaround, but ideally we should solve the root cause of the database corruption. It seems strange that everyone has started seeing it recently, has anything changed in the logging code? |
Instead of dropping the database, one could try to repair it as suggested earlier (#7049 (comment)). If a repair helps, that's something we might be able to automate at some point in time. Otherwise we can wait for the next duckdb version and see if that improves the situation..... Unfortunately we can only do that on major upgrades at the moment due to duckdb files not being binary compatible.... |
…nd always dump before system shutdown to be able to ship duckdb library upgrades on minor releases in the future. In an attempt to keep the database clean and hopefully error prone, the logger will export/import now every ~24 hours. As these operations are rather quick it should help to minimize the footprint as well (duckdb files keep growing after deletes). closes #7049
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
A clear and concise description of what the bug is, including last known working version (if any).
Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
no crash
Describe alternatives you considered
no
Screenshots
no
Relevant log files
System log:
2023-12-03T16:47:46 | Notice | kernel | <6>pid 82433 (python3.9), jid 0, uid 0: exited on signal 6
Services: Unbound DNS: Log File
2023-12-03T16:48:12 Informational unbound [78837:0] info: dnsbl_module: no logging backend found.
2023-12-03T16:48:12 Informational unbound [78837:0] info: dnsbl_module: attempting to open pipe
2023-12-03T16:48:01 Informational unbound [78837:1] info: dnsbl_module: no logging backend found.
2023-12-03T16:48:01 Informational unbound [78837:1] info: dnsbl_module: attempting to open pipe
2023-12-03T16:47:46 Informational unbound [78837:6] info: dnsbl_module: no logging backend found.
2023-12-03T16:47:46 Informational unbound [78837:6] info: dnsbl_module: attempting to open pipe
2023-12-03T16:47:46 Informational unbound [78837:5] info: dnsbl_module: Logging backend closed connection. Closing pipe and continuing.
then i found unbound/logger.py crashing...
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
8192 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
9754 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
11230 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
12236 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
14652 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
16047 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
17997 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
18315 0 S+ 0:00.01 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
20902 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
21931 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
22734 0 S+ 0:00.01 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
23895 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
25625 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
25998 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
27812 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
root@opn:~ # ps -A | grep "/usr/local/opnsense/scripts/unbound/logger.py"
28992 0 S+ 0:00.00 grep /usr/local/opnsense/scripts/unbound/logger.py
Additional context
no
Environment
Software version used and hardware type if relevant, e.g.:
OPNsense 23.7.9 (amd64).
Intel(R) Core(TM) i3-N305 (8 cores, 8 threads)
The text was updated successfully, but these errors were encountered: