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

FTPdeploy not answering

Nicolas BROUET August 19, 2021

When I use my bitbucket pipeline, it's always stucked at :

+ lftp -u '$FTP_LOGIN,$FTP_PASSWORD' -e 'set ftp:ssl-allow no; mirror  --delete-first -vvv --exclude=.gitignore --exclude=README.md --exclude=bitbucket-pipelines.yml -R /opt/atlassian/pipelines/agent/build /htdocs/myfolder;quit' xxx.xxx.xxx.xxx
INFO: Starting FTP deployment to xxx.xxx.xxx.xxx:/htdocs/myfolder...

 It can stay 10 minutes here, no response, no message, even with -vvv ...

Is there anyway to know what's going on ?

My ftp has a firewall, I thought it could be the culprit, but I allowed all bitbuckets IPs with no effect.

Here is my latest yaml file :


#!yaml
image: atlassian/default-image:2
options:
max-time: 6 #Configure default 10 minute timeout

pipelines:
custom:
DeployToFTP:
-
step:
name: 'Deployment to PRODUCTION'
deployment: production
script:
-
echo "Deployment to FTP starting now"
-
pipe: atlassian/ftp-deploy:0.3.6
variables:
USER: "$FTP_LOGIN"
PASSWORD: "$FTP_PASSWORD"
SERVER: "$FTP_IP"
REMOTE_PATH: "$FTP_PATH"
DELETE_FLAG: 'true'
DEBUG: "$FTP_DEBUG"
EXTRA_ARGS: "--exclude=.gitignore --exclude=README.md --exclude=bitbucket-pipelines.yml"
-
echo "Deployment to FTP finished"
artifacts:
-
/opt/atlassian/pipelines/agent/build/**

1 answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2021

Hi @Nicolas BROUET

Thank you for your question!

Have you check if it's possible to connect to you server from bitbucket pipelines before using the pipe?

 

Best regards,
Oleksandr Kyrdan

Nicolas BROUET August 31, 2021

No, I havent checked that...
How do you do that ?

Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 9, 2021

How about this one?

- ping SERVER_IP

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events