<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Alerts/subscriptions fail since 3.26.2 (base 6.0.0): "Error registering fonts" / "Could not initialize class sun.awt.X11FontManager". Fix: add libharfbuzz0b]]></title><description><![CDATA[<p dir="auto">Since 3.26.2, Metabase stopped rendering chart and table images, so alerts and dashboard subscriptions fail for both Slack and email. Depending on where you look, it shows up as one of these:</p>
<pre><code>Error registering fonts: Metabase will not be able to send Pulses. This is a known issue with certain JVMs.
</code></pre>
<p dir="auto">or</p>
<pre><code>Could not initialize class sun.awt.X11FontManager
</code></pre>
<p dir="auto">These are both the same failure. The first is what Metabase logs the first time Java's font system fails in a running process; the second is what Java reports on later attempts. It's also been reported for email pulses in <a href="https://forum.cloudron.io/topic/16050">16050</a>.</p>
<p dir="auto"><strong>Timeline:</strong> Our Slack alerts worked correctly on 3.26.1 and failed every day after the auto-update to 3.26.2. (I've reproduced it on 3.27.1 on a staging server.)</p>
<p dir="auto"><strong>Root cause:</strong> The package moved to cloudron/base:6.0.0 in 3.26.2 (commit <a href="https://git.cloudron.io/packages/metabase-app/-/commit/7f36d6a5edb4f3a8759910c1302b7f4b9e514063" target="_blank" rel="noopener noreferrer nofollow ugc">7f36d6a5</a>). Running a font call directly against the 3.27.1 image (in a throwaway container, outside Cloudron) shows the underlying error, which Metabase's log message hides:</p>
<pre><code>Please install the openjdk-*-jre package or recommended packages for openjdk-*-jre-headless.
UnsatisfiedLinkError: /usr/lib/jvm/java-21-openjdk-amd64/lib/libfontmanager.so: libharfbuzz.so.0: cannot open shared object file: No such file or directory
</code></pre>
<p dir="auto">On Ubuntu, <code>libharfbuzz0b</code> is only a recommended package for <code>openjdk-21-jre-headless</code>, and it isn't in the new image. Presumably the old base image supplied it.</p>
<p dir="auto"><strong>Verified fix:</strong> installing <code>libharfbuzz0b</code> in the same throwaway container makes Java's font system initialize normally (it finds 8 font families, where before it threw the error above). Installing <code>fontconfig</code> alone didn't help, and neither would <code>/tmp</code> permission or <code>fc-cache</code> changes, since it's a missing library rather than a font cache issue. Suggested Dockerfile change:</p>
<pre><code>apt-get install -y openjdk-21-jre-headless libharfbuzz0b
</code></pre>
<p dir="auto">The test I used:</p>
<pre><code>IMG=$(sudo docker ps --format '{{.Image}}' | grep -i metabase | head -1)
sudo docker run --rm --entrypoint bash "$IMG" -c '
  cd /app/code
  T="(println :font-families (count (.getAvailableFontFamilyNames (java.awt.GraphicsEnvironment/getLocalGraphicsEnvironment))))"
  java -Djava.awt.headless=true -cp metabase.jar clojure.main -e "$T" 2&gt;&amp;1 | tail -n 8
  apt-get update -qq &amp;&amp; apt-get install -y -qq libharfbuzz0b &gt;/dev/null 2&gt;&amp;1
  java -Djava.awt.headless=true -cp metabase.jar clojure.main -e "$T" 2&gt;&amp;1 | tail -n 8'
</code></pre>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> It may also be worth checking other Java-based apps on base 6.0.0 that use the headless JRE for image or PDF rendering, since they could hit the same thing.</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://forum.cloudron.io/topic/16061/alerts-subscriptions-fail-since-3.26.2-base-6.0.0-error-registering-fonts-could-not-initialize-class-sun.awt.x11fontmanager-.-fix-add-libharfbuzz0b</link><generator>RSS for Node</generator><lastBuildDate>Tue, 20 Oct 2026 14:15:47 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/16061.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 03 Oct 2026 04:55:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Alerts/subscriptions fail since 3.26.2 (base 6.0.0): "Error registering fonts" / "Could not initialize class sun.awt.X11FontManager". Fix: add libharfbuzz0b on Sat, 03 Oct 2026 17:59:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> I confirmed that fixed the broken images issue in Slack! Thank you!</p>
]]></description><link>https://forum.cloudron.io/post/130428</link><guid isPermaLink="true">https://forum.cloudron.io/post/130428</guid><dc:creator><![CDATA[sparkwise]]></dc:creator><pubDate>Sat, 03 Oct 2026 17:59:37 GMT</pubDate></item><item><title><![CDATA[Reply to Alerts/subscriptions fail since 3.26.2 (base 6.0.0): "Error registering fonts" / "Could not initialize class sun.awt.X11FontManager". Fix: add libharfbuzz0b on Sat, 03 Oct 2026 17:17:24 GMT]]></title><description><![CDATA[<p dir="auto">The latest package release now has harfbuzz installed. Thanks for the detailed report and sorry this slipped through on our end.</p>
]]></description><link>https://forum.cloudron.io/post/130427</link><guid isPermaLink="true">https://forum.cloudron.io/post/130427</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Sat, 03 Oct 2026 17:17:24 GMT</pubDate></item></channel></rss>