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. Mattermost
  3. Changes to db setting in config.json are not persisting

Changes to db setting in config.json are not persisting

Scheduled Pinned Locked Moved Solved Mattermost
4 Posts 2 Posters 666 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.
  • S Offline
    S Offline
    shrey
    wrote on last edited by
    #1

    On a fresh Mattermost install, i tried to edit the config.json file, via the File Manager, to connect to a remote Postgres database as the primary database (https://docs.mattermost.com/configure/environment-configuration-settings.html#data-source).

    But, as soon as i restart the app, the changes get overwritten by the default mysql config.

    Need some help to figure out the issue here.

    girishG 1 Reply Last reply
    1
    • S shrey marked this topic as a question on
    • S shrey

      On a fresh Mattermost install, i tried to edit the config.json file, via the File Manager, to connect to a remote Postgres database as the primary database (https://docs.mattermost.com/configure/environment-configuration-settings.html#data-source).

      But, as soon as i restart the app, the changes get overwritten by the default mysql config.

      Need some help to figure out the issue here.

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

      @shrey it's not possible to use a different database other than the one that the package pre-configures. This is true for any app and not just mattermost. Databases are part of the application lifecycle - update/restore/backups etc. It's not possible to make it external.

      You should be able to configure other settings though.

      S 1 Reply Last reply
      0
      • girishG girish has marked this topic as solved on
      • girishG girish

        @shrey it's not possible to use a different database other than the one that the package pre-configures. This is true for any app and not just mattermost. Databases are part of the application lifecycle - update/restore/backups etc. It's not possible to make it external.

        You should be able to configure other settings though.

        S Offline
        S Offline
        shrey
        wrote on last edited by
        #3

        @girish Oh, didn't know that.

        girishG 1 Reply Last reply
        0
        • S shrey

          @girish Oh, didn't know that.

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

          @shrey Database and email are "special". It's part of app packaging and cannot be changed across apps.

          https://docs.cloudron.io/packaging/addons/ are the services provided by Cloudron.

          We do make things optional on a case by case basis. For example, email can be set as optionally configured in the package. Next release we will make turn configuration option. These are of course easier to do than making database configuration optional because they are not part of backups/updates.

          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