Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-98837

Confluence is trying to reach Marketplace even when the connectivity to Marketplace has been disabled.

XMLWordPrintable

      Problem

      Confluence is trying to reach Marketplace even when the connectivity to Marketplace has been disabled.

      Environment

      Confluence version 9.1.1 and 9.2. Tested in both clustered and non-clustered instance.

      Steps to Reproduce

      1. Creating the Confluence environment for the given version in the bug ticket.
      2. Disable the connectivity setting of UPM (Disable all the options in the Manage apps -> Setting screen.)
      3. Disable the CCMA plugin to prevent connections to the Atlassian Cloud endpoints.
      4. Then, turn off the internet connection of the environment to see the connection error messages.
      5. After the above steps restart the environment and leave them for 6 hours.

      Expected Results

      No error message showing MpacApplicationCacheManager:thread trying to connect to Marketplace.
       

      Actual Results

      Confluence tries to connect to Marketplace and throw the following error every 4 hours.

      2024-12-17 18:22:10,699 INFO [Catalina-utility-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 9.2.0 [build 9109 based on commit hash 9f4def75a14093175c73fe350cd5e304939dbd4f] - synchrony version 6.1.0
      . . .
      2024-12-17 18:23:04,857 ERROR [MpacApplicationCacheManager:thread-1] [marketplace.parentsoftware.client.ParentSoftwareClientImpl] safeGetParentSoftwareVersionByBuildNumber ParentSoftwareClient error : java.net.UnknownHostException: marketplace.atlassian.com: Temporary failure in name resolution
      com.atlassian.marketplace.parentsoftware.ApiException: java.net.UnknownHostException: marketplace.atlassian.com: Temporary failure in name resolution
      	at com.atlassian.marketplace.parentsoftware.ApiClient.invokeAPI(ApiClient.java:899)
      	at com.atlassian.marketplace.parentsoftware.api.ParentSoftwareVersionApisApi.getParentSoftwareVersionByBuildNumber(ParentSoftwareVersionApisApi.java:232)
      	at com.atlassian.marketplace.parentsoftware.client.ParentSoftwareClientImpl.getParentSoftwareVersionByBuildNumber(ParentSoftwareClientImpl.java:46)
      	at com.atlassian.marketplace.parentsoftware.client.ParentSoftwareClientImpl.safeGetParentSoftwareVersionByBuildNumber(ParentSoftwareClientImpl.java:126)
      . . .
      Caused by: java.net.UnknownHostException: marketplace.atlassian.com: Temporary failure in name resolution
      . . .
      2024-12-17 22:24:44,697 ERROR [MpacApplicationCacheManager:thread-2] [marketplace.parentsoftware.client.ParentSoftwareClientImpl] safeGetParentSoftwareVersionByBuildNumber ParentSoftwareClient error : java.net.UnknownHostException: marketplace.atlassian.com: Name or service not known
      com.atlassian.marketplace.parentsoftware.ApiException: java.net.UnknownHostException: marketplace.atlassian.com: Name or service not known
      	at com.atlassian.marketplace.parentsoftware.ApiClient.invokeAPI(ApiClient.java:899)
      	at com.atlassian.marketplace.parentsoftware.api.ParentSoftwareVersionApisApi.getParentSoftwareVersionByBuildNumber(ParentSoftwareVersionApisApi.java:232)
      	at com.atlassian.marketplace.parentsoftware.client.ParentSoftwareClientImpl.getParentSoftwareVersionByBuildNumber(ParentSoftwareClientImpl.java:46)
      	at com.atlassian.marketplace.parentsoftware.client.ParentSoftwareClientImpl.safeGetParentSoftwareVersionByBuildNumber(ParentSoftwareClientImpl.java:126)
      	at com.atlassian.upm.pac.MpacParentSoftwareSupplier.fetchMpacAppInfoForLocalBuild(MpacParentSoftwareSupplier.java:49)
      . . .
      Caused by: java.net.UnknownHostException: marketplace.atlassian.com: Name or service not known
      

       

      Workaround

      There is currently no workaround to stop Confluence from connecting to Marketplace when connectivity is disabled, but if you want to suppress these message you can use the following steps:

      • Stop Confluence
      • Navigate to <Confluence Installation Directory>/confluence/WEB-INF/classes
      • Edit logging.properties file and add the following line;
        com.atlassian.marketplace=FATAL
        
      • Edit log4j.properties and add the following line appender of Confluence log section;
        log4j.logger.com.atlassian.marketplace=FATAL
        

        Sample Configuration for Confluence Log Appender

        log4j.appender.confluencelog=com.atlassian.confluence.logging.ConfluenceHomeLogAppender
        # Comment the above line and uncomment the following 2 lines if you want to log to a specific location
        #log4j.appender.confluencelog=org.apache.log4j.RollingFileAppender
        #log4j.appender.confluencelog.File=${catalina.home}/logs/atlassian-confluence.log
        log4j.appender.confluencelog.LogFileName=atlassian-confluence.log
        log4j.appender.confluencelog.Threshold=DEBUG
        log4j.appender.confluencelog.MaxFileSize=20480KB
        log4j.appender.confluencelog.MaxBackupIndex=5
        log4j.appender.confluencelog.layout=com.atlassian.confluence.util.PatternLayoutWithContext
        log4j.appender.confluencelog.layout.ConversionPattern=%d %p [%t] [%c{4}] %M %enc{%m}{JSON}%n
        log4j.logger.com.atlassian.marketplace=FATAL
        
      • Restart Confluence, then please monitor the logs to see if the error message still appears.

        1. image-2024-12-20-08-35-40-531.png
          211 kB
          Etienne Lacazedieu

              Unassigned Unassigned
              14e5536372e2 Ojas Potdar
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: