bitbucket with ftp server
Asked by Abrar Asim:

hey there,

is there anyone who can help me, why i am getting this error,   
i am trying to automate bitbucket commit with ftp server, so whenever i commit on repo it will build and upload it into ftp server,   
thank you :)

error and yml are attached,

note i am doing this with my bitbucket premium account. and i can easily access this server and its directories from filezilla.  

error  
![error_bitbucket.PNG](/t5/image/serverpage/image-id/163189iCBAE97E0402B300B/image-size/large?v=v2&px=999 "error_bitbucket.PNG")  

yml  
![yml ss.PNG](/t5/image/serverpage/image-id/163190i9EDD3124A3B899CE/image-size/large?v=v2&px=999 "yml ss.PNG")


Answers:
author: Theodora Boudale
body: Hi [@Abrar Asim](/t5/user/viewprofilepage/user-id/4581877) and welcome to the community.

Is your ftp server behind a firewall? If so, you may need to whitelist on the firewall the IP addresses used by Pipelines.

You can find the IP addresses listed on the following page, specifically the section titled **Valid IP addresses for Bitbucket Pipelines build environments**:

* <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

If you're still facing issues, could you please add the **-vv** flag in the git ftp command for more verbose output? You can then post the verbose output here (masking any sensitive info) so we can take a look.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora

comments: author: Abrar Asim
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) i am sorry i didn't understand, do i have to pass all IP's in inbound rule?   

and after added adding -vv i got the same error,  

![error ss.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/163774iDD911675BF8D6A33/image-size/large?v=v2&px=999 "error ss.jpg")

![error_bitbucket.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/163775i30DAE773B2AA0988/image-size/large?v=v2&px=999 "error_bitbucket.PNG")  

is there any a way we can do an online meeting? can you do me a favor for this??


author: Theodora Boudale
body: Hi [@Abrar Asim](/t5/user/viewprofilepage/user-id/4581877),

If your ftp server is behind a firewall and doesn't allow connections from anywhere on the internet, you'll need to whitelist the IPs for Bitbucket Pipelines build environments. Otherwise, your ftp server won't be reachable from Pipelines builds.

The IPs that need to be whitelisted in this case are the ones mentioned in section "Valid IP addresses for Bitbucket Pipelines build environments" of the documentation I linked.

If this doesn't help to resolve the issue, since this is occurring with a repo on a premium workspace, you can reach out to the support team and request a video call. You can create a support ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with" select "Technical issues and bugs" and then Bitbucket Cloud as product. Please make sure to provide in the *Details* the URL of the failed build with the -vv flag (the support ticket will be visible only to you and Atlassian staff, so the build URL won't be publicly visible).

Kind regards,  
Theodora


author: Abrar Asim
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) hi there,  

i have tried with whitelist IP's + i have checked by closing all the firewall but it didn't work with me..   
and let me try to generate ticket.


Tags: bitbucket-pipelines