ok, i missed that part ( and im not into Docker )
If that was the case there would be recorder integration errors in your core log. Like this:
Logger: homeassistant.components.recorder.util
Source: components/recorder/util.py:314
integration: Recorder (documentation, issues)
First occurred: November 10, 2024 at 4:12:00 AM (1 occurrences)
Last logged: November 10, 2024 at 4:12:00 AM
The system will rename the corrupt database file //config/home-assistant_v2.db to //config/home-assistant_v2.db.corrupt.2024-11-10T10:12:00.475793+00:00 in order to allow startup to proceed
Oh yeah, I do have the corrupted files that correspond to the missing data
home-assistant_v2.db.corrupt.2026-06-01T02:13:57
home-assistant_v2.db.corrupt.2026-06-14T02:16:16
and in the home-assistant.log.fault that has changed at 2026-06-14 21:11:32.418719024 +0200
Fatal Python error: Segmentation fault
Current thread 0x00007f7e6f119b30 (most recent call first):
<no Python frame>
Thread 0x00007f7e6e53eb30 (most recent call first):
File "/usr/local/lib/python3.13/threading.py", line 359 in wait
File "/usr/local/lib/python3.13/queue.py", line 202 in get
File "/usr/local/lib/python3.13/site-packages/anyio/_backends/_asyncio.py", line 956 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e6e7c2b30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e6e961b30 (most recent call first):
File "/usr/local/lib/python3.13/socket.py", line 977 in getaddrinfo
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59 in run
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 93 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e6ea7fb30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e6eb9db30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e6edeeb30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e6ef4db30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e6ffd3b30 (most recent call first):
File "/usr/local/lib/python3.13/site-packages/homeassistant/util/loop.py", line 201 in protected_loop_func
File "/usr/local/lib/python3.13/site-packages/pycares/__init__.py", line 359 in _run_safe_shutdown_loop
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e70209b30 (most recent call first):
File "/usr/local/lib/python3.13/threading.py", line 363 in wait
File "/usr/local/lib/python3.13/threading.py", line 659 in wait
File "/usr/local/lib/python3.13/site-packages/pychromecast/discovery.py", line 341 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e7032bb30 (most recent call first):
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e92608b30 (most recent call first):
<no Python frame>
Thread 0x00007f7e7887eb30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/site-packages/homeassistant/components/recorder/executor.py", line 22 in _worker_with_shutdown_hook
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e789d8b30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/site-packages/homeassistant/components/recorder/executor.py", line 22 in _worker_with_shutdown_hook
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e78b1ab30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/site-packages/homeassistant/components/recorder/executor.py", line 22 in _worker_with_shutdown_hook
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e78c3cb30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/site-packages/homeassistant/components/recorder/executor.py", line 22 in _worker_with_shutdown_hook
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e7c8cab30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e7c9e8b30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e85cbdb30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e92c41b30 (most recent call first):
File "/usr/local/lib/python3.13/site-packages/homeassistant/components/recorder/core.py", line 853 in _run_event_loop
File "/usr/local/lib/python3.13/site-packages/homeassistant/components/recorder/core.py", line 812 in _run
File "/usr/local/lib/python3.13/site-packages/homeassistant/components/recorder/core.py", line 690 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e9488eb30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e94992b30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e94a96b30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e94f43b30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e95083b30 (most recent call first):
File "/usr/local/lib/python3.13/site-packages/urllib3/util/connection.py", line 85 in create_connection
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 174 in _new_conn
File "/usr/local/lib/python3.13/site-packages/urllib3/connection.py", line 363 in connect
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 1061 in _validate_conn
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 404 in _make_request
File "/usr/local/lib/python3.13/site-packages/urllib3/connectionpool.py", line 716 in urlopen
File "/usr/local/lib/python3.13/site-packages/requests/adapters.py", line 667 in send
File "/usr/local/lib/python3.13/site-packages/requests/sessions.py", line 703 in send
File "/usr/local/lib/python3.13/site-packages/requests/sessions.py", line 589 in request
File "/usr/local/lib/python3.13/site-packages/qbittorrentapi/request.py", line 227 in request
File "/usr/local/lib/python3.13/site-packages/qbittorrentapi/request.py", line 188 in detect_scheme
File "/usr/local/lib/python3.13/site-packages/qbittorrentapi/request.py", line 141 in build_base_url
File "/usr/local/lib/python3.13/site-packages/qbittorrentapi/request.py", line 90 in build
File "/usr/local/lib/python3.13/site-packages/qbittorrentapi/request.py", line 799 in _request
File "/usr/local/lib/python3.13/site-packages/qbittorrentapi/request.py", line 664 in _request_manager
File "/usr/local/lib/python3.13/site-packages/qbittorrentapi/request.py", line 591 in _auth_request
File "/usr/local/lib/python3.13/site-packages/qbittorrentapi/request.py", line 555 in _post_cast
File "/usr/local/lib/python3.13/site-packages/qbittorrentapi/auth.py", line 88 in auth_log_in
File "/usr/local/lib/python3.13/site-packages/homeassistant/components/qbittorrent/helpers.py", line 14 in setup_client
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59 in run
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 93 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e95187b30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e95ccab30 (most recent call first):
File "/usr/local/lib/python3.13/logging/handlers.py", line 1539 in dequeue
File "/usr/local/lib/python3.13/logging/handlers.py", line 1590 in _monitor
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7e95dceb30 (most recent call first):
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 90 in _worker
File "/usr/local/lib/python3.13/threading.py", line 992 in run
File "/usr/local/lib/python3.13/threading.py", line 1041 in _bootstrap_inner
File "/usr/local/lib/python3.13/threading.py", line 1012 in _bootstrap
Thread 0x00007f7ea09ebb28 (most recent call first):
File "/usr/local/lib/python3.13/selectors.py", line 105 in select
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1996 in _run_once
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 677 in run_forever
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 706 in run_until_complete
File "/usr/local/lib/python3.13/site-packages/homeassistant/runner.py", line 154 in run
File "/usr/local/lib/python3.13/site-packages/homeassistant/__main__.py", line 213 in main
File "/usr/local/lib/python3.13/site-packages/homeassistant/__main__.py", line 227 in <module>
File "<frozen runpy>", line 88 in _run_code
File "<frozen runpy>", line 198 in _run_module_as_main
Extension modules: _cffi_backend, ciso8601, yaml._yaml, propcache._helpers_c, ulid_transform._ulid_impl, multidict._multidict, yarl._quoting_c, markupsafe._speedups, _brotli, aiohttp._http_writer, aiohttp._http_parser, aiohttp._websocket.mask, aiohttp._websocket.reader_c, frozenlist._frozenlist, annotatedyaml.reference, annotatedyaml.constructors, _awscrt, charset_normalizer.md, simplejson._speedups, requests.packages.charset_normalizer.md, requests.packages.chardet.md, dbus_fast.signature, dbus_fast._private.marshaller, dbus_fast.message, dbus_fast.service, dbus_fast._private.address, dbus_fast.unpack, dbus_fast.message_bus, dbus_fast._private.unmarshaller, dbus_fast.aio.message_reader, habluetooth.models, habluetooth.advertisement_tracker, bluetooth_data_tools.gap, bluetooth_data_tools._time_impl, bluetooth_data_tools._utils_impl, bluetooth_data_tools.utils, habluetooth.manager, habluetooth.base_scanner, habluetooth.scanner, zeroconf._utils.time, zeroconf._dns, zeroconf._protocol.outgoing, zeroconf._protocol.incoming, zeroconf._cache, zeroconf._record_update, zeroconf._history, zeroconf._updates, zeroconf._services, zeroconf._utils.ipaddress, zeroconf._services.info, zeroconf._services.registry, zeroconf._handlers.answers, zeroconf._handlers.multicast_outgoing_queue, zeroconf._handlers.query_handler, zeroconf._handlers.record_manager, zeroconf._listener, zeroconf._services.browser, sqlalchemy.cyextension.collections, sqlalchemy.cyextension.immutabledict, sqlalchemy.cyextension.processors, sqlalchemy.cyextension.resultproxy, sqlalchemy.cyextension.util, greenlet._greenlet, fnv_hash_fast._fnv_impl, PIL._imaging, isal.igzip_lib, isal.isal_zlib, cached_ipaddress.ipaddress, numpy._core._multiarray_umath, numpy.linalg._umath_linalg, audioop._audioop, av._core, av.logging, av.bytesource, av.buffer, av.audio.format, av.enum, av.error, av.utils, av.option, av.descriptor, av.container.pyio, av.dictionary, av.format, av.stream, av.container.streams, av.sidedata.motionvectors, av.sidedata.sidedata, av.opaque, av.packet, av.container.input, av.container.output, av.container.core, av.codec.context, av.video.format, av.video.reformatter, av.plane, av.video.plane, av.video.frame, av.video.stream, av.codec.codec, av.frame, av.audio.layout, av.audio.plane, av.audio.frame, av.audio.stream, av.filter.pad, av.filter.link, av.filter.context, av.filter.graph, av.filter.filter, av.audio.resampler, av.audio.codeccontext, av.audio.fifo, av.bitstream, av.video.codeccontext, cchardet._cchardet, lxml._elementpath, lxml.etree, psutil._psutil_linux, psutil._psutil_posix, PIL._imagingft, google._upb._message, grpc._cython.cygrpc, aioesphomeapi._frame_helper.base, aioesphomeapi._frame_helper.pack, aioesphomeapi._frame_helper.noise_encryption, aioesphomeapi._frame_helper.packets, aioesphomeapi._frame_helper.noise, aioesphomeapi._frame_helper.plain_text, aioesphomeapi.connection, aioesphomeapi.client_base, bleak_esphome.backend.scanner, psycopg2._psycopg, netifaces (total: 135)
go to /Setting/System/Logs , Click on the 3 dots to the right “Show Raw Logs( reads from journal i believe )” , Then click on the Download Arrow (Choose 10000 Lines) …should cover back to before the 14th-June ( If you’r lucky )
Or check files in /Journald, Logs gets “rotated” not overwritten after a week or 2 ( or a day )
” /var/log/journal/xxxxxxxxx/bunchoffiles”
Earliest Log from ha settings is from 2026-06-15 23:16:41.497.
/var/log/ is empty in the lscr.io/linuxserver/homeassistant docker container i use
as i said, im not into Docker, but im pretty sure HA uses Journald even in a Docker-Install ( I could be wrong ) ( Maybe you are looking in the wrong Container )
Did You download 10000Lines ?, in that case you have serious issues
/Settings/system/Logs 3 Dots to the Right, RAW-Logs
Download Arrow ( Beside(infront) of 3 Dots ) Choose 10000
If this wont work for you, i believe you have to use a “Linux Journal Reader” to read the individual logfiles ( Or linux command-line ), And read HA Docker-Install Docs( for the location of rotated logs ), If that’s your HA Install Type
Yes, downloaded all the lines and the file starts at 2026-06-15 23:16:41.497, then i scolled to the top with the earliest log being the same.
I dont think other logs are there, because only persistent mount is config and other will get deleted after container restart, which I did. I guess I will wait on another corruption and try to capture the logs.
Ok, apparently Docker is way different than i.e Supervised and HAOS
I noticed Docker Install by default uses “json-file” for logs …. Stored somewhere
And if it’s as you say, it sounds like a Very “not recommended” install type, if you need/want to troubleshoot
I’ve never heard of such a “system” which trow away logfiles during a restart/reboot, not even after an “unexpected” shutdown
Don’t “think”
Somewhere somehow you have a Log-Service which also includes the HA, but where/how you have your Docker-Install setup Running, only you ofcause know
Wiping logs do to a restart/reboot/crash, seems like a “HardCore” way of running a system ( Interpret “HardCore” as you like ![]()
What hardware are you running Home Assistant on?
Segmentation failures are not good. They typically point to hardware issues.
Its an Intel N100 NAS motherboard with Unraid.
What else do you have running there, beside HA in Docker
Dispatcharr
Dozzle
adminer
browserless-v2
code-server
qbittorrent-vpn
homeassistant
dawarich_db
gotenberg
pyload-ng
sonarr
watchtower
dawarich_app
dawarich_sidekiq
immich_redis
paperless_redis
radarr
tautulli
prowlarr
qui
vivaldi
homepage
homepage-fotky
swag
nginx-iptv
immich-kiosk
ESPHome
morphe-builder
zigbee2mqtt
bazarr
duckdns
changedetection.io
ActualServer
SFTPGo
mealiev1
audiobookshelf
rsnapshot
Authelia
flaresolverr
bentopdf
OpenThreadBorderRouter-HA
plex
OnlyOfficeDocumentServer
dawarich_redis
filebrowser-quantum
hoarder
Maubot
lock-control
immich_server
immich_machine_learning
paperless-ngx
unpackerr
microbin
recyclarr
overseerr
immich_power_tools
matter-server
dockersocket
immich_db_dumper
immich_postgres
mosquitto
bazos-scraper-api
meilisearch
Apache-Tika-Server
redis
postgresql13
mariadb
speedtest_tracker
The issue might be that I have the database file on brtfs cache pool composed of 3 SSDs and the constant writes to the database file, which is large, splits it on the ssd and eventually corrupts it. So I have disabled CoW on the database file and updated the Recorder commit_intervat to 30s.
You are kidding right ? , All those Services/Servers on one and same 4 Core motherboard ?
… And Yes your DB “Solution” is also , kind off , “balled"/”hardcore”/”optimistic” and … yes im sarcastic
I dont see anything inherently wrong running all those containers. The cache configuration might need a look at.
Ah so that's why you're getting segfaults. Don't get me wrong, I'm a big fan of the N100 but that is just too much.
Processor contention and queuing.
Disk contention and queueing.
I used to be a performance engineer for one of the os mfrs.
There is something very very wrong with that list on an n100 with 4 cores I split HALF that across three entire Proxmox nodes and am STILL having to actively manage threads and contention.
The biggest problem is the disk queue. I'm seeing a BUNCH of containers with databases and if you haven't taken steps to consolidate the data surface. Well leslts just say I'd bet those platters are NOT happy.... Now I know why you're getting disk errors. I'd bet real money it's a direct result. Sorry. I'd be splitting those loads in a hurry.

