<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Mastodon &amp;mdash; @dirkhaun XXL</title>
    <link>https://blog.tinycities.net/dirkhaun/tag:Mastodon</link>
    <description>When 500 characters are not enough ...</description>
    <pubDate>Mon, 27 Apr 2026 17:04:24 +0000</pubDate>
    <item>
      <title>Videos and GIFs stopped working</title>
      <link>https://blog.tinycities.net/dirkhaun/videos-and-gifs-stopped-working</link>
      <description>&lt;![CDATA[A couple of days ago I noticed that videos and GIFs were no longer showing up in posts on my #Mastodon instance. Other images were fine, just not animated attachments to posts. I first noticed this in #Ivory, but quickly confirmed that they wouldn’t show up in a browser window either.&#xA;&#xA;A quick restart of the server didn’t fix the problem. Since I didn’t have the time to dig into it, I left it at that for a few more days.&#xA;&#xA;!--more--&#xA;&#xA;ffmpeg gone missing&#xA;&#xA;Eventually, I got around to look into it. A web search brought me to an older issue on the Mastodon bugtracker. It’s for an older Mastodon release and has since been closed, so shouldn’t really affect my up-to-date instance.&#xA;&#xA;I was about to give the suggested “fix” a try when something rang in the back of my mind …&#xA;&#xA;Mastodon uses ffmpeg for videos and animated GIFs. I vaguely remembered - but couldn’t find it again, of course - something I’ve read a while ago about #Ubuntu randomly uninstalling ffmpeg for no obvious reason.&#xA;&#xA;Lo and behold, ffmpeg was no longer on the server. A quick apt install ffmpeg brought it back - and videos started showing up and playing again.&#xA;&#xA;For the record: The server is running Ubuntu 22.04 LTS.&#xA;&#xA;#MastodonAdventures #RunningMastodon #ffmpeg]]&gt;</description>
      <content:encoded><![CDATA[<p>A couple of days ago I noticed that videos and GIFs were no longer showing up in posts on my <a href="/dirkhaun/tag:Mastodon" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Mastodon</span></a> instance. Other images were fine, just not animated attachments to posts. I first noticed this in <a href="/dirkhaun/tag:Ivory" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Ivory</span></a>, but quickly confirmed that they wouldn’t show up in a browser window either.</p>

<p>A quick restart of the server didn’t fix the problem. Since I didn’t have the time to dig into it, I left it at that for a few more days.</p>



<h1 id="ffmpeg-gone-missing">ffmpeg gone missing</h1>

<p>Eventually, I got around to look into it. A web search brought me to <a href="https://github.com/mastodon/mastodon/issues/21258" title="Videos and gifs are broken" rel="nofollow">an older issue on the Mastodon bugtracker</a>. It’s for an older Mastodon release and has since been closed, so shouldn’t really affect my up-to-date instance.</p>

<p>I was about to give the suggested “fix” a try when something rang in the back of my mind …</p>

<p>Mastodon uses ffmpeg for videos and animated GIFs. I vaguely remembered – but couldn’t find it again, of course – something I’ve read a while ago about <a href="/dirkhaun/tag:Ubuntu" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Ubuntu</span></a> randomly uninstalling ffmpeg for no obvious reason.</p>

<p>Lo and behold, ffmpeg was no longer on the server. A quick <code>apt install ffmpeg</code> brought it back – and videos started showing up and playing again.</p>

<p>For the record: The server is running Ubuntu 22.04 LTS.</p>

<p><a href="/dirkhaun/tag:MastodonAdventures" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">MastodonAdventures</span></a> <a href="/dirkhaun/tag:RunningMastodon" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">RunningMastodon</span></a> <a href="/dirkhaun/tag:ffmpeg" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">ffmpeg</span></a></p>
]]></content:encoded>
      <guid>https://blog.tinycities.net/dirkhaun/videos-and-gifs-stopped-working</guid>
      <pubDate>Sat, 12 Aug 2023 15:08:33 +0000</pubDate>
    </item>
    <item>
      <title>And then it came to a grinding halt</title>
      <link>https://blog.tinycities.net/dirkhaun/and-then-it-came-to-a-grinding-halt</link>
      <description>&lt;![CDATA[After running just fine for 14 days, my #Mastodon instance stopped working. All it showed was the cute animation of a mastodon banging the keyboard of a computer. My iOS app had also stopped updating my timeline. The server was quite obviously down. What happened?&#xA;&#xA;!--more--&#xA;&#xA;Logging into it, the Mastodon logfile only showed some nondescriptive error message regarding Postgres. But I had missed the more obvious reason: The server had run out of disk space. I quickly concluded that this was due to me not having activated one of the recommended cleanup tasks (mostly because I misunderstood what it actually does). So I deleted and compressed some logfiles until there was enough disk space available again for the instance to come back to life. Then I ran both cleanup tasks. That brought back about 1.5 GB. Phew? To my horror, I had to watch them quickly fill up again. Something else was going on.&#xA;&#xA;Poking around, I noticed it was the cache directory, live/public/system/cache, that kept on growing. Eventually, it hit me: It was the relay I had subscribed to.&#xA;&#xA;What’s a relay?&#xA;&#xA;Quick excursion: When you are running a small instance with only a few users, you will notice that your federated timeline won’t have many posts you haven’t already seen, that your list of hashtags is not very extensive, and that search just doesn’t seem to return what you are looking for. This is because your Mastodon instance isn’t pulling in a lot of what is out there. Effectively, it is only following the accounts that your local users are following. That will only bring in a small portion of the #Fediverse and you won’t see much beyond that.&#xA;&#xA;One way to fix this is to have more users. The other is to subscribe to a relay. That will effectively pull in posts from other instances, thus enriching your federated timeline, your hashtags, and your search.&#xA;&#xA;But, and that was my problem here, it also means that your instance will have to cache all those posts, including their media attachments and their preview cards. And those will take up disk space.&#xA;&#xA;Solution?&#xA;&#xA;Since my disk space was filling up rapidly, I unsubscribed from the relay and ran the cleanup tasks again. That fixed the immediate problem but was asking for a long-term solution. I considered my options:&#xA;&#xA;live without a relay&#xA;get more users&#xA;get more disk space&#xA;&#xA;Running a somewhat disconnected instance isn’t fun. It’s not what I joined the Fediverse for in the first place. And while I’m not opposed to getting a few more users on this instance eventually, this was not a short-term solution. So, I had to get back to the relay and, therefore, get more disk space.&#xA;&#xA;There are two ways to do that: Get more “local” disk space or get “disk” space in the cloud. I’m a bit reluctant hooking up with some cloud provider, as this is all new to me and I need to do some research first. So I chose the other option. Since the instance is running on a highly configurable vServer anyway, getting a scalable volume of additional disk space was only a few clicks away. I moved the cache directory over to the newly attached volume, restarted Mastodon and it’s been running off of that happily since.&#xA;&#xA;Current status&#xA;&#xA;The immediate danger of the instance grinding to a halt again is over. I will have to watch the disk space on the new volume, making adjustments as needed. And I will research the cloud option, to see which is more cost effective.&#xA;&#xA;#MastodonAdventures #RunningMastodon]]&gt;</description>
      <content:encoded><![CDATA[<p>After running just fine for 14 days, my <a href="/dirkhaun/tag:Mastodon" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Mastodon</span></a> instance stopped working. All it showed was the cute animation of a mastodon banging the keyboard of a computer. My iOS app had also stopped updating my timeline. The server was quite obviously down. What happened?</p>



<p>Logging into it, the Mastodon logfile only showed some nondescriptive error message regarding Postgres. But I had missed the more obvious reason: <strong>The server had run out of disk space.</strong> I quickly concluded that this was due to me not having activated one of the recommended <a href="https://docs.joinmastodon.org/admin/setup/#cleanup" title="Cleanup cronjobs you absolutely should set up!" rel="nofollow">cleanup tasks</a> (mostly because I misunderstood what it actually does). So I deleted and compressed some logfiles until there was enough disk space available again for the instance to come back to life. Then I ran both cleanup tasks. That brought back about 1.5 GB. Phew? To my horror, I had to watch them quickly fill up again. Something else was going on.</p>

<p>Poking around, I noticed it was the cache directory, <code>live/public/system/cache</code>, that kept on growing. Eventually, it hit me: It was the relay I had subscribed to.</p>

<h2 id="what-s-a-relay">What’s a relay?</h2>

<p>Quick excursion: When you are running a small instance with only a few users, you will notice that your federated timeline won’t have many posts you haven’t already seen, that your list of hashtags is not very extensive, and that search just doesn’t seem to return what you are looking for. This is because your Mastodon instance isn’t pulling in a lot of what is out there. Effectively, it is only following the accounts that your local users are following. That will only bring in a small portion of the <a href="/dirkhaun/tag:Fediverse" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Fediverse</span></a> and you won’t see much beyond that.</p>

<p>One way to fix this is to have more users. The other is to subscribe to a relay. That will effectively pull in posts from other instances, thus enriching your federated timeline, your hashtags, and your search.</p>

<p>But, and that was my problem here, it also means that your instance will have to cache all those posts, including their media attachments and their preview cards. And those will take up disk space.</p>

<h2 id="solution">Solution?</h2>

<p>Since my disk space was filling up rapidly, I unsubscribed from the relay and ran the cleanup tasks again. That fixed the immediate problem but was asking for a long-term solution. I considered my options:</p>
<ul><li>live without a relay</li>
<li>get more users</li>
<li>get more disk space</li></ul>

<p>Running a somewhat disconnected instance isn’t fun. It’s not what I joined the Fediverse for in the first place. And while I’m not opposed to getting a few more users on this instance eventually, this was not a short-term solution. So, I had to get back to the relay and, therefore, get more disk space.</p>

<p>There are two ways to do that: Get more “local” disk space or get “disk” space in the cloud. I’m a bit reluctant hooking up with some cloud provider, as this is all new to me and I need to do some research first. So I chose the other option. Since the instance is running on a highly configurable vServer anyway, getting a scalable volume of additional disk space was only a few clicks away. I moved the cache directory over to the newly attached volume, restarted Mastodon and it’s been running off of that happily since.</p>

<h2 id="current-status">Current status</h2>

<p>The immediate danger of the instance grinding to a halt again is over. I will have to watch the disk space on the new volume, making adjustments as needed. And I will research the cloud option, to see which is more cost effective.</p>

<p><a href="/dirkhaun/tag:MastodonAdventures" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">MastodonAdventures</span></a> <a href="/dirkhaun/tag:RunningMastodon" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">RunningMastodon</span></a></p>
]]></content:encoded>
      <guid>https://blog.tinycities.net/dirkhaun/and-then-it-came-to-a-grinding-halt</guid>
      <pubDate>Sun, 11 Dec 2022 08:43:57 +0000</pubDate>
    </item>
    <item>
      <title>Moving to Mastodon</title>
      <link>https://blog.tinycities.net/dirkhaun/moving-to-mastodon</link>
      <description>&lt;![CDATA[So when it became obvious that #Twitter was going down the drain, I started looking for alternatives and quickly settled on #Mastodon. After a brief stint as @dirkhaun@troet.cafe I began to wonder how easy (or not) it would be to run my own instance.&#xA;&#xA;!--more--&#xA;&#xA;It has been a while since I administered a webserver. That was back in the Apache 1.3 days, long before Docker and all this new-fangled stuff (which I still don’t understand to this day) came along. So I got myself the smallest vServer I could find and gave the instructions a try. What can I say - it worked (almost) without a flaw.&#xA;&#xA;Now, those instructions are not for the faint of heart. But if you know where to look (and what to do) when, at the end of the day, nginx reports a permission issue trying to serve a CSS file, then you can do it.&#xA;&#xA;Setting up a Mastodon instance is one thing. Running an instance is another, which we’ll explore in another post …&#xA;&#xA;#MastodonAdventures #InstallingMastodon]]&gt;</description>
      <content:encoded><![CDATA[<p>So when it became obvious that <a href="/dirkhaun/tag:Twitter" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Twitter</span></a> was going down the drain, I started looking for alternatives and quickly settled on <a href="/dirkhaun/tag:Mastodon" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Mastodon</span></a>. After a brief stint as <a href="https://blog.tinycities.net/@/dirkhaun@troet.cafe" class="u-url mention" rel="nofollow">@<span>dirkhaun@troet.cafe</span></a> I began to wonder how easy (or not) it would be to run my own instance.</p>



<p>It has been a while since I administered a webserver. That was back in the Apache 1.3 days, long before Docker and all this new-fangled stuff (which I still don’t understand to this day) came along. So I got myself the smallest vServer I could find and gave the <a href="https://docs.joinmastodon.org/admin/install/" title="Installing Mastodon from source" rel="nofollow">instructions</a> a try. What can I say – it worked (almost) without a flaw.</p>

<p>Now, those instructions are not for the faint of heart. But if you know where to look (and what to do) when, at the end of the day, nginx reports a permission issue trying to serve a CSS file, then you can do it.</p>

<p>Setting up a Mastodon instance is one thing. Running an instance is another, which we’ll explore in another post …</p>

<p><a href="/dirkhaun/tag:MastodonAdventures" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">MastodonAdventures</span></a> <a href="/dirkhaun/tag:InstallingMastodon" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">InstallingMastodon</span></a></p>
]]></content:encoded>
      <guid>https://blog.tinycities.net/dirkhaun/moving-to-mastodon</guid>
      <pubDate>Sat, 10 Dec 2022 15:20:28 +0000</pubDate>
    </item>
    <item>
      <title>Follow this blog</title>
      <link>https://blog.tinycities.net/dirkhaun/follow-this-blog</link>
      <description>&lt;![CDATA[To follow this blog, follow @dirkhaun@blog.tinycities.net on your favourite #Fediverse platform (#Mastodon etc.). There&#39;s also an #RSS feed at https://blog.tinycities.net/dirkhaun/feed/]]&gt;</description>
      <content:encoded><![CDATA[<p>To follow this blog, follow <a href="https://blog.tinycities.net/@/dirkhaun@blog.tinycities.net" class="u-url mention" rel="nofollow">@<span>dirkhaun@blog.tinycities.net</span></a> on your favourite <a href="/dirkhaun/tag:Fediverse" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Fediverse</span></a> platform (<a href="/dirkhaun/tag:Mastodon" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Mastodon</span></a> etc.). There&#39;s also an <a href="/dirkhaun/tag:RSS" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">RSS</span></a> feed at <a href="https://blog.tinycities.net/dirkhaun/feed/" title="RSS feed" rel="nofollow">https://blog.tinycities.net/dirkhaun/feed/</a></p>
]]></content:encoded>
      <guid>https://blog.tinycities.net/dirkhaun/follow-this-blog</guid>
      <pubDate>Sat, 10 Dec 2022 08:21:56 +0000</pubDate>
    </item>
  </channel>
</rss>