Updating add-ons by file upload hangs using UPM
Symptoms
Uploading a JAR just using UPM as described in Updating add-ons by file upload just hangs on the spinner. See image below for example:
No specific error was shown in the logs atlassian-bitbucket.log
.
Diagnosis
After inspecting the Javascript on the browser (An example on how to do that for Chrome can be found here), the root cause could be determined.
Cause
The proxy was responding with 413 (Request Entity Too Large).
Resolution
For the reported issue and proper illustration, the proxy was a nginx. The client_max_body_size
parameter was set to 8m
whilst the plugin JAR was 22mb large. After setting the ngnix client_max_body_size
parameter to 50m
the plugin installation was successfully completed.