mattermost-plugin-remind icon indicating copy to clipboard operation
mattermost-plugin-remind copied to clipboard

Couldn't install distributed archive

Open Roy-Orbison opened this issue 2 years ago • 2 comments

Summary

Mattermost rejects upload of installer archive due to its size

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to System Console > Plugins > Plugin Management > Upload Plugin
  2. Click Choose File
  3. Select downloaded v1.0.0 archive
  4. 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.

Roy-Orbison avatar Mar 31 '23 04:03 Roy-Orbison

Just increase attachment size limit in Mattermost System Console.

beddead avatar Jun 08 '23 06:06 beddead

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

Roy-Orbison avatar Jun 08 '23 06:06 Roy-Orbison