<?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[SQL Error during login]]></title><description><![CDATA[<p dir="auto">Suddenly I can't login anymore on my Matomo instance.<br />
Whenever I try to login, I get the following SQL error:</p>
<pre><code>SQLSTATE[42S22]: Column not found: 1054 Unknown column 'login' in 'where clause'
</code></pre>
<p dir="auto">In the Cloudron logs:</p>
<pre><code>Nov 08 10:10:18[Wed Nov 08 09:10:18.623617 2023] [php:notice] [pid 225] [client 172.18.0.1:49142] [&lt;domain-name-redacted&gt;] Error in Matomo: SQLSTATE[42S22]: Column not found: 1054 Unknown column &amp;#039;login&amp;#039; in &amp;#039;where clause&amp;#039;, referer: https://&lt;domain-name-redacted&gt;/index.php
Nov 08 10:10:1894.227.68.6 - - [08/Nov/2023:09:10:18 +0000] "POST /index.php?module=Login HTTP/1.1" 500 1733 "https://&lt;domain-name-redacted&gt;/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0"
Nov 08 10:10:18172.18.0.1 - - [08/Nov/2023:09:10:18 +0000] "POST /index.php?module=Login HTTP/1.1" 500 2051 "https://&lt;domain-name-redacted&gt;/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0"
Nov 08 10:10:20172.18.0.1 - - [08/Nov/2023:09:10:20 +0000] "GET / HTTP/1.1" 200 30862 "-" "Mozilla (CloudronHealth)"
</code></pre>
<p dir="auto">I'm not 100% sure, but I think this happens since the latest update to 1.42.0 which includes a migration to OIDC login.</p>
]]></description><link>https://forum.cloudron.io/topic/10362/sql-error-during-login</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 15:09:57 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/10362.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Nov 2023 09:18:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SQL Error during login on Sun, 12 Nov 2023 15:37:33 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>, fair enough.<br />
I definitely understand your reasoning, but on the other side there is probably a good reason why the issue was added to the Matomo FAQ <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=c34f2a691b3" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /></p>
]]></description><link>https://forum.cloudron.io/post/77241</link><guid isPermaLink="true">https://forum.cloudron.io/post/77241</guid><dc:creator><![CDATA[guyds]]></dc:creator><pubDate>Sun, 12 Nov 2023 15:37:33 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Sat, 11 Nov 2023 09:07:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guyds" aria-label="Profile: guyds">@<bdi>guyds</bdi></a> I think this was just a one off error specific to your instance. A migration was not run from 5-6 releases ago. I am not sure why, I just reran the migration.</p>
<p dir="auto">As for docs, I prefer not to put these "sensitive" things there. I don't want our users to run commands by copy/pasting. This required some debugging before I ran those commands. One has to actually figure which migrations to run by inspecting the code.</p>
]]></description><link>https://forum.cloudron.io/post/77194</link><guid isPermaLink="true">https://forum.cloudron.io/post/77194</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sat, 11 Nov 2023 09:07:13 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Fri, 10 Nov 2023 21:16:53 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a>, I'm glad you found the issue.<br />
Before posting here, I did a search on the error but that didn't bring me to the Matomo FAQ. Probably my search was too specific.</p>
<p dir="auto">The question now is if/how this can be prevented in the future <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=c34f2a691b3" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /><br />
For starters it might be a good idea to add this info to the documentation for the Matomo app?</p>
]]></description><link>https://forum.cloudron.io/post/77180</link><guid isPermaLink="true">https://forum.cloudron.io/post/77180</guid><dc:creator><![CDATA[guyds]]></dc:creator><pubDate>Fri, 10 Nov 2023 21:16:53 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Fri, 10 Nov 2023 16:20:12 GMT]]></title><description><![CDATA[<p dir="auto">OK, I had to do this:</p>
<ul>
<li>Run MySQL command <code>UPDATE </code>option<code> SET option_value = "4.2.0" WHERE option_name = "version_core";</code></li>
<li><code>sudo -E -u www-data -- /app/code/console core:update</code></li>
</ul>
<p dir="auto">Works now. This is document upstream in <a href="https://matomo.org/faq/how-to-update/faq_179/" target="_blank" rel="noopener noreferrer nofollow ugc">https://matomo.org/faq/how-to-update/faq_179/</a></p>
]]></description><link>https://forum.cloudron.io/post/77169</link><guid isPermaLink="true">https://forum.cloudron.io/post/77169</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 10 Nov 2023 16:20:12 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Fri, 10 Nov 2023 16:09:54 GMT]]></title><description><![CDATA[<p dir="auto">Been debugging this a bit. The issue is that the <code>brute_force_log</code> table has a missing field in <a class="plugin-mentions-user plugin-mentions-a" href="/user/guyds" aria-label="Profile: guyds">@<bdi>guyds</bdi></a> instance. Maybe a missing migration <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=c34f2a691b3" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /></p>
<pre><code>mysql&gt; describe brute_force_log;
+--------------------+-------------+------+-----+---------+----------------+
| Field              | Type        | Null | Key | Default | Extra          |
+--------------------+-------------+------+-----+---------+----------------+
| id_brute_force_log | bigint      | NO   | PRI | NULL    | auto_increment |
| ip_address         | varchar(60) | YES  | MUL | NULL    |                |
| attempted_at       | datetime    | NO   |     | NULL    |                |
+--------------------+-------------+------+-----+---------+----------------+
3 rows in set (0.04 sec)
</code></pre>
]]></description><link>https://forum.cloudron.io/post/77168</link><guid isPermaLink="true">https://forum.cloudron.io/post/77168</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 10 Nov 2023 16:09:54 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Wed, 08 Nov 2023 22:37:01 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> sure, I just sent an email to support.</p>
]]></description><link>https://forum.cloudron.io/post/77004</link><guid isPermaLink="true">https://forum.cloudron.io/post/77004</guid><dc:creator><![CDATA[guyds]]></dc:creator><pubDate>Wed, 08 Nov 2023 22:37:01 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Wed, 08 Nov 2023 21:29:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guyds" aria-label="Profile: guyds">@<bdi>guyds</bdi></a> mm, indeed that would be problematic. Are you able to send us a mail at <a href="mailto:support@cloudron.io" target="_blank" rel="noopener noreferrer nofollow ugc">support@cloudron.io</a> , we can debug it directly then ?</p>
]]></description><link>https://forum.cloudron.io/post/76991</link><guid isPermaLink="true">https://forum.cloudron.io/post/76991</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 08 Nov 2023 21:29:31 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Wed, 08 Nov 2023 18:06:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guyds" aria-label="Profile: guyds">@<bdi>guyds</bdi></a> said in <a href="/post/76960">SQL Error during login</a>:</p>
<blockquote>
<p dir="auto">Or is there a way to clone an older version of the app to another server?</p>
</blockquote>
<p dir="auto">I think there may be ways to install older versions of apps using the Cloudron CLI, but having never actually used it I couldn't tell you how.</p>
]]></description><link>https://forum.cloudron.io/post/76972</link><guid isPermaLink="true">https://forum.cloudron.io/post/76972</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Wed, 08 Nov 2023 18:06:10 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Wed, 08 Nov 2023 15:56:15 GMT]]></title><description><![CDATA[<p dir="auto">Unfortunately, since I'm using a free version of Cloudron I can only have 2 apps on a single Cloudron and therefore I'm not in the possibility to clone from an older version because I already have another app on that same Cloudron.<br />
And when importing a backup on another Cloudron, the versions of the old and new app should be identical and I can only install the latest version of the app on the new Cloudron, so I would only be able to clone from the latest version.</p>
<p dir="auto">Or is there a way to clone an older version of the app to another server?</p>
]]></description><link>https://forum.cloudron.io/post/76960</link><guid isPermaLink="true">https://forum.cloudron.io/post/76960</guid><dc:creator><![CDATA[guyds]]></dc:creator><pubDate>Wed, 08 Nov 2023 15:56:15 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Wed, 08 Nov 2023 13:07:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guyds" aria-label="Profile: guyds">@<bdi>guyds</bdi></a> yes, please. I think there is some bug in our migration logic. It uses some raw sql to migrate from ldap to oidc , maybe something is wrong there. Our own instance of mamoto migrated fine though</p>
]]></description><link>https://forum.cloudron.io/post/76940</link><guid isPermaLink="true">https://forum.cloudron.io/post/76940</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 08 Nov 2023 13:07:38 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Wed, 08 Nov 2023 12:47:38 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the suggestions.<br />
Running the migration manually doesn't have any effect though:</p>
<pre><code>/app/code#  sudo -E -u www-data -- /app/code/console core:update --yes

Everything is already up to date.
</code></pre>
<p dir="auto">I'll try to revert to an older backup or set up a clone from an older backup</p>
]]></description><link>https://forum.cloudron.io/post/76934</link><guid isPermaLink="true">https://forum.cloudron.io/post/76934</guid><dc:creator><![CDATA[guyds]]></dc:creator><pubDate>Wed, 08 Nov 2023 12:47:38 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Wed, 08 Nov 2023 11:35:31 GMT]]></title><description><![CDATA[<p dir="auto">Can you:</p>
<ol>
<li>Revert to old backup</li>
<li>Create a Clone from old backup to a new location</li>
<li>Try to update the clone. Is it reproducible?</li>
</ol>
]]></description><link>https://forum.cloudron.io/post/76917</link><guid isPermaLink="true">https://forum.cloudron.io/post/76917</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 08 Nov 2023 11:35:31 GMT</pubDate></item><item><title><![CDATA[Reply to SQL Error during login on Wed, 08 Nov 2023 11:15:45 GMT]]></title><description><![CDATA[<p dir="auto">This looks a bit like the database migration failed for some reason. Can you open a webterminal into the app and run the migration manually via:</p>
<pre><code>sudo -E -u www-data -- /app/code/console core:update --yes
</code></pre>
<p dir="auto">If you need to be up and running quickly, maybe consider restoring the app to the backup before the update.</p>
]]></description><link>https://forum.cloudron.io/post/76914</link><guid isPermaLink="true">https://forum.cloudron.io/post/76914</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 08 Nov 2023 11:15:45 GMT</pubDate></item></channel></rss>