Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

MickyPrice's avatar

We were unable to deploy your site because your Bitbucket token is invalid for this repository or has expired.

I know this issue already exists (created one year ago) but the original post has 2 responses, both saying they had the same issue and no one solved it. So basically, everything was working fine, then I tried to deploy it again and I get the error: "Whoops! There were some problems with your input. We were unable to deploy your site because your BitBucket token is invalid for this repository or has expired. Please refresh the token in your Forge account profile's "Source Control" tab."

I have gone to the "Source Control" tab, I have refreshed the token and it says "Your OAuth token has been updated successfully!" but then I go to deploy the site and I get the same error.

I was wondering if anyone had any ideas, sorry for the duplicate post (I don't post on forums ever but I figured since it was a year old without any solutions, it might be worth bringing up again).

Cheers, Michael :)

0 likes
2 replies
themsaid's avatar
themsaid
Best Answer
Level 4

Michael,

Are you the server owner? Forge uses the server owner's connected BitBucket account. If you're the owner then make sure your account does have access to this repo.

1 like
MickyPrice's avatar

@THEMSAID - Hey, thanks for your reply. After many hours of talking to different support teams we came to that same conclusion. Thanks so much for the reply! ?

Please or to participate in this conversation.