Add-on is installed successfully via UPM but there's an error occurred
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Problem
After clicking to install an add-on via JIRA Administration > Add-ons > Find add-ons
, an error message :
An unexpected error occurred. Refer to the logs for more information
in a red box , despite the add-on is actually installed successfully.
Diagnosis
Environment
- The user is accessing JIRA with Apache integrated.
Diagnostic Steps
- Upload add-on file manually will install the add-on without any errors
- Install an add-on with proxy bypassed will also install the add-on without any errors
The following appears in the Apache log
[<date>] [evasive20:error] [pid xxxxx] [client ip_address:xxxxx] client denied by server configuration: proxy: http://proxy.com, referer: http://proxy.com/something
Cause
The access to the marketplace was denied by an Apache configuration.
Workaround
Add JIRA base URL in a list of whitelisted IP Addresses in the proxy configuration file
References:
- https://www.linode.com/docs/websites/apache-tips-and-tricks/modevasive-on-apache#whitelisting-ip-addresses
- http://parkroad.co.za/identifying-and-fixing-modevasive-client-denied-server-configuration-errors