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. Twenty
  3. Twenty CRM update on Cloudron fails – database schema mismatch (missing column)

Twenty CRM update on Cloudron fails – database schema mismatch (missing column)

Scheduled Pinned Locked Moved Twenty
11 Posts 5 Posters 661 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.
  • D Offline
    D Offline
    david.opalia
    wrote on last edited by james
    #1

    Error logs

    QueryFailedError: column core.workspace.useRecommendedModels does not exist
    code: '42703'
    routine: 'errorMissingColumn'
    

    This happens during a query when checking user existence (CheckUserExists).

    What I understand

    It looks like the application expects new fields in the core.workspace table, but the database schema was not updated accordingly.

    What I tried

    I manually added one missing column:

    ALTER TABLE core.workspace 
    ADD COLUMN "enabledAiModelIds" jsonb;
    

    But the app still fails due to another missing column:

    useRecommendedModels
    

    Additional issue

    I tried to run migrations manually:

    npm run typeorm migration:run
    

    But the script does not exist.

    1 Reply Last reply
    1
    • jamesJ Online
      jamesJ Online
      james
      Staff
      wrote on last edited by
      #2

      Hello @david.opalia
      The app is still marked as unstable.
      We have recently made a big change to the app.
      Could you please try to uninstall the app and install it again?

      1 Reply Last reply
      1
      • D Offline
        D Offline
        david.opalia
        wrote on last edited by
        #3

        @james yes, it works.

        After investigation, the issue appears to be related to a version gap:

        Current instance version: 1.18
        Upgrade attempted directly to 1.21
        The system requires at least 1.20 for workspace migrations to proceed

        As a result, at least one workspace (my unique workspace) seems to still be at a version below 1.20 (1.18 here), which blocks the global upgrade process.

        @nebulon @james Going forward, could we consider performing updates step-by-step to avoid this kind of issue?

        jamesJ 1 Reply Last reply
        0
        • D david.opalia

          @james yes, it works.

          After investigation, the issue appears to be related to a version gap:

          Current instance version: 1.18
          Upgrade attempted directly to 1.21
          The system requires at least 1.20 for workspace migrations to proceed

          As a result, at least one workspace (my unique workspace) seems to still be at a version below 1.20 (1.18 here), which blocks the global upgrade process.

          @nebulon @james Going forward, could we consider performing updates step-by-step to avoid this kind of issue?

          jamesJ Online
          jamesJ Online
          james
          Staff
          wrote on last edited by
          #4

          Hello @david.opalia

          @david.opalia said:

          @nebulon @james Going forward, could we consider performing updates step-by-step to avoid this kind of issue?

          This is the case for all apps that are not marked as unstable.

          Unstable apps are subjected to changes that can break the app. Like you have experienced here.
          We do this with unstable apps so we can get them into a stable state as fast as possible.
          Since there can be major issues with previous versions of an unstable app, a breaking version that gets us faster to a stable release is sometimes more efficient than handling the issues of the previous version into the next version and so on.

          1 Reply Last reply
          1
          • A Offline
            A Offline
            admin 0
            wrote on last edited by
            #5

            No chance here to migrate? Just trying to avoid re-configuring all objects and migrate all my data.

            1 Reply Last reply
            1
            • jamesJ Online
              jamesJ Online
              james
              Staff
              wrote on last edited by james
              #6

              Hello @admin-0
              Currently no.
              But, let me get back to you on that.
              We might be able to push the other version for 1.20 as well to avoid this struggle.

              1 Reply Last reply
              0
              • jamesJ Online
                jamesJ Online
                james
                Staff
                wrote on last edited by
                #7

                Hello @admin-0

                After some investigation the effort would be too high for an unstable app.
                Thus, unfortunately we can't provide support.
                You will have to reinstall the app.

                1 Reply Last reply
                0
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #8

                  But it is valuable information at least that apparently the app needs to be updated one version after the other.

                  D 1 Reply Last reply
                  1
                  • J Offline
                    J Offline
                    JLX89
                    wrote on last edited by
                    #9

                    I'm attempting to login to Twenty, but seeing a server error occurred and unable to login. I've sanitized the logs and provided them at: https://paste.cloudron.io/moludibicu.sql

                    Any thoughts?

                    1 Reply Last reply
                    0
                    • jamesJ Online
                      jamesJ Online
                      james
                      Staff
                      wrote on last edited by james
                      #10

                      Hello @jlx89
                      Please see the solution above.
                      Or the issue is related to https://forum.cloudron.io/post/123360 which also has a fix.

                      1 Reply Last reply
                      0
                      • jamesJ james referenced this topic
                      • nebulonN nebulon

                        But it is valuable information at least that apparently the app needs to be updated one version after the other.

                        D Offline
                        D Offline
                        david.opalia
                        wrote last edited by
                        #11

                        @nebulon

                        The documentation say :
                        "Cross-version upgrades (v1.22+)
                        Starting from v1.22, Twenty supports cross-version upgrades. You can jump directly from any supported version to the latest release without stepping through each intermediate version. For example, upgrading from v1.22 straight to v2.0 is fully supported."

                        So I think it's ok for now.

                        1 Reply Last reply
                        1

                        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