Couldn't install distributed archive
Summary
Mattermost rejects upload of installer archive due to its size
Steps to reproduce
Steps to reproduce the behavior:
- Go to System Console > Plugins > Plugin Management > Upload Plugin
- Click Choose File
- Select downloaded v1.0.0 archive
- Click Upload
Expected behavior
Plugin to update
Observed behavior (that appears unintentional)
An error about invalid server response was shown. Network inspector shows 400 error caused by large upload. It appears to be from Mattermost itself as I've already increased the upload limit in our Nginx proxy's config after it gave a similar 413 response.
Server configuration
Operating system: Debian stable
Mattermost version: 7.8.2
Remind version: n.a.
Updated from an older Remind bot version or fresh install: updated
Additional context
I worked around the issue by extracting the archive locally, deleting the binaries in com.github.scottleedavis.mattermost-plugin-remind/server/dist/ that aren't for our platform, then the references to the removed binaries from com.github.scottleedavis.mattermost-plugin-remind/plugin.json, then recompressed it all, and uploaded the (much) smaller version.
I also noticed that neither of the arm64 binaries were referenced in the JSON file, I don't know whether that's intentional.
Just increase attachment size limit in Mattermost System Console.
@beddead Sure, but it'd still be better to have platform-specific archives (which I had at < 13MB) rather than one that puts irrelevant files on your server and is over the default upload limit.