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

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Twenty
  3. Twenty: IS_CONFIG_VARIABLES_IN_DB_ENABLED is hardcoded and overrides /app/data/env

Twenty: IS_CONFIG_VARIABLES_IN_DB_ENABLED is hardcoded and overrides /app/data/env

Scheduled Pinned Locked Moved Twenty
3 Posts 2 Posters 100 Views 2 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
    D
    david.opalia
    wrote last edited by
    #1

    App: Twenty
    Version: instance reports 2.37.0

    Summary

    start.sh appends a hardcoded IS_CONFIG_VARIABLES_IN_DB_ENABLED=false after copying /app/data/env, so any value a user sets for that variable in /app/data/env is silently overridden on every start.

    Details

    In /app/pkg/start.sh:

    cat /app/data/env > /run/twenty-server/.env
    cat >> /run/twenty-server/.env <<EOT
    IS_CONFIG_VARIABLES_IN_DB_ENABLED=false
    ...
    EOT
    

    Since the generated .env is read top to bottom, the appended line wins. I had IS_CONFIG_VARIABLES_IN_DB_ENABLED=true in /app/data/env; the resulting /run/twenty-server/.env contains false.

    Impact

    With database configuration disabled, Twenty's Admin Panel still renders the Configuration Variables and AI model settings, but no write succeeds. From the UI this looks like a broken feature rather than a deliberate deployment mode — in my case a generic "failed to update model recommendations" toast with no indication that the panel is read-only by design.

    It also means the only way to configure the instance is to edit /app/data/env and restart, which is not discoverable from the app itself.

    Suggested fix

    Only append the default when the user has not set it:

    grep -q '^IS_CONFIG_VARIABLES_IN_DB_ENABLED=' /app/data/env \
      || echo 'IS_CONFIG_VARIABLES_IN_DB_ENABLED=false' >> /run/twenty-server/.env
    

    Same pattern would apply to any other variable in that heredoc that isn't strictly infrastructure-bound (the Postgres/Redis/APP_SECRET lines obviously need to stay authoritative).

    Happy to test a build if that helps.

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

      Hello @david.opalia
      Thanks for reporting.
      An app update is available that enables users to set IS_CONFIG_VARIABLES_IN_DB_ENABLED in the /app/data/env file without the start.sh overwriting it.

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

        Thank you

        1 Reply Last reply
        3

        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