Is your Chrome bigger than mine? How Chrome ate 21GB of storage

I’ve been playing with the macOS Sierra Golden Master for a few days and ran into the new storage optimization app that is now included in macOS. It prompted me that I was running low on disk space, and displayed the following dialog. The first item on the list was a bit shocking:

chrome-21gb

How could Chrome be using 21GB of my precious SSD space?!

I quickly looked at the configuration for Chrome’s cache, which was fine. Then I jumped on Google and found the problem. Chrome had not been deleting previous versions of itself after automatic updates. I had versions 14.0.835.202, with a creation date of September 29th 2011, all the way to 53.0.2785.116, which was a couple of days old. That’s a lot of Chrome!

so-much-chrome

Turns out this is a known issue, but getting a fix out, or at the very least prompting the user about a problem, has been dragging along for years. The root of this sneaky bug is bad permissions on one file, that’s preventing the updater to work correctly.

chrome-perms

Silent errors make for great user experience!

I’m happily walking away from this with an extra 21GB in my pocket! And now I ask you: is your Chrome bigger than mine?

UPDATE: To be fair to the Chrome devs, I should point out that, according to the bug report linked above, the permissions problem is caused by 3rd party plugin installers that run as root and modify the Chrome application bundle. They mention DivX as the probable culprit, which makes sense since I had Chrome versions dating back to 2011. This leaves the question of how Chrome should deal with the situation. I think anything from a warning to a privilege elevation prompt would be much better than a silent failure.

More comments:

18 thoughts on “Is your Chrome bigger than mine? How Chrome ate 21GB of storage

  1. François Maillet Post author

    @ Kieran: I simply quit Chrome, deleted all previous versions and then deleted the Extensions folder since that was the alleged source of the problem. The file inside the folder was empty in my case so I assumed it wouldn’t cause any problems. I relaunched and everything was fine. I’ll keep an eye out with the next updates.

  2. Will

    This is on MacOSX, right…? If so, where could I look for previous versions of chrome of Linux (debian to be more specific)?

  3. Kosso

    Right click the Google Chrome app and go to ‘Show Package Contents’.

    Open: Contents > Versions > .. then delete old version folders.

  4. Fabio Panico

    On Linux, I guess extensions are saved on ~/.config/google-chrome/ and the app it self (executable) is located on /opt/google/chrome/ (with link to /use/bin/google-chrome).

  5. Joe Dougherty

    I don’t appear to have this issue on Linux Mint. In this distro, the default browser is Firefox, so you have to install Chrome manually (from the downloaded package from Google). The process sets up the location of the Chrome repository and adds it to the system package manager. So upgrades are then done through that tool and old versions are removed.

  6. Martin

    Linux package management is usually run under the root user so this is not likely to be a problem there.

  7. Marcus Olsson

    This is such a pain with a lot of apps on OS X, somehow they think it’s a good idea to keep the old version laying around, which is obnoxious. For instance, opening TeamViewer from Spotlight gives me 10+ results for different TeamViewer-versions.

    Urgh…

  8. Amanda Northrop

    My Chrome, too, was taking up 21 GB. I deleted previous versions as you suggested, but Chrome is STILL taking up 21 GB. I’m not sure how to resolve this. Any ideas?

  9. SS

    Thanks Kosso for the info. That was helpful. I deleted all older-version folders to save space up to 9 GB!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.