Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected 403 Errors When Using Bitbucket Pipelines to Deploy Static Sites – Permissions Misconfigu

aluu x007
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2025

Hi Bitbucket Community,

I’m encountering an issue where Bitbucket Pipelines fails during deployment of static sites to a shared hosting environment, returning 403 Forbidden errors intermittently during the FTP upload process. The pipeline is set up correctly, with environment variables for FTP credentials securely stored, and the build completes without errors.

The strange part is that the 403 errors don't happen consistently—they only affect certain files or subdirectories during deployment. I’ve tested it across different repositories and environments, and the issue seems tied specifically to the final upload stage.

Here is an example of one of the static pages I’m trying to deploy:
sample content page – simple structure, no advanced permissions.

What I’ve tried:

  • Regenerating FTP credentials

  • Changing pipeline step permissions

  • Using different runners (self-hosted vs default)

  • Running the same pipeline manually – same issue

  • Contacted hosting provider – they claim no blocks from their end

Is this a known issue with Bitbucket Pipelines' FTP deployment, or could it be a permissions misconfiguration on my end that Bitbucket is particularly sensitive to?

Would really appreciate any insight or solutions.

Thanks!

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 3, 2025

Hi @aluu x007

Welcome to the community.

Could you try publish deploying locally using FTP and see if it works or not?

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events