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

Jenkins blue Ocean connect bitbucket server is not work.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Env : Nginx - ( Jenkins Ocean Blue / Bitbucket Server not Cloud )

      • Jenkins : 2.225
      • BlueOccean : 1.22.0
      • Bitbucket : 6.5.1 

      it is my nginx reverse proxy setting.

      if ($request_uri ~* "/blue(/.*)")

      { proxy_pass http://211.115.206.157:9000/blue$1; break; }

      Connect Bitbucket is not work, Just Console Error

       

      I think Jenkins -> Bitbucket Authenticate is OK but, Jenkins Occean Blue is not work.

      plz help me

       

      // code placeholder (Nginx AccessLog - when bitbucket connect)
      211.115.206.157 - bitbucket [14/Mar/2020:04:29:56 +0900] "GET /rest/usermanagement/1/config/cookie HTTP/1.1" 200 170 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_242)" "-" "-"
      211.115.206.157 - bitbucket [14/Mar/2020:04:29:56 +0900] "POST /rest/usermanagement/1/session?validate-password=false HTTP/1.1" 201 472 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_242)" "-" "<?xml version=\x221.0\x22 encoding=\x22UTF-8\x22 standalone=\x22yes\x22?><authentication-context><username>jhkim</username><validation-factors><validation-factor><name>remote_address</name><value>211.115.206.141</value></validation-factor><validation-factor><name>X-Forwarded-For</name><value>211.115.206.143</value></validation-factor></validation-factors></authentication-context>"
      211.115.206.157 - bitbucket [14/Mar/2020:04:29:56 +0900] "GET /rest/usermanagement/1/session/6Zpum3RTM92uzN05szvGXw00?expand=user HTTP/1.1" 200 939 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_242)" "-" "-"
      211.115.206.143 - jhkim [14/Mar/2020:04:29:56 +0900] "GET /rest/api/1.0/users/jhkim HTTP/1.1" 200 200 "-" "Apache-HttpClient/4.5.10 (Java/11.0.4)" "-" "-"
      59.13.125.140 - - [14/Mar/2020:04:29:56 +0900] "PUT /blue/rest/organizations/jenkins/scm/bitbucket-server/validate/ HTTP/1.1" 500 88 "https://jenkins.growthsoft.co.kr/blue/organizations/jenkins/create-pipeline" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" "-" "{\x22userName\x22:\x22jhkim\x22,\x22password\x22:\x22NzYxNzYxMDU2NDU3OgWCr1RG3NnZijZnGxKBznCI6dso\x22,\x22apiUrl\x22:\x22https://bitbucket.growthsoft.co.kr\x22}"
      

       

       

      // code placeholder
      2020-03-13 19:06:50.415+0000 [id=13] SEVERE i.j.b.b.HttpResponse#getContent: An error occurred getting BitBucket API error content2020-03-13 19:06:50.415+0000 [id=13] SEVERE i.j.b.b.HttpResponse#getContent: An error occurred getting BitBucket API error contentnet.sf.json.JSONException: JSONObject["details"] is not a JSONArray. at net.sf.json.JSONObject.getJSONArray(JSONObject.java:1986) at io.jenkins.blueocean.blueocean_bitbucket_pipeline.HttpResponse.getContent(HttpResponse.java:56) at io.jenkins.blueocean.blueocean_bitbucket_pipeline.server.BitbucketServerApi.getUser(BitbucketServerApi.java:104) at io.jenkins.blueocean.blueocean_bitbucket_pipeline.server.BitbucketServerApi.getUser(BitbucketServerApi.java:50) at io.jenkins.blueocean.blueocean_bitbucket_pipeline.BitbucketApi.getUser(BitbucketApi.java:42) at io.jenkins.blueocean.blueocean_bitbucket_pipeline.AbstractBitbucketScm.validateCredential(AbstractBitbucketScm.java:276) at io.jenkins.blueocean.blueocean_bitbucket_pipeline.AbstractBitbucketScm.validateAndCreate(AbstractBitbucketScm.java:214) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212) at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36) at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48) at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145) at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:717) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:246) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:105) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:122) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:566) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1215) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:54) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:500) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) at java.base/java.lang.Thread.run(Thread.java:834)
      

       

      // code placeholder
      211.115.206.157 - bitbucket [13/Mar/2020:22:47:26 +0900] "POST /rest/usermanagement/1/authentication?username=jhkim HTTP/1.1" 200 642 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_242)" "-"
      211.115.206.157 - bitbucket [13/Mar/2020:22:47:26 +0900] "GET /rest/usermanagement/1/config/cookie HTTP/1.1" 200 170 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_242)" "-"
      211.115.206.157 - bitbucket [13/Mar/2020:22:47:26 +0900] "POST /rest/usermanagement/1/session?validate-password=false HTTP/1.1" 201 472 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_242)" "-"
      211.115.206.157 - bitbucket [13/Mar/2020:22:47:27 +0900] "GET /rest/usermanagement/1/session/6Iv5TIV0pe1pie2PeXnPWQ00?expand=user HTTP/1.1" 200 939 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_242)" "-"
      211.115.206.143 - jhkim [13/Mar/2020:22:47:27 +0900] "GET /rest/api/1.0/users/jhkim HTTP/1.1" 200 200 "-" "Apache-HttpClient/4.5.5 (Java/1.8.0_111)" "-"
      59.13.125.140 - - [13/Mar/2020:22:47:27 +0900] "PUT /blue/rest/organizations/jenkins/scm/bitbucket-server/validate/ HTTP/1.1" 500 88 "https://jenkins.growthsoft.co.kr/blue/organizations/jenkins/create-pipeline" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36" "-"
      

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            a88596a jiho kim
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: