JCMA Preflights: Network preflight doesn't support the outbound proxy settings.

XMLWordPrintable

    • 28
    • Minor
    • 52

      Issue Summary

      It seems like the connectivity tester (network preflight check) doesn't support outbound proxy settings. When the outbound proxy setting is configured in the Jira Server, every check is green in JCMA but not required URLs check (see attachment). Due to this, the run button is disabled and migration can not be started.

      This is reproducible on Data Center:

      Steps to Reproduce

      1. Make sure the Jira server is behind the proxy.
      2. Configure the outbound http/https proxy setting as mentioned in the article
      3. Create a migration plan and run the migration.
      4. All the preflight checks will be completed except for the network preflight.

      Expected Results

      Network checks should be completed and appear green. The 'run' button should be enabled too.

      Actual Results

      The below exception is thrown in the atlassian-jira.log file:

      2023-06-26 17:06:00,229+0200 ForkJoinPool.commonPool-worker-3 WARN e97712 1023x1136196x1 1dldy4v 208.127.128.84,10.44.67.202,127.0.0.1 /rest/migration/latest/app [c.a.j.migration.preflight.SocketConnectivityTester] Error opening connection at https://rps--prod-west2--migration-catalogue--migration-storage-v2.s3.us-west-2.amazonaws.com:
      java.net.SocketTimeoutException: connect timed out
      	at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
      	at java.base/java.net.PlainSocketImpl.socketConnect(Unknown Source)
      	at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
      	at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
      	at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
      	at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
      	at java.base/java.net.Socket.connect(Unknown Source)
      	at java.base/sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
      	at java.base/sun.net.NetworkClient.doConnect(Unknown Source)
      	at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
      	at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
      	at java.base/sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
      	at java.base/sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
      	at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
      	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
      	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
      	at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
      	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
      	at com.atlassian.jira.migration.preflight.SocketConnectivityTester.isReachable(SocketConnectivityTester.kt:19)
      

      Workaround

      1. Navigate to ${JIRA_URL}/secure/admin/jira/views/SiteDarkFeatures!default.jspa
      2. Add the below dark feature flag to disable the network preflight.
        com.atlassian.jira.migration.disable.network-health-check
        

      !Attention: This workaround is recommended only after ensuring that all required URLs (listed in the document below) have been whitelisted on the proxy/firewall and are accessible from the server/DC.

      https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/#:~:text=destination%20cloud%20site-,For%20JCMA,-plugin%20host%20communication

        1. network_preflight_check.png
          148 kB
          Deepak Pandey

            Assignee:
            Marcio Joffily
            Reporter:
            Deepak Pandey
            Votes:
            0 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: