Trouble updating chromium snap

I’m having trouble (often) updating chromium regularly.

guiverc@d960-ubu2:~/.config/hexchat$   snap refresh
error: cannot perform the following tasks:
- Run configure hook of "chromium" snap if present (run hook "configure": 
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/X11/100dpi: caching, new cache contents: 358 fonts, 0 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/truetype/monoid: caching, new cache contents: 5 fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs
/usr/share/fonts/truetype/nanum: caching, new cache contents: 12 fonts, 0 dirs
<exceeded maximum runtime of 5m0s>

I’ve seen the same from other user (eg. and maybe it’s just how we use our boxes

(I usually suspend boxes overnight; rebooting only when required, say every 10 days, though I often close chromium & firefox before I suspend at night as extensions I use cause ram-leaks & this nullifies the leak/thrashing issue.

I’m on hirsute, and I update (apt) my box 2-3 times per day, but only snap refresh when I get sick of the nagging & count-down of days… quitting chromium & trying snap refresh… if this issue occurs a few times (exceeded maximum runtime of), I just re-load chromium & return to ignoring the nagging).

Eventually I’ll succeed

guiverc@d960-ubu2:~/.config/hexchat$   snap refresh
chromium 89.0.4389.82 from Canonical✓ refreshed

or I just be very patient on next reboot, letting it update before I start chromium (most of what I do is in firefox anyway)

I suspect it relates to my older box (2009 dell)

  • dell [optiplex] 960 (c2q-q9400, 8gb, amd/ati cedar radeon hd 5000/6000/7350/8350)

This issue doesn’t worry me, but I’m reporting.

It’s not clear to me what’s being done with the fonts when Chromium is being installed. In my case the installation (on a pretty old machine) also stops with the same 5 minute timeout when processing fonts in the same folder /usr/share/fonts/truetype/noto . The folder is actually one of the largest under /usr/share/fonts/truetype.

Two workarounds are possible:

  • sudo snap remove chromium and later sudo snap install chromium
  • alternatively moving the content of /usr/share/fonts/truetype or possibly only /usr/share/fonts/truetype/noto to a temporary location should allow snap to refresh Chromium without hitting a timeout, the folder should be restored afterwards, please note that after the fonts are moved your session might show unreadable characters and it might be difficult to restore the folder, if so a solution to that might be connecting remotely through SSH.

In general it looks like either Chromium package should be fixed or snap should be allowing more time than just 5 minutes.