SQL Error during login
-
Thanks for the suggestions.
Running the migration manually doesn't have any effect though:/app/code# sudo -E -u www-data -- /app/code/console core:update --yes Everything is already up to date.
I'll try to revert to an older backup or set up a clone from an older backup
-
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.
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.Or is there a way to clone an older version of the app to another server?
-
@guyds said in SQL Error during login:
Or is there a way to clone an older version of the app to another server?
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.
-
Been debugging this a bit. The issue is that the
brute_force_log
table has a missing field in @guyds instance. Maybe a missing migrationmysql> 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)
-
OK, I had to do this:
- Run MySQL command
UPDATE
optionSET option_value = "4.2.0" WHERE option_name = "version_core";
sudo -E -u www-data -- /app/code/console core:update
Works now. This is document upstream in https://matomo.org/faq/how-to-update/faq_179/
- Run MySQL command
-
-
-
-
Thanks @girish, I'm glad you found the issue.
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.The question now is if/how this can be prevented in the future
For starters it might be a good idea to add this info to the documentation for the Matomo app? -
@guyds 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.
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.