<?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[Non-persistent Redis still loads the backup's dump.rdb after a reboot — stale WordPress object cache put 9 apps in a restart loop]]></title><description><![CDATA[<p dir="auto">Follow-up to <a href="https://forum.cloudron.io/topic/15801/">topic 15801</a>, where you turned off RDB persistence for the WordPress object cache (thanks again, the disk I/O dropped right away). We ran into a side effect of that change this morning, and it took nine WordPress apps down for almost three hours.</p>
<h2>What happened</h2>
<p dir="auto">Cloudron 10.1.5. The box update ran at 00:00–00:10 UTC and went fine; all apps were healthy afterwards. At 03:31 UTC the host rebooted for a new kernel. From that moment nine of our ~20 WordPress apps (<code>org.wordpress.unmanaged</code>) restarted every ~13 seconds, 791 times for one of them, until we intervened at 06:13 UTC. The other WordPress apps on the same server started normally.</p>
<h2>Why</h2>
<p dir="auto">Each redis container logs this on start:</p>
<pre><code>==&gt; Disabling RDB persistence
* Loading RDB produced by version 8.10.2
* RDB age 12401 seconds
</code></pre>
<p dir="auto">So persistence is off, but redis still loads <code>/home/yellowtent/platformdata/redis/&lt;appid&gt;/dump.rdb</code> when it starts. That file is only written when the box takes a backup (the one loaded at 03:32 was 12401 s old, i.e. from the pre-update backup at ~00:05). Everything the app wrote to its cache between that backup and the reboot is gone, and the cache goes back three and a half hours, out of sync with the database.</p>
<p dir="auto">For WordPress that broke the start script. <code>start.sh</code> runs with <code>set -eu</code> and does <code>wp option update smtp_mailer_options &lt;json&gt;</code> on every start. The cached <code>smtp_mailer_options</code> was the old value (12 keys; the SMTP Mailer plugin adds <code>force_from_name</code>/<code>force_from_email</code>), while the database already held the new value with the 10 keys <code>start.sh</code> writes. wp-cli compares against the cached value, sees a difference and calls <code>update_option()</code>; the <code>UPDATE</code> changes 0 rows because the database already has that value, so <code>update_option()</code> returns false, wp-cli prints <code>Error: Could not update option 'smtp_mailer_options'.</code>, the script exits and the container is restarted. Same result on every start. The sites where cache and database happened to match started fine.</p>
<p dir="auto">I checked the database side to rule it out: no read-only, full grants, <code>CHECK TABLE</code> OK, and the same <code>UPDATE</code> inside a transaction (rolled back) affects 1 row without error.</p>
<h2>Workaround</h2>
<p dir="auto"><code>wp --path=/app/data/public cache flush</code> in each affected app container (during the seconds it is up). On the next start wp-cli reads the database value, reports <code>Value passed for 'smtp_mailer_options' option is unchanged.</code> and Apache starts. Afterwards a <code>BGSAVE</code> on each app's redis, because the dump from this morning's 06:00 backup still held the stale value and the next reboot would have repeated the loop.</p>
<h2>Suggestions</h2>
<ul>
<li><strong>Don't load the dump at start for non-persistent redis.</strong> It's a cache, so starting empty is correct; the dump is only needed for a restore. Removing or renaming <code>dump.rdb</code> before redis starts (or having the backup write it outside the data dir and load it explicitly on restore) would fix it. As it stands, every host reboot rolls every WordPress cache back to the last backup.</li>
<li><strong>Make the WordPress <code>start.sh</code> tolerant here.</strong> A <code>wp option update</code> that has nothing to change shouldn't stop the container. For example <code>|| true</code> on that line, or a <code>wp cache flush</code> early in <code>start.sh</code> (the cache is not persistent anyway, so flushing it at start costs nothing).</li>
</ul>
<p dir="auto">Happy to test a fix on our side.</p>
]]></description><link>https://forum.cloudron.io/topic/16109/non-persistent-redis-still-loads-the-backup-s-dump.rdb-after-a-reboot-stale-wordpress-object-cache-put-9-apps-in-a-restart-loop</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 00:41:54 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/16109.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Oct 2026 06:30:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Non-persistent Redis still loads the backup's dump.rdb after a reboot — stale WordPress object cache put 9 apps in a restart loop on Mon, 12 Oct 2026 08:47:39 GMT]]></title><description><![CDATA[<p dir="auto">Right, this is a bug. I have fixed it now.</p>
<ul>
<li>Redis in non-persistent mode deletes the dump on start up</li>
<li>Box code will skip backup and restore of non-persistent redis</li>
<li>Box code deletes the dump when the redis non-persistent flag is set</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/130852</link><guid isPermaLink="true">https://forum.cloudron.io/post/130852</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 12 Oct 2026 08:47:39 GMT</pubDate></item></channel></rss>