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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

can't edit mattermost config

Scheduled Pinned Locked Moved Mattermost
9 Posts 2 Posters 366 Views
    • 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_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    wrote on last edited by
    #1

    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?

    girishG 1 Reply Last reply
    0
  • girishG girish moved this topic from Support on
  • girishG Offline
    girishG Offline
    girish Staff
    replied to potemkin_ai on last edited by
    #2

    @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_aiP 1 Reply Last reply
    0
  • potemkin_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    replied to girish on last edited by
    #3

    @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)

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to potemkin_ai on last edited by
    #4

    @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_aiP 1 Reply Last reply
    1
  • potemkin_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    replied to girish on last edited by
    #5

    @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?

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to potemkin_ai on last edited by
    #6

    @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_aiP 1 Reply Last reply
    0
  • potemkin_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    replied to girish on last edited by
    #7

    @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?

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to potemkin_ai on last edited by
    #8

    @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_aiP 1 Reply Last reply
    0
  • potemkin_aiP Offline
    potemkin_aiP Offline
    potemkin_ai
    replied to girish on last edited by
    #9

    @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
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.