Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75119

Build report UnknownHostException in console log for Bitbucket Server when the server instance is under a context root

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • None
    • bitbucket-branch-source-plugin 933.3.0
    • 933.3.1

      After upgrade to 933.3.0 version, Build report UnknownHostException for Bitbucket Server

      Seems like, it affects Bitbucket server where Users dont run Bitbucket on root domain 

      Example:

      https://bitbucket.company.com/bitbucket

          [JENKINS-75119] Build report UnknownHostException in console log for Bitbucket Server when the server instance is under a context root

          Sabri added a comment -

          Hello same issue since updating to 933.3.0 getting 

          FATAL: Failed to recompute children of AMO FR » Terraform for PR
          java.net.UnknownHostException: bitbucket.redacted.com/bitbucket

          Looks like the /Bitbucket is added to the DNS name which doesn't work

          Sabri added a comment - Hello same issue since updating to 933.3.0 getting  FATAL: Failed to recompute children of AMO FR » Terraform for PR java.net.UnknownHostException: bitbucket.redacted.com/bitbucket Looks like the /Bitbucket is added to the DNS name which doesn't work

          Nikolas Falco added a comment - - edited

          When this error happens? On build after checkout, when edit job configuration, when click on "Scan Organization Folder" ?

          Stacktrace would help to get from where the issue comes

          Nikolas Falco added a comment - - edited When this error happens? On build after checkout, when edit job configuration, when click on "Scan Organization Folder" ? Stacktrace would help to get from where the issue comes

          Sabri added a comment -

          Hello here is the full log :

          Started by timer
          [Tue Jan 14 08:52:07 CET 2025] Starting branch indexing...
          ERROR: [Tue Jan 14 08:52:10 CET 2025] Could not update folder level actions from source 5bafe402-2b06-43a3-9030-3f36e9135c33
          [Tue Jan 14 08:52:10 CET 2025] Finished branch indexing. Indexing took 2.1 sec
          FATAL: Failed to recompute children of AMO FR » Terraform for PR
          java.net.UnknownHostException: bitbucket.redacted.com/bitbucket
          	at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:801)
          	at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:887)
          	at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1533)
          	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1385)
          	at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306)
          	at PluginClassLoader for apache-httpcomponents-client-4-api//org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
          	at PluginClassLoader for apache-httpcomponents-client-4-api//org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:112)
          	at PluginClassLoader for apache-httpcomponents-client-4-api//org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
          	at PluginClassLoader for apache-httpcomponents-client-4-api//org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
          	at PluginClassLoader for apache-httpcomponents-client-4-api//org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
          	at PluginClassLoader for apache-httpcomponents-client-4-api//org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
          	at PluginClassLoader for apache-httpcomponents-client-4-api//org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
          	at PluginClassLoader for apache-httpcomponents-client-4-api//org.apache.http.impl.execchain.ServiceUnavailableRetryExec.execute(ServiceUnavailableRetryExec.java:85)
          	at PluginClassLoader for apache-httpcomponents-client-4-api//org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
          	at PluginClassLoader for apache-httpcomponents-client-4-api//org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
          	at PluginClassLoader for apache-httpcomponents-client-4-api//org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
          	at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.impl.client.AbstractBitbucketApi.executeMethod(AbstractBitbucketApi.java:229)
          	at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.impl.client.AbstractBitbucketApi.doRequest(AbstractBitbucketApi.java:237)
          Caused: java.io.IOException: Communication error for url: GET https://bitbucket.redacted.com/bitbucket/rest/api/1.0/projects/AF/repos/terraform HTTP/1.1
          	at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.impl.client.AbstractBitbucketApi.doRequest(AbstractBitbucketApi.java:256)
          	at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.impl.client.AbstractBitbucketApi.doRequest(AbstractBitbucketApi.java:263)
          	at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.impl.client.AbstractBitbucketApi.getRequest(AbstractBitbucketApi.java:318)
          	at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRepository(BitbucketServerAPIClient.java:425)
          	at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.gatherPrimaryCloneLinks(BitbucketSCMSource.java:579)
          	at PluginClassLoader for cloudbees-bitbucket-branch-source//com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieveActions(BitbucketSCMSource.java:1110)
          	at PluginClassLoader for scm-api//jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:847)
          	at PluginClassLoader for branch-api//jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:619)
          	at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:272)
          	at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:171)
          	at PluginClassLoader for branch-api//jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1065)
          	at hudson.model.ResourceController.execute(ResourceController.java:101)
          	at hudson.model.Executor.run(Executor.java:446)
          Finished: FAILURE
          

          When scanning for multibranches.

          Sabri added a comment - Hello here is the full log : Started by timer [Tue Jan 14 08:52:07 CET 2025] Starting branch indexing... ERROR: [Tue Jan 14 08:52:10 CET 2025] Could not update folder level actions from source 5bafe402-2b06-43a3-9030-3f36e9135c33 [Tue Jan 14 08:52:10 CET 2025] Finished branch indexing. Indexing took 2.1 sec FATAL: Failed to recompute children of AMO FR » Terraform for PR java.net.UnknownHostException: bitbucket.redacted.com/bitbucket at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:801) at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:887) at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1533) at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1385) at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306) at PluginClassLoader for apache-httpcomponents-client-4-api //org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45) at PluginClassLoader for apache-httpcomponents-client-4-api //org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:112) at PluginClassLoader for apache-httpcomponents-client-4-api //org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) at PluginClassLoader for apache-httpcomponents-client-4-api //org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) at PluginClassLoader for apache-httpcomponents-client-4-api //org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at PluginClassLoader for apache-httpcomponents-client-4-api //org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) at PluginClassLoader for apache-httpcomponents-client-4-api //org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at PluginClassLoader for apache-httpcomponents-client-4-api //org.apache.http.impl.execchain.ServiceUnavailableRetryExec.execute(ServiceUnavailableRetryExec.java:85) at PluginClassLoader for apache-httpcomponents-client-4-api //org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at PluginClassLoader for apache-httpcomponents-client-4-api //org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at PluginClassLoader for apache-httpcomponents-client-4-api //org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at PluginClassLoader for cloudbees-bitbucket-branch-source //com.cloudbees.jenkins.plugins.bitbucket.impl.client.AbstractBitbucketApi.executeMethod(AbstractBitbucketApi.java:229) at PluginClassLoader for cloudbees-bitbucket-branch-source //com.cloudbees.jenkins.plugins.bitbucket.impl.client.AbstractBitbucketApi.doRequest(AbstractBitbucketApi.java:237) Caused: java.io.IOException: Communication error for url: GET https: //bitbucket.redacted.com/bitbucket/ rest /api/1.0/projects/AF/repos/terraform HTTP/1.1 at PluginClassLoader for cloudbees-bitbucket-branch-source //com.cloudbees.jenkins.plugins.bitbucket.impl.client.AbstractBitbucketApi.doRequest(AbstractBitbucketApi.java:256) at PluginClassLoader for cloudbees-bitbucket-branch-source //com.cloudbees.jenkins.plugins.bitbucket.impl.client.AbstractBitbucketApi.doRequest(AbstractBitbucketApi.java:263) at PluginClassLoader for cloudbees-bitbucket-branch-source //com.cloudbees.jenkins.plugins.bitbucket.impl.client.AbstractBitbucketApi.getRequest(AbstractBitbucketApi.java:318) at PluginClassLoader for cloudbees-bitbucket-branch-source //com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRepository(BitbucketServerAPIClient.java:425) at PluginClassLoader for cloudbees-bitbucket-branch-source //com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.gatherPrimaryCloneLinks(BitbucketSCMSource.java:579) at PluginClassLoader for cloudbees-bitbucket-branch-source //com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieveActions(BitbucketSCMSource.java:1110) at PluginClassLoader for scm-api //jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:847) at PluginClassLoader for branch-api //jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:619) at PluginClassLoader for cloudbees-folder //com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:272) at PluginClassLoader for cloudbees-folder //com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:171) at PluginClassLoader for branch-api //jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1065) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:446) Finished: FAILURE When scanning for multibranches.

          Sabri added a comment -

          Hello just tested it, looks all good thanks a lot for the rapid fix.
          Appreciate that 

          Sabri added a comment - Hello just tested it, looks all good thanks a lot for the rapid fix. Appreciate that 

          Robert Smith added a comment - - edited

          Tested here, and the jobs stays stuck now before the git checkout.

          The initial error in my ticket 75128 is gone, but the ckeckout is stuck, as if it does not go through our proxy. No errors in the logs too.

          Had to rollback once again to  933.2.1

          Robert Smith added a comment - - edited Tested here, and the jobs stays stuck now before the git checkout. The initial error in my ticket 75128 is gone, but the ckeckout is stuck, as if it does not go through our proxy. No errors in the logs too. Had to rollback once again to  933.2.1

          Nikolas Falco added a comment -

          The initial error in my ticket 75128 is gone, but the ckeckout is stuck, as if it does not go through our proxy.

          Please fill a new issue with details, bitbucket server or cloud, proxy configuration, job configuration, console and Jenkins logs (in this case) and so on otherwise understand where is the issue it's like divining using tea grounds.

          Nikolas Falco added a comment - The initial error in my ticket 75128 is gone, but the ckeckout is stuck, as if it does not go through our proxy. Please fill a new issue with details, bitbucket server or cloud, proxy configuration, job configuration, console and Jenkins logs (in this case) and so on otherwise understand where is the issue it's like divining using tea grounds.

            nfalco Nikolas Falco
            himmun Himanshu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: