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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    can't edit mattermost config

    Mattermost
    2
    9
    341
    Loading More Posts
    • 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.
    • potemkin_ai
      potemkin_ai last edited by

      error.png

      Trying to change back config.json at /app/code/config, but despite I'm root, somehow I can't edit the file.

      I'm also like 99% sure, that config was overwritten as EnableUploads for plugins was true in my case.

      Could you please, help?

      girish 1 Reply Last reply Reply Quote 0
      • Moved from Support by  girish girish 
      • girish
        girish Staff @potemkin_ai last edited by

        @potemkin_ai the mattermost config is located at /app/data/config.json (and not in /app/code) . Please see https://docs.cloudron.io/apps/mattermost/#config

        potemkin_ai 1 Reply Last reply Reply Quote 0
        • potemkin_ai
          potemkin_ai @girish last edited by

          @girish thank you, my bad.
          But the config was still overwritten - I'm sure I had this variable enabled (otherwise, I wouldn't be able to install github plugin)

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @potemkin_ai last edited by

            @potemkin_ai How can I reproduce this? I tried this:

            • I edited /app/data/config.json like this:
                "PluginSettings": {
                    "Enable": false,
                    "EnableUploads": true,
            
            • Then, I restarted the app. The value is retained.
            potemkin_ai 1 Reply Last reply Reply Quote 1
            • potemkin_ai
              potemkin_ai @girish last edited by

              @girish not sure, really.. I was surprised as well, it seems like it happened during the server version update - I installed GitHub extension at the beginning of June - for this to be possible, I had to edit config file, to enable custom extensions.

              I haven't ever touch the terminal on mattermost and yesterday I've got that this value is overwritten.

              Hopefully this will help with some clue?

              girish 1 Reply Last reply Reply Quote 0
              • girish
                girish Staff @potemkin_ai last edited by

                @potemkin_ai I see. Atleast, the package code does not touch PluginSettings at all - https://git.cloudron.io/cloudron/mattermost-app/-/blob/master/start.sh#L28 . Maybe there was a bug in the admin panel in mattermost that it overwrote settings incorrectly. Clicking save on admin panel inside mattermost does overwrite the settings in that file.

                potemkin_ai 1 Reply Last reply Reply Quote 0
                • potemkin_ai
                  potemkin_ai @girish last edited by

                  @girish yes, I see what you mean, not sure that I touch admin panel often since that; but anyway - how can I check that hypothesis? Any logs files or something?

                  girish 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @potemkin_ai last edited by

                    @potemkin_ai afaict, mattermost does not put out any logs when it updates the config, so I guess this only remains my best guess at this point. Is this still a problem or are you are just concerned that the variable might get overwritten randomly?

                    potemkin_ai 1 Reply Last reply Reply Quote 0
                    • potemkin_ai
                      potemkin_ai @girish last edited by

                      @girish thank you for the details and understanding!
                      Yes, I'm exactly worrying about reliability and that the files can get overwritten randomly.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Powered by NodeBB