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

Pipeline git-ftp "curl: (67) Access denied: 530"

Dávid Pörös
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!
March 6, 2017

Hy,

 

I want to build up an automated  deploy process for my PHP project.
I tried to use pipelines with git-ftp, so whenever I push something to my repo it copies the files up to the server via FTP.

The full process is workin on local environment (On windows 10), but it does not want to work on pipelines.

I've tries these docker images:

  • samueldebruyn/debian-git
  • acdaic4v/ubuntu-git

  • marlosoft/git-ftp

My pipeline is the following:

pipelines:
  branches:
    master:
      - step:
          script:
            - apt-get update
            - apt-get -qq install git-ftp
            - git config git-ftp.url $FTP_STAGING_PATH
            - git config git-ftp.user $FTP_USERNAME
            - git config git-ftp.password $FTP_PASSWORD
            - git ftp push -v
    production:
      - step:
          script:
            - apt-get update
            - apt-get -qq install git-ftp
            - git config git-ftp.url $FTP_PRODUCTION_PATH
            - git config git-ftp.user $FTP_USERNAME
            - git config git-ftp.password $FTP_PASSWORD
            - git ftp push -v

 

(When I've used marlosoft/git-ftp I've skipped the git-ftp install!)

Also I've tries the following formula:

pipelines:
  default:
    - step:
        script:
          - apt-get update
          - apt-get -qq install git-ftp
          - git ftp init --user $FTP_USERNAME --pass $FTP_PASSWORD ftp://ftpx.forpsi.com/subs/staging

All of the tries are resulted an error:

curl: (67) Access denied: 530
fatal: Could not get last commit. Network down? Wrong URL? Use 'git ftp init' for the inital push., exiting...

The git-ftp already inited from the local env.

 

Any suggestions, how could it work?

 

Thanks, David.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Dávid Pörös
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!
March 8, 2017

I don't know if Bitbucket made those port open for Pipelines, but I've found a video which show me how to configure pipelines for git-ftp. This suggessts that the ports are open.

On the server side, the ports are certainly open.

 

Yes, I know that this is not the best way to deploy, but this is a hosted server that only grant us FTP connection :\

psolovyov July 15, 2019

did you figure out the answer to this issue? I just started to have this problem out of nowhere.

0 votes
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 8, 2017

FTP requires 2 TCP ports to be open: 21, for controls, and 20, for the actual data transfer. Are both of those open to the Pipelines systems?

Also: FTP is not a secure protocol. Are there any other protocols available to deploy to that system?

TAGS
AUG Leaders

Atlassian Community Events