Forums

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

Pipeline started failing - Could not get last commit

vabisabi
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!
July 11, 2019

Few days ago our pipeline has failed to work, message is this:

+ git-ftp push --user root --passwd $prod_pass sftp://[ip_address]/var/www/[domain_name]/public_html/fatal: Could not get last commit. Network down? Wrong URL? Use 'git ftp init' for the initial push., exiting...

 

Do you have any ideas what could be wrong? No changes to pipelines config were made.

3 answers

0 votes
psolovyov July 12, 2019

My bitbucket-pipelines.yml looks like:

 

image: samueldebruyn/debian-git

pipelines:
    branches:
        master:
             - step:
                 script:
                 - apt-get update
                 - apt-get -qq install git-ftp
                 - git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD sftp://1.1.1.1/home/website/public_html/website

sethumadhavan
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!
July 22, 2019

i'm also facing same issue. Did you get any solution for this?

psolovyov July 22, 2019

It has to do something with your SSL certificate. 

I found a thread about this on stackoverflow:

https://stackoverflow.com/questions/50345241/mingw-windows-curl-7-59-0-missing-sftp-lib/50350926#50350926

For now I use "--insecure" until I have time to look into the issue with SSL cert.

0 votes
psolovyov July 12, 2019

From logs it shows that bibucket is closing the connection itself after looking up the git-log file.

logs:

/var/log/secure: web sshd[32406]: Connection closed by 34.232.25.90
/var/log/secure: web sshd[14095]: Connection closed by 34.232.25.90
/var/log/secure: web sshd[32231]: Connection closed by 34.236.25.177
/var/log/secure: web sshd[2087]: Connection closed by 34.236.25.177
/var/log/secure: web sshd[2124]: Connection closed by 34.236.25.177
/var/log/secure: web sshd[7262]: Connection closed by 52.203.14.55
/var/log/secure: web sshd[13495]: Connection closed by 52.203.14.55

0 votes
psolovyov July 12, 2019

I'm having the same issue, nothing changed on the server or in the pipelines script. Any ideas?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events