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

No such file or directory - FTP finished but not deployed

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 13, 2023

I'm trying to deploy a simple NodeJS app into 000webhost thorugh a Pipeline.

Here is my code :



I'm ablt to download artifact like below image:



But I get an error "mirror: Access failed: /opt/atlassian/pipelines/agent/build/ No such file or directory"

comple log like below:


+ docker container run \
--volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \
--volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \
--volume=/usr/local/bin/docker:/usr/local/bin/docker:ro \
--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \
--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/ftp-deploy:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/ftp-deploy \
--workdir=$(pwd) \
--label=org.bitbucket.pipelines.system=true \
--env=CI="$CI" \
--env=DOCKER_HOST="tcp://host.docker.internal:2375" \
--env=BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes" \
--env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/ftp-deploy" \
--env=DEBUG="true" \
--env=LOCAL_PATH="" \
--env=REMOTE_PATH="/public_html/" \
--env=SERVER="" \
--env=SET_ARGS="ssl:verify-certificate false" \
--add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
Unable to find image 'bitbucketpipelines/ftp-deploy:0.4.1' locally
0.4.1: Pulling from bitbucketpipelines/ftp-deploy
f56be85fc22e: Pulling fs layer
593f4bd9455f: Pulling fs layer
fbf16d0592d2: Pulling fs layer
8af59d63b818: Pulling fs layer
8af59d63b818: Waiting
fbf16d0592d2: Verifying Checksum
fbf16d0592d2: Download complete
f56be85fc22e: Verifying Checksum
f56be85fc22e: Download complete
593f4bd9455f: Verifying Checksum
593f4bd9455f: Download complete
f56be85fc22e: Pull complete
8af59d63b818: Verifying Checksum
8af59d63b818: Download complete
593f4bd9455f: Pull complete
fbf16d0592d2: Pull complete
8af59d63b818: Pull complete
Digest: sha256:b39b5661616e670dc595bb710198f1001e71ca3393f42c2ab0b7d4bd6d4aa16b
Status: Downloaded newer image for bitbucketpipelines/ftp-deploy:0.4.1
+ run_pipe
+ info 'Starting FTP deployment to'
+ echo -e '\e[36mINFO: Starting FTP deployment to\e[0m'
+ set +e
INFO: Enabling debug mode.
INFO: Starting FTP deployment to
+ lftp -u USERNAME,PASSWORD -e 'set ssl:verify-certificate false; mirror --delete-first -vvv -R /public_html/;quit'
mirror: Access failed: /opt/atlassian/pipelines/agent/build/ No such file or directory
+ set -e
+ [[ 0 == \0 ]]
+ success 'Deployment finished.'
+ echo -e '\e[32m✔ Deployment finished.\e[0m'
+ exit 0
✔ Deployment finished.


I can connect to the server using FileZilla using same FTP

how to figure this out? 

Thanks in advance

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2023

Hi @cljayashan,

Thank you for reaching out to the community.

It seems the file isn't being uploaded, I'd recommend trying to use a folder instead.
For your script, would you be able to try to create a new folder "dist" and move the zip file there?

- ls -al
- mkdir -p dist
- mv ./dist/

After that, for your Pipes script (atlassian/ftp-deploy), change the LOCAL_PATH and use the "dist" folder instead.

Unable to find source-code formatter for language: java. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yamlLOCAL_PATH: 'dist/'

Mark C

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events