Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
richardhuishwork opened this issue Nov 27, 2024 · 7 comments

Comments

@richardhuishwork
Copy link

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

@richardhuishwork
Copy link
Author

I think this would fix:
#508

@richardhuishwork
Copy link
Author

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

@guysoft
Copy link
Owner

guysoft commented Nov 27, 2024

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?

@richardhuishwork
Copy link
Author

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

@guysoft
Copy link
Owner

guysoft commented Nov 28, 2024

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"

@richardhuishwork
Copy link
Author

richardhuishwork commented Nov 28, 2024

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

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

@richardhuishwork
Copy link
Author

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

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants