Unable to connect to Atlassian Marketplace with UPM
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Symptoms
When attempting to use the UPM, a java.net.UnknownHostException
is thrown.
The following appears in atlassian-bitbucket.log
:
1
2012-12-25 13:39:57,287 WARN [http-bio-7990-exec-7] admin 819x357x1 hveimk 16.54.185.84 "GET /rest/plugins/1.0/product-version HTTP/1.1" com.atlassian.upm.pac.PacClientImpl Error when querying application info from MPAC: com.atlassian.marketplace.client.MpacException: java.net.UnknownHostException: domain.name: Name or service not known
Cause
There are a few possible causes:
The domain.name in the error showing marketplace.atlassian.com.
The Universal Plugin Manager is unable to establish an outbound connection to the Atlassian Marketplace. The most likely cause for this is the Bitbucket Server instance does not have an outbound connection to the Information Superhighway or is using an internal DNS that does not have marketplace.atlassian.com in it.
The domain.name in the error showing proxy.server.domain.name.
Bitbucket Server is configured to use the proxy server to access Atlassian Marketplace. However, Bitbucket Server instance DNS does not have proxy.server.domain.name or there is a mistake in the http.proxyHost setting.
Resolution
This can be resolved with any of the following:
Please fix your communication with your DNS so it can resolve marketplace.atlassian.com.
If that doesn't work:
-Disable communication with the Atlassian Marketplace at Administration >> Plugins >> Manage Plugins if the server couldn't access Atlassian Marketplace
-Install plugin manually to Bitbucket Server by downloading the plugin jar at Marketplace and executing the steps described in the Installing add-ons documentation
Set up Bitbucket Server to use an outbound proxy as per our How to configure an outbound HTTP and HTTPS proxy for Bitbucket Server KB article.
Make sure that https.proxyHost has the correct domain name setting.
Was this helpful?