Fix for chromium BrowserMetrics filling filesystem: '/dev/mmcblk0p2' Disk Full, '/home/pi/.config/chromium/BrowserMetrics' fills entire disk, chromium will not load, FullPageOS logo shows. Also fix for Also add fix for changing hostname (clear chromium/Singleton*)
Opened this issue · 7 comments
What were you doing?
Chromium BrowserMetrics is filling filesystem
Also add fix for changing hostname (clear chromium/Singleton*)
After a while the SD card becomes full.
running sudo ncdu -x
at the drive root shows that the disk /dev/mmcblk0p2
is 100% full.
This is due to /home/pi/.config/chromium/BrowserMetrics
filling the entire disk
Chromium will not load, FullPageOS logo shows, cursor works, VNC works.
Suggested fix...
On the script that loads FullPageOS add the following commands to run:
rm -R /home/pi/.cache/chromium/Default/Cache
rm -R /home/pi/.config/chromium/BrowserMetrics/*.*
rm -rf ~/.config/chromium/Singleton*
Ref: andrewmcdan/mj-launcher@bbc55c8
What did you expect to happen?
N/A
What happened instead?
N/A
Was there an error message displayed? What did it say?
None
Version of FullPageOS?
0.14.0
Screenshot(s) showing the problem:
N/A
If you are building FullPageOS - provide a build.log that is created for the build
I think this would fix:
#508
I tested it and it is working if added to run_onepageos
#!/bin/bash
USER_AGENT="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
feh --bg-center /opt/custompios/background.png
rm -R /home/pi/.cache/chromium/Default/Cache
rm -R /home/pi/.config/chromium/BrowserMetrics/*.*
rm -rf ~/.config/chromium/Singleton*
while true
do
if [[ $(curl -sL -b cookiefile -w "%{http_code}\\n" -H "user-agent: ${USER_AGENT}" "$(/opt/custompios/scripts/get_url)" -o /dev/null) =~ ^([23][0-9]{2,2}|401)$ ]] || grep -q disabled "/boot/firmware/check_for_httpd" ; then
xdotool mousemove 9000 9000
/opt/custompios/scripts/start_chromium_browser
fi
sleep 1
done
It does not seem to me that this is a solution, more like a workaround:
rm -R /home/pi/.cache/chromium/Default/Cache
rm -R /home/pi/.config/chromium/BrowserMetrics/*.*
rm -rf ~/.config/chromium/Singleton*
What exactly is filling it up? What is in that folder?
What size sd card? perhaps its too small?
Hello, the SD card is 32GB and filled it within a few weeks in the /home/pi/.config/chromium/BrowserMetrics/
folder.
A full apt update & apt upgrade has been performed.
The folder fills with .PMA files E.G BrowserMetrics-60B60603-3D7326.pma
The Pi3B is running FullPageOS 2024-10-28
2024-10-28_2024-10-22-fullpageos-bookworm-armhf-lite-0.14.0.zip 1.4GB
I am not sure how to disable it from the build, but it looks like you can disable it according to this:
https://askubuntu.com/a/1343947/116460
Disable/enable:
Open Chrome/Chromium, More, Settings.
Under "You and Google" select "Sync and Google services".
Turn on or off "Help improve Chrome's features and performance"
I'm doing everything from SSH/VNC, any idea how to get to the settings page?
Update: Ah "Ctrl + T" escapes the tab.