question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bitbucket users being blocked on "Scan Organization Folder" and pipelines

See original GitHub issue

Your checklist for this issue

  • Jenkins version 2.245

  • Plugin version 2.9.0

  • Bitbucket cloud 7.2.0

  • Bitbucket server and version

Description

Hello Since around 3 weeks ago we started having a strange behaviour on bitbucket checkout, the users started being blocked in the scanning organization selection with the following error:

ERROR: [Mon Jul 27 12:36:33 CEST 2020] Could not refresh actions for navigator com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator@248cc3ec
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 401: .
HttpResponseProxy{HTTP/1.1 401  [Content-Type: application/json;charset=UTF-8, Date: Mon, 27 Jul 2020 10:36:33 GMT, vary: accept-encoding, WWW-Authenticate: Basic realm="Atlassian Bitbucket", X-AREQUESTID: @IC7BIZx756x5439124x0, X-ASEN: SEN-9644435, transfer-encoding: chunked, Connection: keep-alive] org.apache.http.client.entity.DecompressingEntity@635d13df}
	at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRequest(BitbucketServerAPIClient.java:862)
	at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getTeam(BitbucketServerAPIClient.java:734)
Caused: java.io.IOException: I/O error when accessing URL: /rest/api/1.0/projects/OW-APPS-SAMS
	at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getTeam(BitbucketServerAPIClient.java:739)
	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.retrieveActions(BitbucketSCMNavigator.java:539)
	at jenkins.scm.api.SCMNavigator.fetchActions(SCMNavigator.java:332)
	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:440)
	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278)
	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:970)
	at hudson.model.ResourceController.execute(ResourceController.java:97)

Sometimes the error that appears is related to the captcha selection. This means that the username/password were entered incorrectly too many times. Thing here is that if we manually access bitbucket, the same password that is configured on Jenkins works with no issue and we can unblock the user. This seems to be random and we are not sure why it started happening, we’ve already rolled back plugin and jenkins versions with no luck. We have also tried using the passwords in CASC files and using the AWS secrets manager and again the behaviour is the same. Asking the bitbucket team they showed us that the user/password were being received incorrectly, meaning that Jenkins/bitbucket plugin is sending the incorrect information.

Not sure what to look for next. Anyone have the same issue? Thanks

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
mlasevichcommented, Jul 29, 2020

That makes sense. It should be possible to fix. I will take a look at the code.

0reactions
ag0783commented, Oct 4, 2022

Is this related to #620 and #632 ?

I appreciate the original ticket is over 2 years old but I’ve started encountering the same/very similar issues within the last couple of months.

Jenkins version: 2.363 Bitbucket Branch Source version: 784.v7fcdc7c670f6 BitBucket Server version: 7.21.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bitbucket branch source plugin fails to scan if jenkinsfile ...
In this plugin there is a field called Local File . If you define a file name here, like pom.xml , only repositories...
Read more >
Troubleshoot problems in Pipelines | Bitbucket Cloud
We've put together a list of problems users run into, and their potential ... If a feature of Bitbucket is causing problems, contact...
Read more >
bitbucket-branch-source-plugin number of parallel scans ...
Hello I'm using jenkins 2.150.2 and bitbucket branch source plugin 2.4.0 when scan of repositories is performed : Building <name of the repository>...
Read more >
Cheat sheet: 10 Bitbucket security best practices
Commits are rejected if the tool matches any of the configured regular expression patterns that indicate that sensitive information has been ...
Read more >
Bitbucket Cloud Repository Detection with ...
When your pipeline is stored in the application's SCM as a ... With Bitbucket Organization Folders this is automatically enabled, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found