Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Matomo
  3. SQL Error during login

SQL Error during login

Scheduled Pinned Locked Moved Solved Matomo
14 Posts 4 Posters 614 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G guyds

    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

    girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #5

    @guyds 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

    1 Reply Last reply
    1
    • G Offline
      G Offline
      guyds
      wrote on last edited by
      #6

      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?

      jdaviescoatesJ girishG 2 Replies Last reply
      0
      • G guyds

        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?

        jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #7

        @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.

        I use Cloudron with Gandi & Hetzner

        1 Reply Last reply
        0
        • G guyds

          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?

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #8

          @guyds mm, indeed that would be problematic. Are you able to send us a mail at support@cloudron.io , we can debug it directly then ?

          G 1 Reply Last reply
          0
          • girishG girish

            @guyds mm, indeed that would be problematic. Are you able to send us a mail at support@cloudron.io , we can debug it directly then ?

            G Offline
            G Offline
            guyds
            wrote on last edited by
            #9

            @girish sure, I just sent an email to support.

            1 Reply Last reply
            1
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #10

              Been debugging this a bit. The issue is that the brute_force_log table has a missing field in @guyds instance. Maybe a missing migration 🤔

              mysql> 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)
              
              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #11

                OK, I had to do this:

                • Run MySQL command UPDATE option SET 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/

                1 Reply Last reply
                1
                • girishG girish has marked this topic as solved on
                • girishG girish has marked this topic as unsolved on
                • girishG girish has marked this topic as solved on
                • G Offline
                  G Offline
                  guyds
                  wrote on last edited by
                  #12

                  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?

                  girishG 1 Reply Last reply
                  1
                  • G guyds

                    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?

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #13

                    @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.

                    1 Reply Last reply
                    1
                    • G Offline
                      G Offline
                      guyds
                      wrote on last edited by
                      #14

                      @girish, fair enough.
                      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 🤔

                      1 Reply Last reply
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search