Keep log file information after restart of Home Assistant to see what caused segfault

Any suggestion how I can troubleshoot segfault happening more frequently now about 3 to 4 times in a week. I see my Home Assistant gets restarted due to this but after restart home_assistant.log information cleared out and don’t get to see any error occurred just before restart?

I run Ubuntu 16.04 LTS and HA 0.85.1 runs under docker. Kernel log shows this kind of information:

kernel: [1700177.780081] python[28977]: segfault at 3 ip 00007fc2cdc94fe3 sp 00007fc29fffbaa0 error 6 in libssl.so.1.1[7fc2cdc77000+63000]

Some other notes: I have many other docker containers running with other services and have noticed same kind of restart in previous version of HA as well. By the way I have many (so many) entities, running all automation in AppDaemon.
Thanks

Can you get a longer history with docker log?

1 Like

Thanks for the reply.
I did check docker log for this HA container but don’t see much except just speed test information as shown below, that also doesn’t have date/time stamp. Not sure how I can change/set to get more log.

0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
0 0 20 0 0 2154 0 --:–:-- --:–:-- --:–:-- 2222
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed