FullPageOS icon indicating copy to clipboard operation
FullPageOS copied to clipboard

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*)

Open richardhuishwork opened this issue 1 year ago • 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: https://github.com/andrewmcdan/mj-launcher/commit/bbc55c8f20af42cc725bdae2e895aa0ae2627bda

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

richardhuishwork avatar Nov 27 '24 15:11 richardhuishwork

I think this would fix: https://github.com/guysoft/FullPageOS/issues/508

richardhuishwork avatar Nov 27 '24 16:11 richardhuishwork

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

richardhuishwork avatar Nov 27 '24 16:11 richardhuishwork

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?

guysoft avatar Nov 27 '24 22:11 guysoft

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

Before removing BrowserMetrics: image

After removing BrowserMetrics: image

richardhuishwork avatar Nov 28 '24 11:11 richardhuishwork

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"

guysoft avatar Nov 28 '24 12:11 guysoft

I'm doing everything from SSH/VNC, any idea how to get to the settings page?

Update: Ah "Ctrl + T" escapes the tab.

richardhuishwork avatar Nov 28 '24 12:11 richardhuishwork

Settings as default, seem to already be off or missing. image

image image

richardhuishwork avatar Nov 28 '24 12:11 richardhuishwork

This was fixed in: https://github.com/guysoft/FullPageOS/issues/613

guysoft avatar Sep 01 '25 09:09 guysoft