+ 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/scp-deploy:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/scp-deploy \--workdir=$(pwd) \--label=org.bitbucket.pipelines.system=true \--env=BITBUCKET_STEP_TRIGGERER_UUID="$BITBUCKET_STEP_TRIGGERER_UUID" \--env=BITBUCKET_REPO_FULL_NAME="$BITBUCKET_REPO_FULL_NAME" \--env=BITBUCKET_GIT_HTTP_ORIGIN="$BITBUCKET_GIT_HTTP_ORIGIN" \--env=BITBUCKET_PROJECT_UUID="$BITBUCKET_PROJECT_UUID" \--env=BITBUCKET_REPO_IS_PRIVATE="$BITBUCKET_REPO_IS_PRIVATE" \--env=BITBUCKET_WORKSPACE="$BITBUCKET_WORKSPACE" \--env=BITBUCKET_DEPLOYMENT_ENVIRONMENT_UUID="$BITBUCKET_DEPLOYMENT_ENVIRONMENT_UUID" \--env=BITBUCKET_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \--env=BITBUCKET_REPO_OWNER_UUID="$BITBUCKET_REPO_OWNER_UUID" \--env=BITBUCKET_BRANCH="$BITBUCKET_BRANCH" \--env=BITBUCKET_REPO_UUID="$BITBUCKET_REPO_UUID" \--env=BITBUCKET_PROJECT_KEY="$BITBUCKET_PROJECT_KEY" \--env=BITBUCKET_DEPLOYMENT_ENVIRONMENT="$BITBUCKET_DEPLOYMENT_ENVIRONMENT" \--env=BITBUCKET_REPO_SLUG="$BITBUCKET_REPO_SLUG" \--env=CI="$CI" \--env=BITBUCKET_REPO_OWNER="$BITBUCKET_REPO_OWNER" \--env=BITBUCKET_STEP_RUN_NUMBER="$BITBUCKET_STEP_RUN_NUMBER" \--env=BITBUCKET_BUILD_NUMBER="$BITBUCKET_BUILD_NUMBER" \--env=BITBUCKET_GIT_SSH_ORIGIN="$BITBUCKET_GIT_SSH_ORIGIN" \--env=BITBUCKET_PIPELINE_UUID="$BITBUCKET_PIPELINE_UUID" \--env=BITBUCKET_COMMIT="$BITBUCKET_COMMIT" \--env=BITBUCKET_CLONE_DIR="$BITBUCKET_CLONE_DIR" \--env=PIPELINES_JWT_TOKEN="$PIPELINES_JWT_TOKEN" \--env=BITBUCKET_STEP_UUID="$BITBUCKET_STEP_UUID" \--env=BITBUCKET_DOCKER_HOST_INTERNAL="$BITBUCKET_DOCKER_HOST_INTERNAL" \--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/scp-deploy" \--env=LOCAL_PATH="html/*" \--env=REMOTE_PATH="/var/www/html" \--env=SERVER="$SERVER" \--env=SSH_KEY="$SSH_KEY" \--env=USER="$USER" \--add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \bitbucketpipelines/scp-deploy:0.3.3Unable to find image 'bitbucketpipelines/scp-deploy:0.3.3' locally0.3.3: Pulling from bitbucketpipelines/scp-deployc87736221ed0: Pulling fs layeraca9d7420f98: Pulling fs layer0f3ac11eee9e: Pulling fs layer0f3ac11eee9e: Verifying Checksum0f3ac11eee9e: Download completec87736221ed0: Verifying Checksumc87736221ed0: Download completec87736221ed0: Pull completeaca9d7420f98: Verifying Checksumaca9d7420f98: Download completeaca9d7420f98: Pull complete0f3ac11eee9e: Pull completeDigest: sha256:92cc16bb0a383f038bdc2443d0ea83dc390aa2f19beb0f56bf3c77ffff78ef41Status: Downloaded newer image for bitbucketpipelines/scp-deploy:0.3.3INFO: Starting SCP deployment to ec2-35-92-201-11.us-west-2.compute.amazonaws.com:/var/www/html...scp -rp -i /opt/atlassian/pipelines/agent/ssh/id_rsa_tmp html/index.html html/paloalto-whitelists ubuntu@ec2-35-92-201-11.us-west-2.compute.amazonaws.com:/var/www/htmlWarning: Identity file /opt/atlassian/pipelines/agent/ssh/id_rsa_tmp not accessible: No such file or directory.ssh: connect to host ec2-35-92-201-11.us-west-2.compute.amazonaws.com port 22: Operation timed outlost connection✖ Deployment failed.Hi Sai,
I have executed a telnet connection test command against that remote URL on both port 22 and port 80 and both have failed, this would imply that there is some kind of firewall blocking incoming connections or that the URL is incorrect.
Please review the URL that you are attempting to connect to, and if it is correct - please proceed with whitelisting the IP addresses found in our firewall documentation below:
Hope this helps.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.