Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Cannot call method on clear-cache pipeline

Hello,

By today, the clear-cache image has been updated and I cannot longer use it.

the BITBUCKET_USERNAME and BITBUCKET_APP_PASSWORD are correct (were working last week) but I have created new ones now.

 

It is not crystal clear which permissons should be given at the app password anyway.

I read somewere pipelines - write and repositories - read would be necessary

Is there anything else wrong?

 

name: 'Clear cache'
size: 2x
script:
- pipe: atlassian/bitbucket-clear-cache:3.3.0
variables:
BITBUCKET_USERNAME: $BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
CACHES: ['node']
DEBUG: 'true'
condition:
changesets:
includePaths:
- package.json
- bitbucket-pipelines.yml

5 answers

1 accepted

2 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 21, 2023

Hi everyone,

There was an issue with the caches API which was also affecting services that use this API, like the pipe bitbucket-clear-cache.

A fix has been rolled out, so the issue should no longer occur.

In case you're still experiencing any issues, please feel free to reach out.

Kind regards,
Theodora

That worked for me, thank you!

Like Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 22, 2023

That's good to hear, thank you for the update!

1 vote
Oday Rafeh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 21, 2023

Hi All @PCG , @Julian Schmidt , @Darvesh 

The error "Failed to retrieve caches: 405" suggests that there is an issue with the API endpoint for retrieving caches.

This could be caused by a problem with the Bitbucket server, or there may be an issue with the permissions for the user and the app password being used.

To troubleshoot this issue, you can try :

Verify that the user and app password being used have the necessary permissions to access the cache. As you mentioned earlier, the app password should have at least the "pipelines - write" and "repositories - read" permissions.

Check if there are any recent changes or updates made to your Bitbucket account or repository that may have caused this issue.

Try clearing the cache manually from the Bitbucket web interface to see if that resolves the issue.

If none of the above steps works, you can try reaching out to Bitbucket support for further assistance.

Regarding the Bitbucket Clear Cache pipeline, you can try updating the version of the pipe being used to see if that resolves the issue.

I created a new BITBUCKET_USERNAME and BITBUCKET_APP_PASSWORD with all reasonable permissons allowed to ensure it is not a permission problem, but since I cannot edit permissions or even view them once the app password has been created I cannot make a screenshot

There are no recent updates in the repository that may this step fail

I can't see how I can clear cache manually, 

I updated the clear-cache image to 3.3.0 but this don't fix the problem

DEBUG flag does not shown the problem is coming from a wrong permissions configuration. That would be helpful. 

Anyway, it looks the bitbucket server has a problem, I'm not the only person experiencing problems suddenly

Like Darvesh likes this
Oday Rafeh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 21, 2023

Hi @PCG , Sorry that I can't help 

And Yes You are right, The issue may be caused by a problem with the Bitbucket server or an incorrect configuration. it may be worth reaching out to Bitbucket support for further assistance.

 

Have a nice day 

Thank you for trying @Oday Rafeh ,  is it supossed that bitbucket support is going to read and resolve posts written here?

Like Oday Rafeh likes this

I submitted a request to solve the bug and linked this question. The issue is acknowledged by the support.

Maybe they will post further updates here as well.

Like PCG likes this

can you post here the link to the bug ticket?

We are facing the same error

I can confirm this issue. We receive the same error message.

We are facing the same issue. It fails with the following error.


✖ Failed to retrieve caches: 405 {"type": "error", "error": {"message": "Method not allowed"}} https://api.bitbucket.org/2.0/repositories/**/**/pipelines-config/caches/?page=1&pagelen=100

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events