Summary
Crowd administration panel can take longer to respond if the marketplace is unreachable.
Environment
Steps to Reproduce
- Add entry in /etc/hosts to simulate marketplace being unreachable:
203.56.8.1 marketplace.atlassian.com
- Try to visit the Manage Apps page, notice it is trying to reach the marketplace
- Try to click on other items of the admin panel before the request to the marketplace times out
Expected Results
Pages load quickly.
Actual Results
If the thread is still trying to reach the marketplace, the menus will not load until the request times out:
2019-11-20 11:40:52,854 http-nio-8095-exec-17 INFO [atlassian.marketplace.client.MarketplaceClient] GET https:2019-11-20 11:41:07,856 http-nio-8095-exec-17 WARN [atlassian.upm.pac.PacClientImpl] Error when querying application info from MPAC: com.atlassian.marketplace.client.MpacException: org.apache.http.conn.ConnectTimeoutException: Connect to marketplace.atlassian.com:443 [marketplace.atlassian.com/203.56.8.1] failed: connect timed out
The browser tab will hang if you click on any other item in Crowd in the time frame between the messages above (marketplace request and timeout).
Notes
This bug is similar to the following one which affects Confluence:
Workaround
In Crowd, disable connectivity to Marketplace:
- Cog Icon >> General Configuration >> Manage Apps >> Settings >> Uncheck the 'Connect to the Atlassian Marketplace' box, then click 'Apply'
Or, configure an outbound proxy as the Internet gateway for Crowd so the Marketplace address can be reached: