Summary
I am currently writing a custom server plugin. I’ve updated the configuration struct to add a url string field, and I added a setting in plugin.json with a matching key.
Heya Jonathan! Welcome to the Mattermost forums. It looks like this might be due to a configuration or permissions issue, and I’m hoping someone here might have a workaround for ya soon. In the meantime, check out our Mattermost Plugin Configuration guide for more details.
Hi. After upgrading from 9.11 to 10.4.2, we also saw that config.json erases plugin information (keys, access points). Rolled back to 10.2.0 - the problem went away. But at the same time, we noticed that sending messages began to take longer. We tried to activate the enterpse version and build a cluster - but this did not bring success. Delays in sending continued to occur. After rolling back to 10.2.0 - the delays remained but became smaller.
So, I was able to reproduce the error in the test environment. What I did: activated the cluster mode. Cloned the virtual machine using vmware. Enabled the “notification” plugin /previously called “notification banner” on the production server. Started the cloned machine. The Mattermost service started on its own. After that, I added a node to the cluster. After restarting the service on the nodes, the config was reset. Some plugins were completely erased.
I’m trying to figure out what exactly caused this. Launching a cloned machine with identical machine-id or introducing nodes into the cluster with different config.json.
In this case, the cluster version does not seem to be fault-tolerant. If you have a cluster, the data will be erased on all nodes after restarting the application.