<?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[Some kind of redis error breaking the app]]></title><description><![CDATA[<p dir="auto">I tried server restart but didn't help. Can access the web terminal only from the logs and it is in constant reconnecting.</p>
<p dir="auto"><img src="/assets/uploads/files/1590153976688-redis-error-resized.jpg" alt="redis error.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">P.S. Just tried to recover from backup and it shows the same error.</p>
]]></description><link>https://forum.cloudron.io/topic/2550/some-kind-of-redis-error-breaking-the-app</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Mar 2026 21:18:10 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/2550.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 May 2020 13:26:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Some kind of redis error breaking the app on Thu, 29 Oct 2020 22:48:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alex-adestech" aria-label="Profile: alex-adestech">@<bdi>alex-adestech</bdi></a> That was quite some debugging session <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=c3aa4c12b7e" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
<p dir="auto">Wanted to leave some notes here... The server was an EC2 R5 xlarge instance. It worked well but when you resize any app, it will just hang. And the whole server will stop responding eventually. One curious thing was that server had 32GB and ~20GB was in buff/cache in free -m output. I have never seen kernel caching so much. We also found this backtrace in dmesg output:</p>
<pre><code>INFO: task docker:111571 blocked for more than 120 seconds.
"echo 0 &gt; /proc/sys/kernel/hung_task_timeout_secs" disables this message.
docker          D 0000000000000000     0 111571      1 0x00000080
 ffff881c01527ab0 0000000000000086 ffff881c332f5080 ffff881c01527fd8
 ffff881c01527fd8 ffff881c01527fd8 ffff881c332f5080 ffff881c01527bf0
 ffff881c01527bf8 7fffffffffffffff ffff881c332f5080 0000000000000000
Call Trace:
 [&lt;ffffffff8163a909&gt;] schedule+0x29/0x70
 [&lt;ffffffff816385f9&gt;] schedule_timeout+0x209/0x2d0
 [&lt;ffffffff8108e4cd&gt;] ? mod_timer+0x11d/0x240
 [&lt;ffffffff8163acd6&gt;] wait_for_completion+0x116/0x170
 [&lt;ffffffff810b8c10&gt;] ? wake_up_state+0x20/0x20
 [&lt;ffffffff810ab676&gt;] __synchronize_srcu+0x106/0x1a0
 [&lt;ffffffff810ab190&gt;] ? call_srcu+0x70/0x70
 [&lt;ffffffff81219ebf&gt;] ? __sync_blockdev+0x1f/0x40
 [&lt;ffffffff810ab72d&gt;] synchronize_srcu+0x1d/0x20
 [&lt;ffffffffa000318d&gt;] __dm_suspend+0x5d/0x220 [dm_mod]
 [&lt;ffffffffa0004c9a&gt;] dm_suspend+0xca/0xf0 [dm_mod]
 [&lt;ffffffffa0009fe0&gt;] ? table_load+0x380/0x380 [dm_mod]
 [&lt;ffffffffa000a174&gt;] dev_suspend+0x194/0x250 [dm_mod]
 [&lt;ffffffffa0009fe0&gt;] ? table_load+0x380/0x380 [dm_mod]
 [&lt;ffffffffa000aa25&gt;] ctl_ioctl+0x255/0x500 [dm_mod]
 [&lt;ffffffffa000ace3&gt;] dm_ctl_ioctl+0x13/0x20 [dm_mod]
 [&lt;ffffffff811f1ef5&gt;] do_vfs_ioctl+0x2e5/0x4c0
 [&lt;ffffffff8128bc6e&gt;] ? file_has_perm+0xae/0xc0
 [&lt;ffffffff811f2171&gt;] SyS_ioctl+0xa1/0xc0
 [&lt;ffffffff816408d9&gt;] ? do_async_page_fault+0x29/0xe0
 [&lt;ffffffff81645909&gt;] system_call_fastpath+0x16/0x1b
</code></pre>
<p dir="auto">Which led to this <a href="https://access.redhat.com/solutions/2083233" target="_blank" rel="noopener noreferrer nofollow ugc">redhat article</a> but the answer to that is locked. More debugging led to answers like <a href="https://stackoverflow.com/questions/27900221/difference-between-vm-dirty-ratio-and-vm-dirty-background-ratio" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> and <a href="https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/" target="_blank" rel="noopener noreferrer nofollow ugc">this</a>. The final answer was found <a href="https://serverfault.com/questions/405210/can-high-load-cause-server-hang-and-error-blocked-for-more-than-120-seconds" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>:</p>
<pre><code>sudo sysctl -w vm.dirty_ratio=10
sudo sysctl -w vm.dirty_background_ratio=5
</code></pre>
<p dir="auto">With the explanation "By default Linux uses up to 40% of the available memory for file system caching. After this mark has been reached the file system flushes all outstanding data to disk causing all following IOs going synchronous. For flushing out this data to disk this there is a time limit of 120 seconds by default. In the case here the IO subsystem is not fast enough to flush the data withing". Crazy <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=c3aa4c12b7e" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> After we put those settings, it actually worked (!). Still cannot believe that choosing AWS instance is that important.</p>
]]></description><link>https://forum.cloudron.io/post/17488</link><guid isPermaLink="true">https://forum.cloudron.io/post/17488</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 29 Oct 2020 22:48:22 GMT</pubDate></item><item><title><![CDATA[Reply to Some kind of redis error breaking the app on Thu, 29 Oct 2020 16:40:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> If I try this, the server goes very slow and redis never finishes. I tries also redis restart from the services tab but it stays unresponding. Any suggestions?</p>
]]></description><link>https://forum.cloudron.io/post/17463</link><guid isPermaLink="true">https://forum.cloudron.io/post/17463</guid><dc:creator><![CDATA[alex-adestech]]></dc:creator><pubDate>Thu, 29 Oct 2020 16:40:08 GMT</pubDate></item><item><title><![CDATA[Reply to Some kind of redis error breaking the app on Thu, 29 Oct 2020 16:27:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vova" aria-label="Profile: vova">@<bdi>vova</bdi></a> I'm having this redis problem as well with 10 apps. Did you solved it by running something or was it just a miracle?</p>
]]></description><link>https://forum.cloudron.io/post/17461</link><guid isPermaLink="true">https://forum.cloudron.io/post/17461</guid><dc:creator><![CDATA[alex-adestech]]></dc:creator><pubDate>Thu, 29 Oct 2020 16:27:24 GMT</pubDate></item><item><title><![CDATA[Reply to Some kind of redis error breaking the app on Wed, 27 May 2020 14:38:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vova" aria-label="Profile: vova">@<bdi>vova</bdi></a> Did this work out?</p>
]]></description><link>https://forum.cloudron.io/post/8876</link><guid isPermaLink="true">https://forum.cloudron.io/post/8876</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 27 May 2020 14:38:18 GMT</pubDate></item><item><title><![CDATA[Reply to Some kind of redis error breaking the app on Fri, 22 May 2020 18:47:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vova" aria-label="Profile: vova">@<bdi>vova</bdi></a> I had a similar problem about 20 hours ago; 10 of my 13 apps were down.<br />
<img src="/assets/uploads/files/1590172833018-screenshot-2020-05-22-at-6.21.06-pm-resized.png" alt="Screenshot 2020-05-22 at 6.21.06 PM.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1590172873145-screenshot-2020-05-22-at-6.19.06-pm-resized.png" alt="Screenshot 2020-05-22 at 6.19.06 PM.png" class=" img-fluid img-markdown" /><br />
I got similar messages for Redis, MySQL and Postgres... couldn't recover from backups...the buttons froze. Reboot did not work.</p>
<p dir="auto">I am hosted on Hetzner; I went to the cloud console and did a "soft" server shutdown... followed by a "hard" shutdown...and then a Restart of the server.</p>
<p dir="auto">In 5 minutes, 10 of the 13 apps had recovered gracefully. The remaining three should "error", so I reinstalled them from last backup (and lost some 18 hours of data!).</p>
<p dir="auto"><img src="/assets/uploads/files/1590173241154-screenshot-2020-05-22-at-7.00.30-pm-resized.png" alt="Screenshot 2020-05-22 at 7.00.30 PM.png" class=" img-fluid img-markdown" /><br />
Hope this helps.</p>
]]></description><link>https://forum.cloudron.io/post/8740</link><guid isPermaLink="true">https://forum.cloudron.io/post/8740</guid><dc:creator><![CDATA[oj]]></dc:creator><pubDate>Fri, 22 May 2020 18:47:33 GMT</pubDate></item><item><title><![CDATA[Reply to Some kind of redis error breaking the app on Fri, 22 May 2020 17:32:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vova" aria-label="Profile: vova">@<bdi>vova</bdi></a> Can you try <code>docker restart redis-&lt;the-id-in-the-screenshot&gt;</code> on your server? (in 5.2, there is a button to restart redis now).</p>
]]></description><link>https://forum.cloudron.io/post/8725</link><guid isPermaLink="true">https://forum.cloudron.io/post/8725</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 22 May 2020 17:32:26 GMT</pubDate></item><item><title><![CDATA[Reply to Some kind of redis error breaking the app on Fri, 22 May 2020 15:38:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vova" aria-label="Profile: vova">@<bdi>vova</bdi></a> which app?</p>
]]></description><link>https://forum.cloudron.io/post/8723</link><guid isPermaLink="true">https://forum.cloudron.io/post/8723</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Fri, 22 May 2020 15:38:26 GMT</pubDate></item></channel></rss>