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

Mattermost config cannot be updated

Scheduled Pinned Locked Moved Solved Mattermost
mattermost
12 Posts 8 Posters 851 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.
  • C Offline
    C Offline
    csilvav
    wrote on last edited by girish
    #1

    Hi team,
    I don't know if you keep in mind that some apps need to update config files to allow some hidden/restricted features for more experienced people, and nowadays I could see that it is not possible.
    I was trying to update config.json to allow upload plugins and the files are read-only. How we can change it ?

    1 Reply Last reply
    0
  • fbartelsF Offline
    fbartelsF Offline
    fbartels App Dev
    wrote on last edited by
    #2

    Hi @csilvav ,

    the config.json of Mattermost is stored in /app/data and should therefore be writable to the admin (the file is created in https://git.cloudron.io/cloudron/mattermost-app/blob/master/start.sh#L7)

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #3

    @csilvav yes, as @fbartels said, you should be able to edit /app/data/config.json using the web terminal. Let us know if that doesn't work. You have to restart the app as well for the changes to take effect.

    1 Reply Last reply
    0
  • L Offline
    L Offline
    leon
    wrote on last edited by
    #4

    I have a similar issue. My attemts failed to change the config.json file in the terminal. The vi command returns a "readonly file" and I cannot change the permissions. Neither with chmod or with ls. Also mount doesn't work.

    Running the CLT I got this result:
    sudo -u cloudron /app/code/bin/mattermost config set PluginSettings.EnableUploads true
    Error: failed to initialize config store: failed to load: failed to persist required changes after load: failed to write file: open /app/code/config/config.json: read-only file system

    For the mount command I got the report that I don't have the permissions to do that.

    It is a clean new installation. No imports or anything, just the plane Mattermost.

    1 Reply Last reply
    0
  • murgeroM Offline
    murgeroM Offline
    murgero App Dev
    wrote on last edited by
    #5

    @leon said in Mattermost config cannot be updated:

    /app/code/config/config.json

    Edit the config from /app/data/ not /app/code/

    --
    https://urgero.org
    ~ Professional Nerd. Freelance Programmer. ~
    Matrix: @murgero:urgero.org

    1 Reply Last reply
    0
  • L Offline
    L Offline
    leon
    wrote on last edited by
    #6

    @murgero thank you. This one works 🙂

    murgeroM 1 Reply Last reply
    0
  • murgeroM Offline
    murgeroM Offline
    murgero App Dev
    replied to leon on last edited by
    #7

    @leon Glad to hear! But just an FYI, if you read the comment right above yours, you would have found your answer sooner. Really happy to help though!

    --
    https://urgero.org
    ~ Professional Nerd. Freelance Programmer. ~
    Matrix: @murgero:urgero.org

    1 Reply Last reply
    0
  • L Offline
    L Offline
    leon
    wrote on last edited by
    #8

    @murgero now as you said it I see it. I was focussed on the terminal use mentioned in the comment above not about the path. I'll keep that for reading more critically in the future. I'm new to Cloudron but besides that minor issue here everything works great.

    1 Reply Last reply
    1
  • subvenS Offline
    subvenS Offline
    subven
    wrote on last edited by
    #9

    Keep in mind that most of the good features are Enterprise only. The Team version lacks any permission policy so everyone is able to invite, delete channels and so on. See pricing-feature-comparison. For this reason most projects I know and even the company I work for uses Rocket or Riot/Matrix.

    1 Reply Last reply
    1
  • S Offline
    S Offline
    smichna
    wrote on last edited by
    #10

    Hi Team,
    i could edit the config.json in /app/data/ ("EnableUploads": true,), but I still cant upload any plugin (https://screenshots.x-mailer.de/u/smichna-2020.09.15-1TsnjG54.png). I have restarted the app, it doenst work.

    I also tried to upload a plugin via sudo -u cloudron /app/code/bin/mattermost plugin add com.github.scottleedavis.mattermost-plugin-remind-0.4.4.tar.gz, but it doenst work as well:

    root@c0749861-87cc-4103-a2d0-a309353d423d:/tmp# sudo -u cloudron /app/code/bin/mattermost plugin add com.github.scottleedavis.mattermost-plugin-remind-0.4.4.tar.gz
    {"level":"info","msg":"Server is initializing..."}
    panic: failed to apply option: failed to apply Config option: failed to load: failed to persist required changes after load: failed to write file: open /app/code/config/config.json: read-only file system

    Can you help me?

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

    @smichna you likely have to run the mattermost cli tool with:

    sudo -u cloudron /app/code/bin/mattermost --config=/app/data/config.json ...
    
    1 Reply Last reply
    0
  • S Offline
    S Offline
    smichna
    wrote on last edited by
    #12

    Thank you, that works. But why I cant upload plugins via GUI although I have set the right setting (https://screenshots.x-mailer.de/u/smichna-2020.09.15-1TsnjG54.png).

    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.