<?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[CSRF-Invalid error Cannot Login after upgrade to package 2.31.5]]></title><description><![CDATA[<p dir="auto">Hello, I am seeing "error=csrf-invalid" with a NodeBB installation recently upgraded to 4.14.5.<br />
The installation is NodeBB 4.14.5 (package version 2.31.5) running in Cloudron 9.2.0 on Ubuntu 24.04.4.<br />
Existing sessions continue to work; observed issues are:</p>
<ul>
<li>All attempts to login result in "error=csrf-invalid" and the message "Login Unsuccessful // We were unable to log you in, likely due to an expired session. Please try again"</li>
<li>NodeBB users with "admin" privilege cannot actually get to the admin panel (clicking on the "admin" icon takes the user to the /user/admin page rather than the /admin page)</li>
</ul>
<p dir="auto">Simple things like "(on the server side) let's restart the app and see what happens" and "(on the client side) let's clear all browser cache/cookies/history/data" and "let's try this on different browsers (Safari/Brave/Chrome)" have been tried to no avail.</p>
<p dir="auto">Any advice for what else I should try?</p>
]]></description><link>https://forum.cloudron.io/topic/15777/csrf-invalid-error-cannot-login-after-upgrade-to-package-2.31.5</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 03:36:29 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/15777.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Aug 2026 21:31:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CSRF-Invalid error Cannot Login after upgrade to package 2.31.5 on Wed, 05 Aug 2026 17:49:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: Joseph">@<bdi>Joseph</bdi></a> , yes, waiting for Cloudron 10 makes sense in this case, thank you!</p>
]]></description><link>https://forum.cloudron.io/post/127768</link><guid isPermaLink="true">https://forum.cloudron.io/post/127768</guid><dc:creator><![CDATA[Axtremus]]></dc:creator><pubDate>Wed, 05 Aug 2026 17:49:00 GMT</pubDate></item><item><title><![CDATA[Reply to CSRF-Invalid error Cannot Login after upgrade to package 2.31.5 on Wed, 05 Aug 2026 09:14:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/axtremus" aria-label="Profile: axtremus">@<bdi>axtremus</bdi></a> the maxMemoryPolicy can be set now in the package but it requires Cloudron 10 . So, I think the answer is to wait a bit for Cloudron 10.</p>
]]></description><link>https://forum.cloudron.io/post/127749</link><guid isPermaLink="true">https://forum.cloudron.io/post/127749</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Wed, 05 Aug 2026 09:14:15 GMT</pubDate></item><item><title><![CDATA[Reply to CSRF-Invalid error Cannot Login after upgrade to package 2.31.5 on Tue, 04 Aug 2026 19:16:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: Joseph">@<bdi>Joseph</bdi></a> , you make a good point and I have follow up on this topic at <a href="https://community.nodebb.org/topic/19410/csrf-invalid-login-issue-with-nodebb-4.14.5/" target="_blank" rel="noopener noreferrer nofollow ugc">https://community.nodebb.org/topic/19410/csrf-invalid-login-issue-with-nodebb-4.14.5/</a></p>
<p dir="auto">That said, one suggestion received from there is to "<em>check your redis config and make sure it has an eviction policy set to something like <code>volatile-lru</code></em>" ... for this, it seems I need to come back and ask a question here because I don't seem able to find my redis.conf file in the usual places like <code>/etc/redis.conf</code> or <code>/etc/redis/redis.conf</code>, so I come back here to ask if maybe the folks who "package" up NodeBB for Cloudron can clue me into where I can find <code>redis.conf</code> in the NodeBB package for Cloudron. Thanks in advance!</p>
]]></description><link>https://forum.cloudron.io/post/127716</link><guid isPermaLink="true">https://forum.cloudron.io/post/127716</guid><dc:creator><![CDATA[Axtremus]]></dc:creator><pubDate>Tue, 04 Aug 2026 19:16:23 GMT</pubDate></item><item><title><![CDATA[Reply to CSRF-Invalid error Cannot Login after upgrade to package 2.31.5 on Mon, 03 Aug 2026 16:51:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/axtremus" aria-label="Profile: axtremus">@<bdi>axtremus</bdi></a> this question might be better suited for the NodeBB forum itself (<a href="https://community.nodebb.org/" target="_blank" rel="noopener noreferrer nofollow ugc">https://community.nodebb.org/</a>) since it's an implementation detail of the app.</p>
]]></description><link>https://forum.cloudron.io/post/127662</link><guid isPermaLink="true">https://forum.cloudron.io/post/127662</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Mon, 03 Aug 2026 16:51:06 GMT</pubDate></item><item><title><![CDATA[Reply to CSRF-Invalid error Cannot Login after upgrade to package 2.31.5 on Mon, 03 Aug 2026 12:35:10 GMT]]></title><description><![CDATA[<p dir="auto">Update: Flushing Redis worked ... now the system allows logins again. The cost is everyone needs to re-login (not ideal, but tolerable).</p>
<p dir="auto">Now I would like to investigate what caused Redis' memory to fill up in the first place.</p>
<p dir="auto">One working theory is that we're being targeted by bots, but the number of logins I can see are rather modest and there has been no "spike" in those stats. We do have "guess visitors" and "guess page views" (also no "spike" on those stats) ... so if any one here knows the answer, my question now is this:</p>
<ul>
<li>Does NodeBB generate new Redis entries for "guess visits" or "guess page views"?</li>
<li>Anything else you can think of that would cause NodeBB to add entries to Redis?</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/127649</link><guid isPermaLink="true">https://forum.cloudron.io/post/127649</guid><dc:creator><![CDATA[Axtremus]]></dc:creator><pubDate>Mon, 03 Aug 2026 12:35:10 GMT</pubDate></item><item><title><![CDATA[Reply to CSRF-Invalid error Cannot Login after upgrade to package 2.31.5 on Mon, 03 Aug 2026 11:34:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: Joseph">@<bdi>Joseph</bdi></a> , my list of "enabled" plagins below:</p>
<pre><code># ./nodebb plugins | grep enabled
        * @nodebb/nodebb-plugin-reactions@3.0.1 (installed, enabled)
        * nodebb-plugin-btn-spoilers@0.4.1 (installed, enabled)
        * nodebb-plugin-composer-default@11.0.8 (installed, enabled)
        * nodebb-plugin-dbsearch@7.0.0 (installed, enabled)
        * nodebb-plugin-embed@3.0.19 (installed, enabled)
        * nodebb-plugin-emoji@6.0.14 (installed, enabled)
        * nodebb-plugin-emoji-android@4.1.1 (installed, enabled)
        * nodebb-plugin-markdown@13.2.6 (installed, enabled)
        * nodebb-plugin-mentions@5.0.0 (installed, enabled)
        * nodebb-plugin-twitter-netdata@1.0.0 (installed, enabled)
        * nodebb-rewards-essentials@1.0.3 (installed, enabled)
        * nodebb-theme-harmony@3.1.9 (installed, enabled)
        * nodebb-widget-essentials@8.0.4 (installed, enabled)
</code></pre>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: James">@<bdi>James</bdi></a> , yes, I see the line <code>"trust-proxy" : true</code> in my <code>config.json</code> file.</p>
<p dir="auto">Another suspect is some sort of <code>Redis</code> "memory full" condition preventing new logins from happening. When I check Redis memory usage, I see these two lines:</p>
<pre><code>used_memory:257978864
maxmemory:257949696
</code></pre>
<p dir="auto"><code>used_memory</code> seems to have exceeded <code>maxmemory</code> a bit; but at this point I do not know what's filling up <code>Redis</code> memory.</p>
]]></description><link>https://forum.cloudron.io/post/127648</link><guid isPermaLink="true">https://forum.cloudron.io/post/127648</guid><dc:creator><![CDATA[Axtremus]]></dc:creator><pubDate>Mon, 03 Aug 2026 11:34:30 GMT</pubDate></item><item><title><![CDATA[Reply to CSRF-Invalid error Cannot Login after upgrade to package 2.31.5 on Mon, 03 Aug 2026 07:44:44 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/axtremus" aria-label="Profile: axtremus">@<bdi>axtremus</bdi></a><br />
We addressed a CSRF-Invalid error this in the NodeBB update <a href="https://forum.cloudron.io/post/127451">4.14.4</a>/<a href="https://git.cloudron.io/packages/nodebb-app/-/commit/02cf4c5379f37a2b1619569e9ccd49dd8f1a2f85" target="_blank" rel="noopener noreferrer nofollow ugc">diff</a>.<br />
And it was also addressed upstream <a href="https://community.nodebb.org/topic/19405/trust_proxy-will-default-to-false-in-4.14.3" target="_blank" rel="noopener noreferrer nofollow ugc">https://community.nodebb.org/topic/19405/trust_proxy-will-default-to-false-in-4.14.3</a><br />
The Cloudron package always sets <a href="https://docs.nodebb.org/configuring/config/" target="_blank" rel="noopener noreferrer nofollow ugc"><code>"trust_proxy": true</code></a>.</p>
<p dir="auto">Can you please check your <code>/run/nodebb/config.json</code> file with the <a href="https://docs.cloudron.io/apps#web-terminal" target="_blank" rel="noopener noreferrer nofollow ugc">Web Terminal</a> if <code>trust_proxy: true</code> exists in there?</p>
]]></description><link>https://forum.cloudron.io/post/127639</link><guid isPermaLink="true">https://forum.cloudron.io/post/127639</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 03 Aug 2026 07:44:44 GMT</pubDate></item><item><title><![CDATA[Reply to CSRF-Invalid error Cannot Login after upgrade to package 2.31.5 on Mon, 03 Aug 2026 07:39:23 GMT]]></title><description><![CDATA[<p dir="auto">As <a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> said most likely something plugin related. What plugins do you have installed?</p>
]]></description><link>https://forum.cloudron.io/post/127638</link><guid isPermaLink="true">https://forum.cloudron.io/post/127638</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Mon, 03 Aug 2026 07:39:23 GMT</pubDate></item><item><title><![CDATA[Reply to CSRF-Invalid error Cannot Login after upgrade to package 2.31.5 on Sun, 02 Aug 2026 22:14:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/axtremus" aria-label="Profile: Axtremus">@<bdi>Axtremus</bdi></a> save logs, check custom plugins, then restore from backup until issue resolved.</p>
]]></description><link>https://forum.cloudron.io/post/127630</link><guid isPermaLink="true">https://forum.cloudron.io/post/127630</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Sun, 02 Aug 2026 22:14:18 GMT</pubDate></item></channel></rss>