frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Loading full home assistant log crashes/freezes browser.

Open niemyjski opened this issue 5 years ago • 17 comments

Checklist

  • [x] I have updated to the latest available Home Assistant version.
  • [x] I have cleared the cache of my browser.
  • [x] I have tried a different browser to see if it is related to my browser.

The problem

Home assistant log file is 609,000 lines long of content. Clicking load full log literally freezes and then crashes safari. On Chrome it freezes for a while and then loads but scrolling causes issues with rendering the text (page is empty when I scroll).

Expected behavior

My browser shouldn't crash, perhaps the log file needs to be truncated and/or buffered.

Steps to reproduce

  1. Create a home-assistant.log file with 600k+ (perferrably a million lines of text). If I had to guess each line of the logs is about 125 characters.
  2. Open the logs section
  3. Click Load full home assistant log file.

Environment

  • Home Assistant release with the issue: 118.5
  • Last working Home Assistant release (if known):
  • Browser and browser version: Safari 14.0.1 / Chrome 85 latest
  • Operating system: Big Sur 11.0.1

State of relevant entities


Problem-relevant configuration


Javascript errors shown in your browser console/inspector


Additional information

niemyjski avatar Dec 11 '20 03:12 niemyjski

How do you end up with a such a massive log? Do you have very verbose log / debug settings?

I am not really sure if that is actually relevant production use case then.

spacegaier avatar Dec 11 '20 10:12 spacegaier

I had my log level set to info, but there must have been an update to HomeKit lately because a large percentage of it was HomeKit getting characteristics. I have tons of integrations and entities. Regardless it's impossible to know what production levels are but I'd say this is production. The longer and more stable ha is the bigger the log file will be

niemyjski avatar Dec 11 '20 13:12 niemyjski

I am not sure if log level "info" is really production if there is a bunch of technical data stored in the log (I assume that is what those mentioned characteristics are).

You might consider rotating the log files, e.g.: hass --log-rotate-days 4

To really handle huge logs in the frontend we would probably need to paginate the rendering.

spacegaier avatar Dec 11 '20 15:12 spacegaier

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 11 '21 16:03 github-actions[bot]

Still an issue

niemyjski avatar Mar 11 '21 18:03 niemyjski

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 09 '21 19:06 github-actions[bot]

Still an issue

niemyjski avatar Jun 09 '21 21:06 niemyjski

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Sep 07 '21 23:09 github-actions[bot]

Still an issue

niemyjski avatar Sep 08 '21 02:09 niemyjski

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 07 '21 03:12 github-actions[bot]

Still an issue

niemyjski avatar Dec 07 '21 04:12 niemyjski

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 07 '22 06:03 github-actions[bot]

Still an issue

niemyjski avatar Mar 07 '22 12:03 niemyjski

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 05 '22 12:06 github-actions[bot]

Still an issue

niemyjski avatar Jun 06 '22 13:06 niemyjski

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Sep 17 '22 18:09 github-actions[bot]

Still an issue

niemyjski avatar Sep 19 '22 13:09 niemyjski

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 11 '23 09:12 github-actions[bot]

Still an issue

niemyjski avatar Dec 11 '23 15:12 niemyjski

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 10 '24 17:03 github-actions[bot]

Still an issue

niemyjski avatar Mar 10 '24 17:03 niemyjski

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 08 '24 20:06 github-actions[bot]

Still an issue

niemyjski avatar Jun 10 '24 16:06 niemyjski