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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Vaultwarden
  3. Vaultwarden error after image upgrade: "Referencing column 'user_uuid' and referenced column 'uuid' in foreign key constraint 'archives_ibfk_1' are incompatible."

Vaultwarden error after image upgrade: "Referencing column 'user_uuid' and referenced column 'uuid' in foreign key constraint 'archives_ibfk_1' are incompatible."

Scheduled Pinned Locked Moved Vaultwarden
14 Posts 8 Posters 303 Views 7 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.
  • J Online
    J Online
    joseph
    Staff
    wrote last edited by
    #4

    Mine seems to have updated fine

    1 Reply Last reply
    0
    • J Online
      J Online
      joseph
      Staff
      wrote last edited by
      #5

      Same as https://github.com/dani-garcia/vaultwarden/issues/7182 and https://github.com/dani-garcia/vaultwarden/discussions/7183 which points to some charset issues .

      1 Reply Last reply
      0
      • J Online
        J Online
        joseph
        Staff
        wrote last edited by joseph
        #6

        Can you check the encoding of the database and also the tables?

        In the web terminal, first get the database name:

        echo $CLOUDRON_MYSQL_DATABASE
        

        Then, click the mysql button above and press enter. Replace DB_NAME_HERE . You should get utf8mb4

        mysql> SELECT   SCHEMA_NAME,   DEFAULT_CHARACTER_SET_NAME,   DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME = 'DB_NAME_HERE';
        +------------------+----------------------------+------------------------+
        | SCHEMA_NAME      | DEFAULT_CHARACTER_SET_NAME | DEFAULT_COLLATION_NAME |
        +------------------+----------------------------+------------------------+
        | fb30d5a9f5fd3620 | utf8mb4                    | utf8mb4_unicode_ci     |
        +------------------+----------------------------+------------------------+
        

        Then, check all the tables.

        mysql> SELECT   TABLE_NAME,   TABLE_TYPE,   ENGINE,   TABLE_COLLATION FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'fb30d5a9f5fd3620' ORDER BY TABLE_NAME;
        +----------------------------+------------+--------+--------------------+
        | TABLE_NAME                 | TABLE_TYPE | ENGINE | TABLE_COLLATION    |
        +----------------------------+------------+--------+--------------------+
        | __diesel_schema_migrations | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | archives                   | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | attachments                | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | auth_requests              | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | ciphers                    | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | ciphers_collections        | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | collections                | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | collections_groups         | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | devices                    | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | emergency_access           | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | event                      | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | favorites                  | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | folders                    | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | folders_ciphers            | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | groups                     | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | groups_users               | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | invitations                | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | org_policies               | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | organization_api_key       | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | organizations              | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | sends                      | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | sso_auth                   | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | sso_users                  | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | twofactor                  | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | twofactor_duo_ctx          | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | twofactor_incomplete       | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | users                      | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | users_collections          | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        | users_organizations        | BASE TABLE | InnoDB | utf8mb4_unicode_ci |
        +----------------------------+------------+--------+--------------------+
        29 rows in set (0.01 sec)
        
        

        If the table encoding is not the above, then first take a backup of the app and then follow the instructions at https://github.com/dani-garcia/vaultwarden/wiki/Using-the-MariaDB-(MySQL)-Backend#foreign-key-errors-collation-and-charset

        1 Reply Last reply
        1
        • T Offline
          T Offline
          Teiluj
          wrote last edited by
          #7

          This seems to fix the issue indeed - At least from my side, there was a table collection charset mismatch.
          The other question is how it came to be.

          J 1 Reply Last reply
          1
          • T Teiluj

            This seems to fix the issue indeed - At least from my side, there was a table collection charset mismatch.
            The other question is how it came to be.

            J Online
            J Online
            joseph
            Staff
            wrote last edited by
            #8

            @Teiluj this was a bug in vaultwarden a while go (which is why they maintain a wiki article on how to fix it up). https://github.com/search?q=repo%3Adani-garcia%2Fvaultwarden charset&type=issues

            1 Reply Last reply
            3
            • P Offline
              P Offline
              p44
              translator
              wrote last edited by p44
              #9

              Same problem here. Restored to 1.24.4 and stopped automatic updates.

              1 Reply Last reply
              1
              • jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote last edited by
                #10

                I also had a not responding app and have reverted. Guess I need to look at that guide...

                I use Cloudron with Gandi & Hetzner

                1 Reply Last reply
                2
                • P Offline
                  P Offline
                  p44
                  translator
                  wrote last edited by
                  #11

                  @jdaviescoates @joseph Thanks for your advice. I followed this guide: https://github.com/dani-garcia/vaultwarden/wiki/Using-the-MariaDB-(MySQL)-Backend#foreign-key-errors-collation-and-charset and problem now is fixed.

                  thanks a lot

                  1 Reply Last reply
                  3
                  • B Offline
                    B Offline
                    BetaBreak
                    wrote last edited by
                    #12

                    Is there a step by step instruction to solve this issue, for me it is unclear how to fix this issue. Thanks!

                    1 Reply Last reply
                    1
                    • J Online
                      J Online
                      jayonrails
                      translator
                      wrote last edited by
                      #13

                      The above posted link to the GitHub wiki seems to be the step by step instruction. Which is the part where you don't get forward?

                      1 Reply Last reply
                      2
                      • B Offline
                        B Offline
                        BetaBreak
                        wrote last edited by BetaBreak
                        #14

                        Thanks, when I run the queries I don't get out put..
                        Should I do it before upgrading, and or in recovery mode?

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        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