eww: EWW Filling ~/.chache With Massive 500G Log [BUG]
Checklist before submitting an issue
- I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
- I have specifically verified that this bug is not a common user error
- I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)
Description of the bug
A massive log file is generated in ~/.cache.
Here is the (eww-related) output of ls -la in ~/.cache:
.rw-r–r-- 52k isaac 20 Apr 15:45 eww_9056c77df6de77d0.log .rw-r–r-- 267M isaac 20 Apr 09:14 eww_a10aa33e2445ee6b.log .rw-r–r-- 531G isaac 20 Apr 16:00 eww_b8f4ff56cd76310e.log .rw-r–r-- 83M isaac 20 Apr 15:43 eww_bf24495fb8cff968.log .rw-r–r-- 22k isaac 20 Apr 15:46 eww_cb86edef4769841d.log .rw-r–r-- 836k isaac 20 Apr 15:37 eww_f50d6af04696deab.log .rw-r–r-- 2.1M isaac 20 Apr 06:02 eww_fa678f477ccfc02e.log
I deleted the file and purged my trash yesterday and checked to ensure the space was free, but after a day it’s already back.
Reproducing the issue
My configuration is visible here: https://gitlab.com/IsaacBrown92/dotfiles/-/tree/main/home-manager/modules/eww
Other than that I have no idea how to reproduce the issue. I cannot tell why the behaviour is happening.
Expected behaviour
No response
Additional context
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 23 (8 by maintainers)
Commits related to this issue
- Fix logfiles growing indefinitely (fixes #750, #689, #1000) — committed to kokizzu/eww by elkowar 4 months ago
Lmao, okay I knew I should really put logs somewhere else, or do some sort of log rotation, but a 500 gig file is a very good reason to start implementing that now. Thanks, I hope your hard drive is doing well ^^’
@Swexti Just pipe that log file to /dev/null.
Inspired from webscale mango db.
Note that you probably shouldn’t export XDG_CACHE_HOME to /tmp as it could pretty much break caching on your computer, better to use the first solution (just for eww)
This is an issue that’s really putting me off from using EWW as a daily-driver. The log files just get so big. And as someone who uses a lot of literal scripts, the logs fill up quickly. I keep my system running for days on-end, so keeping everything inside
/tmpstill creates huge log files. I wonder if it would be possible to routinely remove the log file as a workaround?Would really like Elk to get working on this.
EDIT: on further inspection, my literal scripts do not fill up my log files, actually. They still get really big, though. But not because of my scripts.
Just to give a minor update if someone is looking to solve the bug, this is what my log gets filled with:
Hahaha, epic thanks. Yeah it pwned my hardrive once already. 😛