cstate/affected/mariadb/index.xml

31 lines
7.8 KiB
XML

<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><link rel="alternate" type="text/html" href="https://info.linuxserver.io"/><title>mariadb on Info :: LinuxServer.io</title><link>https://info.linuxserver.io/affected/mariadb/</link><description>History</description><generator>github.com/cstate</generator><language>en</language><lastBuildDate>2023-05-29T12:00:00+00:00</lastBuildDate><updated>2023-05-29T12:00:00+00:00</updated><atom:link href="https://info.linuxserver.io/affected/mariadb/index.xml" rel="self" type="application/rss+xml"/><item><title>[Resolved] Known Issue: MariaDB Check and Repair</title><link>https://info.linuxserver.io/issues/2023-05-29-mariadb/</link><pubDate>Mon, 29 May 2023 12:00:00 +0000</pubDate><guid>https://info.linuxserver.io/issues/2023-05-29-mariadb/</guid><category>2023-09-06 21:00:00Z</category><description>There is a known issue with MariaDB when updating the container image to a new version. If a database upgrade is required and user databases are not in a healthy state, then the MariaDB service may fail to start.
MariaDB version updates (ex: 10.6.x to 10.11.x) can happen when updating the container image. Upgrading user databases is done manually by running a command.
Recovery Procedure If you have recently updated your container image and your container logs show repeating entries of:</description><content type="html">&lt;p>There is a known issue with MariaDB when updating the container image to a new version. If a database upgrade is required and user databases are not in a healthy state, then the MariaDB service may fail to start.&lt;/p>
&lt;p>MariaDB version updates (ex: &lt;code>10.6.x&lt;/code> to &lt;code>10.11.x&lt;/code>) can happen when updating the container image. Upgrading user databases is done manually by running a command.&lt;/p>
&lt;h3 id="recovery-procedure">Recovery Procedure&lt;/h3>
&lt;p>If you have recently updated your container image and your container logs show repeating entries of:&lt;/p>
&lt;pre tabindex="0">&lt;code class="language-log" data-lang="log">Caught SIGTERM signal!
&lt;/code>&lt;/pre>&lt;ul>
&lt;li>Roll back the container image to a previous tag (ex: &lt;code>lscr.io/linuxserver/mariadb:10.6.13&lt;/code> assuming this was the version you were running when things were last working)&lt;/li>
&lt;li>Run the check, repair, analyze, and optimize commands, watch for any issues&lt;/li>
&lt;li>Update the container image to the new tag (ex: &lt;code>lscr.io/linuxserver/mariadb:10.11.3&lt;/code> or &lt;code>lscr.io/linuxserver/mariadb:latest&lt;/code>)&lt;/li>
&lt;li>Run the upgrade command&lt;/li>
&lt;/ul>
&lt;p>This should get MariaDB running again with your user databases in a healthy state.&lt;/p>
&lt;h3 id="check-and-repair">Check and Repair&lt;/h3>
&lt;p>If user databases are not in a healthy state (sometimes caused by a failed upgrade), it may be remedied by running:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>mariadb-check -u root -p&amp;lt;PASSWORD&amp;gt; -c -A &lt;span style="color:#75715e"># check all databases for errors&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>mariadb-check -u root -p&amp;lt;PASSWORD&amp;gt; -r -A &lt;span style="color:#75715e"># repair all databases&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>mariadb-check -u root -p&amp;lt;PASSWORD&amp;gt; -a -A &lt;span style="color:#75715e"># analyze all databases&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>mariadb-check -u root -p&amp;lt;PASSWORD&amp;gt; -o -A &lt;span style="color:#75715e"># optimize all databases&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>After running the above commands, you may need to run the upgrade command again.&lt;/p>
&lt;h3 id="upgrading">Upgrading&lt;/h3>
&lt;p>When this container initializes, if &lt;code>MYSQL_ROOT_PASSWORD&lt;/code> is set an upgrade check will run. If an upgrade is required the log will indicate the need stop any services that are accessing databases in this container, and then run the command:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>mariadb-upgrade -u root -p&amp;lt;PASSWORD&amp;gt;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="closing-notes">Closing Notes&lt;/h3>
&lt;p>If you are running MariaDB databases in production, we always recommend pinning the container image to a specific version tag, such as &lt;code>lscr.io/linuxserver/mariadb:10.6.13-r0-ls97&lt;/code>, and planning any upgrades so that you can test and monitor them.&lt;/p></content></item><item><title>mariadb change to Alpine</title><link>https://info.linuxserver.io/issues/2021-08-25-mariadb-alpine/</link><pubDate>Wed, 25 Aug 2021 00:00:00 +0000</pubDate><guid>https://info.linuxserver.io/issues/2021-08-25-mariadb-alpine/</guid><category/><description>As previously announced we have now moved the MariaDB :alpine tag to :latest and deprecated our Ubuntu-based image. No user action is required when updating to the new tag, but as ever we recommend ensuring you have a proven backup of your data before performing any updates. Going forward, the :alpine tag will not receive any further updates.
If for some reason you need to remain on the old version, you can pin your install to the version-110.</description><content type="html">&lt;p>As &lt;a href="https://info.linuxserver.io/issues/2021-03-10-mariadb-alpine/">previously announced&lt;/a> we have now moved the MariaDB &lt;code>:alpine&lt;/code> tag to &lt;code>:latest&lt;/code> and deprecated our Ubuntu-based image. No user action is required when updating to the new tag, but as ever we recommend ensuring you have a proven backup of your data before performing any updates. Going forward, the &lt;code>:alpine&lt;/code> tag will not receive any further updates.&lt;/p>
&lt;p>If for some reason you need to remain on the old version, you can pin your install to the &lt;code>version-110.4.21mariabionic&lt;/code> tag, although please be aware that no further updates will be provided for it.&lt;/p></content></item><item><title>mariadb change to Alpine</title><link>https://info.linuxserver.io/issues/2021-03-10-mariadb-alpine/</link><pubDate>Wed, 10 Mar 2021 00:00:00 +0000</pubDate><guid>https://info.linuxserver.io/issues/2021-03-10-mariadb-alpine/</guid><category/><description>We have created a new alpine based version of our mariadb container. Our intent is to move :alpine tag to :latest once ready. Further info on the timeline will follow in the coming weeks.</description><content type="html">&lt;p>We have created a new alpine based version of our mariadb container.
Our intent is to move &lt;code>:alpine&lt;/code> tag to &lt;code>:latest&lt;/code> once ready. Further info on the timeline will follow in the coming weeks.&lt;/p></content></item><item><title>New Container: Mariadb</title><link>https://info.linuxserver.io/issues/2015-08-12-mariadb/</link><pubDate>Wed, 12 Aug 2015 00:00:00 +0000</pubDate><guid>https://info.linuxserver.io/issues/2015-08-12-mariadb/</guid><category/><description>We have released a new container for Mariadb!
Mariadb is one of the most popular database servers. Made by the original developers of MySQL.</description><content type="html">&lt;p>We have released a new container for &lt;a href="https://github.com/linuxserver/docker-mariadb">Mariadb&lt;/a>!&lt;/p>
&lt;p>&lt;a href="https://mariadb.org/">Mariadb&lt;/a> is one of the most popular database servers. Made by the original developers of MySQL.&lt;/p></content></item></channel></rss>