Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Couldn't install distributed archive #231

Open
Roy-Orbison opened this issue Mar 31, 2023 · 2 comments
Open

Couldn't install distributed archive #231

Roy-Orbison opened this issue Mar 31, 2023 · 2 comments

Comments

@Roy-Orbison
Copy link

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.

@beddead
Copy link

beddead commented Jun 8, 2023

Just increase attachment size limit in Mattermost System Console.

@Roy-Orbison
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants