<?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[MySQL binlogs growing unbounded — 145 GB, no expiry set?]]></title><description><![CDATA[<p dir="auto">Note: analysis for this report has been done with support of ai (claude).</p>
<h2>Environment</h2>
<ul>
<li>Cloudron on Ubuntu 26.04., root partition 295 GB</li>
<li>MySQL addon: <code>registry.docker.com/cloudron/mysql:3.8.0</code></li>
<li>Affected app: FreeScout
<ul>
<li>Image: <code>cloudron/net.freescout.cloudronapp:202609190520200000</code></li>
<li>App ID: <code>0a2837d5-…</code></li>
<li>DB: <code>fc0ce74f…</code></li>
</ul>
</li>
</ul>
<h2>Problem</h2>
<p dir="auto">The root partition went from roughly 50% to 89% within a few hours.<br />
The cause is MySQL binlogs inside the addon container:</p>
<p dir="auto">/var/lib/mysql 146 GB total<br />
binlog.* 145 GB (1486 files, 101 MB each)</p>
<p dir="auto">The actual databases only account for about 1 GB. <code>binlog.000001</code><br />
dates from 2026-09-01, so every binlog since initial setup is still<br />
being retained with nothing expiring. <code>binlog_expire_logs_seconds</code><br />
appears not to be set in the Cloudron MySQL configuration.</p>
<h2>Write rate</h2>
<p dir="auto">A new 101 MB binlog is currently created roughly every 9 minutes,<br />
i.e. about 4 GB/hour (timestamps 16:43 → 22:37 = 40 files).</p>
<p dir="auto">The source is FreeScout: its <code>activity_log</code> table has grown to 12 GB<br />
(<code>activity_logs.ibd</code>), and the nightly <code>mysqldump</code> for that same app<br />
is now 10 GB.</p>
<h2>Questions</h2>
<ol>
<li>Is it intended that the MySQL addon ships without a binlog expiry?<br />
On installations without replication, the logs will inevitably<br />
fill the disk.</li>
<li>What is the supported way to set <code>binlog_expire_logs_seconds</code><br />
persistently, so it survives container restarts and app updates?</li>
<li>Are the binlogs required by Cloudron's own backup mechanism, or<br />
can they be purged safely?</li>
<li>Is the excessive logging in FreeScout's <code>activity_log</code> known<br />
behaviour for the package, and is there any housekeeping for it?</li>
</ol>
<p dir="auto">I would expect it to be handeled automatically, like it has been for the most previous years. I assume it is a bug in the platform rather than behaivour that is expected to happen.</p>
<p dir="auto">I am not sure if this could be a bug when upgrading from Ubuntu 24.04 to Ubuntu 26.04. or because of a Cloudron change?</p>
<p dir="auto">I have activated the support login on this server, so staff can check it on their own, if they prefer.</p>
<h2>What has been ruled out</h2>
<p dir="auto">Docker itself is unremarkable: container logs max 21 MB, build cache<br />
0 B, volumes in the MB range. Journal 93 MB, <code>/var/log</code> 341 MB. I don't have any other idea where this could originate from.</p>
]]></description><link>https://forum.cloudron.io/topic/15988/mysql-binlogs-growing-unbounded-145-gb-no-expiry-set</link><generator>RSS for Node</generator><lastBuildDate>Sat, 26 Sep 2026 23:06:13 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/15988.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Sep 2026 22:50:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 08:46:10 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/crbear" aria-label="Profile: crbear">@<bdi>crbear</bdi></a><br />
I have merged the two topics into this one.</p>
<hr />
<p dir="auto">I have reproduced the issue, and it comes from upgrading Ubuntu 24 to Ubuntu 26.<br />
A documentation update is deployed as of writing this.</p>
<p dir="auto">The issue is that Ubuntu upgrade does uninstall the MySQL server on the system and both of you did correctly follow the guide and run:</p>
<pre><code class="language-bash">systemctl stop box
apt install mysql-server
systemctl start box
</code></pre>
<p dir="auto">This installed the MySQL server with the apt package default configuration and not the Cloudron configurations.<br />
To fix this please run the following command from your ssh root/sudo session:</p>
<pre><code class="language-bash">bash /home/yellowtent/box/setup/start.sh
</code></pre>
<p dir="auto">This will ensure all services on the root system including MySQL are configured correctly.</p>
<hr />
<p dir="auto">Thank you again for bringing this to our attention.</p>
]]></description><link>https://forum.cloudron.io/post/129883</link><guid isPermaLink="true">https://forum.cloudron.io/post/129883</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Wed, 23 Sep 2026 08:46:10 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 10:50:06 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a></p>
<p dir="auto">The only instruction was:</p>
<blockquote>
<p dir="auto">james <a href="/post/129883">said</a>:</p>
<p dir="auto">To fix this please run the following command from your ssh root/sudo session:</p>
<pre><code class="language-bash">bash /home/yellowtent/box/setup/start.sh
</code></pre>
</blockquote>
<p dir="auto">But you also did run:</p>
<pre><code class="language-bash">systemctl stop box
apt install mysql-server
systemctl start box
</code></pre>
<p dir="auto">From the log it looks like everything worked out correctly.<br />
Please make sure to carefully read provided instructions in the future since you did run commands that where not instruced to be executed.</p>
<p dir="auto">Please also read <a href="https://forum.cloudron.io/post/129886">https://forum.cloudron.io/post/129886</a> which explains that the binlogs might not be purged correctly and how to clean it up.<br />
Otherwise some binlog files might remain and block some diskspace.</p>
]]></description><link>https://forum.cloudron.io/post/129898</link><guid isPermaLink="true">https://forum.cloudron.io/post/129898</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Wed, 23 Sep 2026 10:50:06 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 10:44:03 GMT]]></title><description><![CDATA[<p dir="auto">This seems fine now, <a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> ?</p>
<pre><code>root@my:~# systemctl stop box
root@my:~# apt install mysql-server
mysql-server is already the newest version (8.4.11-0ubuntu0.26.04.1).
The following package was automatically installed and is no longer required:
  libevent-pthreads-2.1-7t64
Use 'apt autoremove' to remove it.

Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 15
root@my:~# systemctl start box
root@my:~# bash /home/yellowtent/box/setup/start.sh
2026-09-23T10:43:05 ==&gt; start: Cloudron Start
media:x:500:
2026-09-23T10:43:05 ==&gt; start: Configuring docker
Synchronizing state of apparmor.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable apparmor
2026-09-23T10:43:06 ==&gt; start: Ensuring directories
2026-09-23T10:43:06 ==&gt; start: Configuring journald
2026-09-23T10:43:06 ==&gt; start: Setting up unbound
2026-09-23T10:43:06 ==&gt; start: Adding systemd services
Synchronizing state of unbound.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable unbound
Synchronizing state of cron.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable cron
Synchronizing state of rpcbind.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install disable rpcbind
2026-09-23T10:43:12 ==&gt; start: Configuring sudoers
2026-09-23T10:43:12 ==&gt; start: Configuring logrotate
2026-09-23T10:43:12 ==&gt; start: Adding motd message for admins
2026-09-23T10:43:12 ==&gt; start: Configuring nginx
2026-09-23T10:43:13 ==&gt; start: Stopping mysql
2026-09-23T10:43:17 ==&gt; start: Starting mysql
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
2026-09-23T10:43:17 ==&gt; start: Migrating data
[INFO] No migrations to run
[INFO] Done
2026-09-23T10:43:18 ==&gt; start: Changing ownership
2026-09-23T10:43:18 ==&gt; start: Starting cloudron-syslog
2026-09-23T10:43:18 ==&gt; start: Starting Cloudron
2026-09-23T10:43:20 ==&gt; start: Almost done
root@my:~# mysql -uroot -ppassword -e "SHOW BINARY LOGS;"
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1381 (HY000) at line 1: You are not using binary logging
</code></pre>
]]></description><link>https://forum.cloudron.io/post/129896</link><guid isPermaLink="true">https://forum.cloudron.io/post/129896</guid><dc:creator><![CDATA[jayonrails]]></dc:creator><pubDate>Wed, 23 Sep 2026 10:44:03 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 10:41:55 GMT]]></title><description><![CDATA[<p dir="auto">The topic has been merged and I haven’t seen the post you’re referring to. Thanks, will take care of it.</p>
]]></description><link>https://forum.cloudron.io/post/129895</link><guid isPermaLink="true">https://forum.cloudron.io/post/129895</guid><dc:creator><![CDATA[jayonrails]]></dc:creator><pubDate>Wed, 23 Sep 2026 10:41:55 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 10:02:46 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a><br />
This is <strong>not</strong> a Freescout issue.<br />
Please run the instructed commands so the MySQL system server has the correct configuration again.<br />
If you don't do this, it could also lead to future issues like a wrong character set and a wrong collation for databases created in the future by apps, which in turn could lead to backup restore issues.</p>
<p dir="auto">It is highly advised to run the commands I have provided to ensure that the MySQL system server is running as intended by Cloudron.</p>
]]></description><link>https://forum.cloudron.io/post/129890</link><guid isPermaLink="true">https://forum.cloudron.io/post/129890</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Wed, 23 Sep 2026 10:02:46 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 09:56:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> I cannot maintain this until the weekend, so I would leave FreeScout stopped and report back in a few days.</p>
<pre><code>root@my:~# 
root@my:~# mysql -uroot -ppassword -e "RESET BINARY LOGS AND GTIDS;"
mysql: [Warning] Using a password on the command line interface can be insecure.
root@my:~# mysql -uroot -ppassword -e "SHOW BINARY LOGS;"
mysql: [Warning] Using a password on the command line interface can be insecure.
+---------------+-----------+-----------+
| Log_name      | File_size | Encrypted |
+---------------+-----------+-----------+
| binlog.000001 |   3783544 | No        |
+---------------+-----------+-----------+
</code></pre>
<p dir="auto">This seems fine for now, let see if it blows up again...</p>
]]></description><link>https://forum.cloudron.io/post/129889</link><guid isPermaLink="true">https://forum.cloudron.io/post/129889</guid><dc:creator><![CDATA[jayonrails]]></dc:creator><pubDate>Wed, 23 Sep 2026 09:56:26 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 09:37:25 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much - the issue is fully resolved now.</p>
<p dir="auto">I ran bash /home/yellowtent/box/setup/start.sh, confirmed that skip-log-bin is present again and @@log_bin = 0.</p>
<p dir="auto">RESET BINARY LOGS AND GTIDS; did not remove the existing files, so I followed your fallback procedure, stopped box.service and mysql.service, removed /var/lib/mysql/binlog.*, and started both services again.</p>
<p dir="auto">Current status:</p>
<p dir="auto">/var/lib/mysql: 337M<br />
/: 58G used / 86G available / 41%<br />
@@log_bin = 0</p>
<p dir="auto">Everything is running normally again.</p>
<p dir="auto">Thank you again for the incredibly fast and excellent support, and especially for reproducing the issue and updating the documentation so quickly. Much appreciated!</p>
]]></description><link>https://forum.cloudron.io/post/129888</link><guid isPermaLink="true">https://forum.cloudron.io/post/129888</guid><dc:creator><![CDATA[CRBear]]></dc:creator><pubDate>Wed, 23 Sep 2026 09:37:25 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 09:26:25 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/crbear" aria-label="Profile: crbear">@<bdi>crbear</bdi></a><br />
After running the command please report if this resolved the issue for you.</p>
<p dir="auto">note: binlogs might not be purged automatically</p>
<p dir="auto">If that is the case for you please run:</p>
<pre><code class="language-bash">mysql -uroot -ppassword -e "RESET BINARY LOGS AND GTIDS;"
</code></pre>
<p dir="auto">if that also does not clean up the binlog files in <code>/var/lib/mysql/</code> stop the <code>box.service</code> and <code>mysql.service</code> and delete the files manually.</p>
<p dir="auto">Example:</p>
<pre><code class="language-bash">systemctl stop box.service mysql.service
# this will ask you for every file for confirmation
rm -rfi /var/lib/mysql/binlog.*
rm: remove regular file '/var/lib/mysql/binlog.000003'? y
rm: remove regular file '/var/lib/mysql/binlog.000004'? y
rm: remove regular file '/var/lib/mysql/binlog.index'? y
systemctl status mysql.service box.service
</code></pre>
]]></description><link>https://forum.cloudron.io/post/129886</link><guid isPermaLink="true">https://forum.cloudron.io/post/129886</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Wed, 23 Sep 2026 09:26:25 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 08:46:10 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/crbear" aria-label="Profile: crbear">@<bdi>crbear</bdi></a><br />
I have merged the two topics into this one.</p>
<hr />
<p dir="auto">I have reproduced the issue, and it comes from upgrading Ubuntu 24 to Ubuntu 26.<br />
A documentation update is deployed as of writing this.</p>
<p dir="auto">The issue is that Ubuntu upgrade does uninstall the MySQL server on the system and both of you did correctly follow the guide and run:</p>
<pre><code class="language-bash">systemctl stop box
apt install mysql-server
systemctl start box
</code></pre>
<p dir="auto">This installed the MySQL server with the apt package default configuration and not the Cloudron configurations.<br />
To fix this please run the following command from your ssh root/sudo session:</p>
<pre><code class="language-bash">bash /home/yellowtent/box/setup/start.sh
</code></pre>
<p dir="auto">This will ensure all services on the root system including MySQL are configured correctly.</p>
<hr />
<p dir="auto">Thank you again for bringing this to our attention.</p>
]]></description><link>https://forum.cloudron.io/post/129883</link><guid isPermaLink="true">https://forum.cloudron.io/post/129883</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Wed, 23 Sep 2026 08:46:10 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 08:33:22 GMT]]></title><description><![CDATA[<p dir="auto">Yes, this is the <strong>Ubuntu host system MySQL under <code>/var/lib/mysql</code></strong>, not the MySQL addon service running in Docker.</p>
<p dir="auto">The Cloudron dashboard shows:</p>
<pre><code class="language-text">Cloudron activation time: 2 years ago
Cloudron version: 10.0.5
Ubuntu: 26.04.1 LTS
</code></pre>
<p dir="auto">So the activation is approximately from 2024 and therefore well after <code>skip-log-bin</code> was added in 2021.</p>
<p dir="auto">Regarding the Ubuntu 24 → 26 upgrade: I <strong>used the default N/O option to keep the currently installed configuration files</strong> when prompted.</p>
<p dir="auto">I also checked <code>/var/log/apt/term.log</code>. For the MySQL 8.4 installation itself I cannot see any configuration-file prompt. Instead, the relevant part is:</p>
<pre><code class="language-text">Setting up mysql-server (8.4.11-0ubuntu0.26.04.1)…
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
</code></pre>
<p dir="auto">Cloudron's own template still contains:</p>
<pre><code class="language-text">/home/yellowtent/box/setup/start/mysql.cnf
</code></pre>
<p dir="auto">including:</p>
<pre><code class="language-text"># disable bin logs. they are only useful in replication mode
skip-log-bin
</code></pre>
<p dir="auto">but <code>skip-log-bin</code> is no longer present anywhere under <code>/etc/mysql</code>.</p>
<p dir="auto">I have not changed or deleted anything yet. I will wait for your guidance before making any changes, so please let me know what you would like me to do next.</p>
<p dir="auto">I can also provide any further diagnostics that may help with reproducing this.</p>
<p dir="auto">Thank you very much.</p>
]]></description><link>https://forum.cloudron.io/post/129882</link><guid isPermaLink="true">https://forum.cloudron.io/post/129882</guid><dc:creator><![CDATA[CRBear]]></dc:creator><pubDate>Wed, 23 Sep 2026 08:33:22 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 08:08:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a><br />
I am currently trying to reproduce if the Ubuntu 24 to Ubuntu 26 upgrade resets the <code>my.cnf</code>.</p>
]]></description><link>https://forum.cloudron.io/post/129880</link><guid isPermaLink="true">https://forum.cloudron.io/post/129880</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Wed, 23 Sep 2026 08:08:34 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 08:03:04 GMT]]></title><description><![CDATA[<p dir="auto">Good morning <a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a>,</p>
<pre><code>root@my:~# mysql -uroot -ppassword -e "SELECT VERSION(), @@log_bin, @@binlog_expire_logs_seconds, @@max_binlog_size, @@binlog_expire_logs_auto_purge;"
mysql: [Warning] Using a password on the command line interface can be insecure.
+-------------------------+-----------+------------------------------+-------------------+---------------------------------+
| VERSION()               | @@log_bin | @@binlog_expire_logs_seconds | @@max_binlog_size | @@binlog_expire_logs_auto_purge |
+-------------------------+-----------+------------------------------+-------------------+---------------------------------+
| 8.4.11-0ubuntu0.26.04.1 |         1 |                      2592000 |         104857600 |                               1 |
+-------------------------+-----------+------------------------------+-------------------+---------------------------------+
</code></pre>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> <a href="/post/129859">sagte</a>:</p>
<p dir="auto">Is also assume there is nothing in the folders listed in the config.</p>
</blockquote>
<p dir="auto">Yes.</p>
<p dir="auto">As there have been two notes to this thread, I would like to add:</p>
<p dir="auto">When upgrading from Ubuntu 24.04 to Ubuntu 26.04. I kept all the config files and didn't let it create new ones.</p>
]]></description><link>https://forum.cloudron.io/post/129879</link><guid isPermaLink="true">https://forum.cloudron.io/post/129879</guid><dc:creator><![CDATA[jayonrails]]></dc:creator><pubDate>Wed, 23 Sep 2026 08:03:04 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 08:07:56 GMT]]></title><description><![CDATA[<p dir="auto">This indeed does look like the same issue as <a href="https://forum.cloudron.io/topic/15988/mysql-binlogs-growing-unbounded-145-gb-no-expiry-set">https://forum.cloudron.io/topic/15988/mysql-binlogs-growing-unbounded-145-gb-no-expiry-set</a><br />
So maybe the upgrade from Ubuntu 24 to Ubuntu 26 resets the <code>/etc/mysql.cnf</code>.<br />
The guide <a href="https://docs.cloudron.io/guides/upgrade-ubuntu-26/" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/guides/upgrade-ubuntu-26/</a> explictly states to:</p>
<blockquote>
<p dir="auto">For all packages (mime, nginx, timesyncd, logrotate, journald, etc.), select N or O to keep your currently-installed version (default).</p>
</blockquote>
<p dir="auto">I will try to reproduce this.</p>
]]></description><link>https://forum.cloudron.io/post/129877</link><guid isPermaLink="true">https://forum.cloudron.io/post/129877</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Wed, 23 Sep 2026 08:07:56 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 07:34:22 GMT]]></title><description><![CDATA[<p dir="auto">So just to confirm here, this is about the Ubuntu host system mysql, not the mysql addon service running in docker?</p>
<p dir="auto">If so how old is that Cloudron? The <code>skip-log-bin</code> was added in Cloudron around 2021 to <code>/etc/mysql/mysql.cnf</code> and a Cloudron update should theoretically ensure that this file gets updated accordingly.</p>
]]></description><link>https://forum.cloudron.io/post/129874</link><guid isPermaLink="true">https://forum.cloudron.io/post/129874</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 23 Sep 2026 07:34:22 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Wed, 23 Sep 2026 06:05:09 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I seem to have the same or a very similar issue as reported here:</p>
<p dir="auto"><a href="https://forum.cloudron.io/topic/15988/mysql-binlogs-growing-unbounded-145-gb-no-expiry-set/18">https://forum.cloudron.io/topic/15988/mysql-binlogs-growing-unbounded-145-gb-no-expiry-set/18</a></p>
<p dir="auto">My system:</p>
<pre><code class="language-text">Cloudron: 10.0.5
Ubuntu:   Ubuntu 26.04.1 LTS
Kernel:   Linux 7.0.0-31-generic
</code></pre>
<p dir="auto">The root filesystem is currently at 93%:</p>
<pre><code class="language-text">/dev/sda1   150G   134G   11G   93% /
</code></pre>
<p dir="auto">The unexpected usage is mainly:</p>
<pre><code class="language-text">/var/lib/mysql   76G
</code></pre>
<p dir="auto">There are hundreds of <code>binlog.xxxxxx</code> files, mostly about 101 MB each.</p>
<p dir="auto">MySQL version:</p>
<pre><code class="language-text">8.4.11-0ubuntu0.26.04.1
</code></pre>
<p dir="auto">Current MySQL settings:</p>
<pre><code class="language-text">log_bin                       = 1
binlog_expire_logs_seconds    = 2592000
max_binlog_size               = 104857600
binlog_expire_logs_auto_purge = 1
</code></pre>
<p dir="auto"><code>SHOW REPLICA STATUS\G</code> returns no replica.</p>
<p dir="auto"><code>/etc/mysql/my.cnf</code> only contains:</p>
<pre><code class="language-text">!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
</code></pre>
<p dir="auto">There is no <code>skip-log-bin</code> entry.</p>
<p dir="auto">I have not deleted any binlogs or changed the MySQL configuration yet.</p>
<p dir="auto">Could you please advise what I should do next?</p>
<p dir="auto">In particular, is it safe/recommended in this situation to use:</p>
<pre><code class="language-text">RESET BINARY LOGS AND GTIDS;
</code></pre>
<p dir="auto">and should <code>skip-log-bin</code> then be restored manually, or is there another Cloudron-supported fix?</p>
<p dir="auto">The server currently has only about 11 GB free, so I would prefer to resolve this before the root filesystem fills up.</p>
<p dir="auto">Thanks in advance for your help!</p>
]]></description><link>https://forum.cloudron.io/post/129870</link><guid isPermaLink="true">https://forum.cloudron.io/post/129870</guid><dc:creator><![CDATA[CRBear]]></dc:creator><pubDate>Wed, 23 Sep 2026 06:05:09 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Tue, 22 Sep 2026 21:44:40 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a><br />
Your MySQL config looks empty and that is wrong.<br />
Is also assume there is nothing in the folders listed in the config.</p>
<p dir="auto">Since that command also failed for you please try again without the <code>expire_logs_days</code>:</p>
<pre><code class="language-bash">mysql -uroot -ppassword -e "SELECT VERSION(), @@log_bin, @@binlog_expire_logs_seconds, @@max_binlog_size, @@binlog_expire_logs_auto_purge;"
</code></pre>
]]></description><link>https://forum.cloudron.io/post/129859</link><guid isPermaLink="true">https://forum.cloudron.io/post/129859</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Tue, 22 Sep 2026 21:44:40 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Tue, 22 Sep 2026 21:15:19 GMT]]></title><description><![CDATA[<p dir="auto">hey <a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a>,</p>
<p dir="auto">thanks for your investigation. Let met get straight to your questions:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> <a href="/post/129847">sagte</a>:</p>
<p dir="auto">Is your Cloudron installation older than 26.02.2021?</p>
</blockquote>
<p dir="auto">No, never has been.</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> <a href="/post/129847">sagte</a>:</p>
<p dir="auto">/etc/mysql/my.cnf</p>
</blockquote>
<pre><code>#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
# 
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

#
# * IMPORTANT: Additional settings that can override those from this file!
#   The files must end with '.cnf', otherwise they'll be ignored.
#

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
</code></pre>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> <a href="/post/129847">sagte</a>:</p>
<p dir="auto">You can also run the following command to get the live configuration:</p>
</blockquote>
<pre><code>root@my:~# mysql -uroot -ppassword -e "SELECT VERSION(), @@log_bin, @@binlog_expire_logs_seconds, @@expire_logs_days, @@max_binlog_size, @@binlog_expire_logs_auto_purge;"
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1193 (HY000) at line 1: Unknown system variable 'expire_logs_days'
</code></pre>
]]></description><link>https://forum.cloudron.io/post/129858</link><guid isPermaLink="true">https://forum.cloudron.io/post/129858</guid><dc:creator><![CDATA[jayonrails]]></dc:creator><pubDate>Tue, 22 Sep 2026 21:15:19 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Tue, 22 Sep 2026 18:55:31 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a></p>
<p dir="auto">Since 26.02.2021 all Cloudron installation ship the MySQL system server with:</p>
<pre><code>skip-log-bin
</code></pre>
<p dir="auto">in the <code>/etc/mysql/my.cnf</code> file.</p>
<p dir="auto">Is your Cloudron installation older than 26.02.2021?</p>
<p dir="auto">Please check your <code>/etc/mysql/my.cnf</code> file if <code>skip-log-bin</code> is set or if for example:</p>
<pre><code>expire_logs_days = 10
max_binlog_size = 100M
</code></pre>
<p dir="auto">or</p>
<pre><code>binlog_expire_logs_seconds = 864000
max_binlog_size = 100M
</code></pre>
<p dir="auto">You can also run the following command to get the live configuration:</p>
<pre><code class="language-bash">mysql -uroot -ppassword -e "SELECT VERSION(), @@log_bin, @@binlog_expire_logs_seconds, @@expire_logs_days, @@max_binlog_size, @@binlog_expire_logs_auto_purge;"
</code></pre>
]]></description><link>https://forum.cloudron.io/post/129847</link><guid isPermaLink="true">https://forum.cloudron.io/post/129847</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Tue, 22 Sep 2026 18:55:31 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Tue, 22 Sep 2026 18:18:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a></p>
<p dir="auto">I will have to check some things first, please give me 10-15 minutes.</p>
]]></description><link>https://forum.cloudron.io/post/129846</link><guid isPermaLink="true">https://forum.cloudron.io/post/129846</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Tue, 22 Sep 2026 18:18:33 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Tue, 22 Sep 2026 18:17:24 GMT]]></title><description><![CDATA[<p dir="auto">Seems fine for now. Would you like to aggree on a meeting so we could analyze this together?</p>
<pre><code>root@my:~# mysql -uroot -ppassword -e "RESET BINARY LOGS AND GTIDS;"
mysql: [Warning] Using a password on the command line interface can be insecure.
root@my:~# mysql -uroot -ppassword -e "SHOW BINARY LOGS;"
mysql: [Warning] Using a password on the command line interface can be insecure.
+---------------+-----------+-----------+
| Log_name      | File_size | Encrypted |
+---------------+-----------+-----------+
| binlog.000001 |   1895520 | No        |
+---------------+-----------+-----------+
</code></pre>
]]></description><link>https://forum.cloudron.io/post/129845</link><guid isPermaLink="true">https://forum.cloudron.io/post/129845</guid><dc:creator><![CDATA[jayonrails]]></dc:creator><pubDate>Tue, 22 Sep 2026 18:17:24 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Tue, 22 Sep 2026 18:16:26 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a><br />
Thanks for that.</p>
<p dir="auto">For a quick clean-up you can run the following command:</p>
<pre><code class="language-bash">mysql -uroot -ppassword -e "RESET BINARY LOGS AND GTIDS;"
</code></pre>
<p dir="auto">After that please check again with the following command if they got removed:</p>
<pre><code class="language-bash">mysql -uroot -ppassword -e "SHOW BINARY LOGS;"
</code></pre>
<p dir="auto">After that we need to understand why your MySQL server even has bin logging enabled.<br />
But let's attempt the quick clean-up first.</p>
]]></description><link>https://forum.cloudron.io/post/129844</link><guid isPermaLink="true">https://forum.cloudron.io/post/129844</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Tue, 22 Sep 2026 18:16:26 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Tue, 22 Sep 2026 18:12:35 GMT]]></title><description><![CDATA[<p dir="auto">I cannot attach a textfile nor add the whole lines of output here because this is too big.</p>
<p dir="auto"><a href="https://paste.cloudron.io/p/bat-cobra-emu" target="_blank" rel="noopener noreferrer nofollow ugc">https://paste.cloudron.io/p/bat-cobra-emu</a></p>
]]></description><link>https://forum.cloudron.io/post/129843</link><guid isPermaLink="true">https://forum.cloudron.io/post/129843</guid><dc:creator><![CDATA[jayonrails]]></dc:creator><pubDate>Tue, 22 Sep 2026 18:12:35 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Tue, 22 Sep 2026 18:06:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a></p>
<p dir="auto">Before we do a clean-up, please run the following command and share the output with me.</p>
<pre><code class="language-bash">mysql -uroot -ppassword -e "SHOW BINARY LOGS;"
</code></pre>
]]></description><link>https://forum.cloudron.io/post/129842</link><guid isPermaLink="true">https://forum.cloudron.io/post/129842</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Tue, 22 Sep 2026 18:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Tue, 22 Sep 2026 17:56:51 GMT]]></title><description><![CDATA[<p dir="auto">Perfect. Since I am running out of space now, is there a safe way to do a backup (which I would share with you to investigate) and get rid of the bullshit data so I don't have to move to another server tonight?</p>
]]></description><link>https://forum.cloudron.io/post/129840</link><guid isPermaLink="true">https://forum.cloudron.io/post/129840</guid><dc:creator><![CDATA[jayonrails]]></dc:creator><pubDate>Tue, 22 Sep 2026 17:56:51 GMT</pubDate></item><item><title><![CDATA[Reply to MySQL binlogs growing unbounded — 145 GB, no expiry set? on Tue, 22 Sep 2026 17:55:57 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jayonrails" aria-label="Profile: jayonrails">@<bdi>jayonrails</bdi></a><br />
Since you did run the commands I have asked for against <code>/var/lib/mysql</code> and not <code>/home/yellowtent/platformdata/mysql/</code> I now understand that this is about the Cloudron MySQL server on the root system itself and not the MySQL service.</p>
<p dir="auto">This changes things and I will have to look into it again.</p>
]]></description><link>https://forum.cloudron.io/post/129839</link><guid isPermaLink="true">https://forum.cloudron.io/post/129839</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Tue, 22 Sep 2026 17:55:57 GMT</pubDate></item></channel></rss>