Bitbucket runner throwing error: "An error occurred whilst pulling image"
Asked by farkhnawaz:

Hi All,   

Its my first time using Bitbucket runners/docker. So I am completely new to this.   

I followed the instruction on the atlassian website and have installed Bitbucket runner on my Ubuntu VM.  

When I run the pipeline it fails with the below error:  

\[2021-11-19 11:58:12,612\] An error occurred whilst pulling image.  
com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"Get \\"[https://docker-public.packages.atlassian.com/v2/\\](https://docker-public.packages.atlassian.com/v2/\)": remote error: tls: protocol version not supported"}  
![PipelineError.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/170167i6B5ECEF63CA358C9/image-size/large?v=v2&px=999 "PipelineError.PNG")  

<br />

I installed docker using the convenience script.  
I did not setup a docker repository as I am only interested in using whats available on docker hub if that makes sense...  

Please do advice me as I am new to this.  

I have added a screenshot of the pipeline yaml file as well.![PipelineYAML.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/170169i0A98C513ED7FE552/image-size/large?v=v2&px=999 "PipelineYAML.PNG")![Runner.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/170170i4C5DE6E93CCAAE43/image-size/large?v=v2&px=999 "Runner.PNG")

<br />

<br />

<br />

Any help is appreciated.   

<br />

Update:   

Some extra logs (when running pipeline second time):  

\[2021-11-19 13:50:22,624\] Checking for step completion every PT30S seconds.  
\[2021-11-19 13:50:23,453\] Updating step progress to PULLING_IMAGES.  
\[2021-11-19 13:50:23,544\] Appending log line to main log.  
\[2021-11-19 13:50:23,780\] Pulling image docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-dvcs-tools:prod-stable.  
\[2021-11-19 13:50:24,194\] Updating runner state to "ONLINE".  
\[2021-11-19 13:50:41,167\] Pulling image maven:3.6.3.  
\[2021-11-19 13:50:54,193\] Updating runner state to "ONLINE".  
\[2021-11-19 13:51:24,194\] Updating runner state to "ONLINE".  
\[2021-11-19 13:51:54,193\] Updating runner state to "ONLINE".  
\[2021-11-19 13:52:24,193\] Updating runner state to "ONLINE".  
\[2021-11-19 13:52:31,137\] Pulling image selenium/standalone-chrome:latest.  
\[2021-11-19 13:52:34,418\] An error occurred whilst pulling image.  
com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"Get \\"[https://registry-1.docker.io/v2/\\](https://registry-1.docker.io/v2/\)": EOF"}  

<br />

<br />

<br />

<br />

<br />

<br />


Answers:
author: Yash Verma
body: getting this in bitbucket SaaS, any suggestions [@Syahrul](/t5/user/viewprofilepage/user-id/744536)


author: Syahrul
body: Hi [@farkhnawaz](/t5/user/viewprofilepage/user-id/4157427)

G'day!

Looking at the error, I believe your server using an outdated TLS and cipher hence you getting the error "remote error: tls: protocol version not supported".   
You can use the following commands to check your OpenSSL version

```
openssl version
```

If you are using v1.1 then you need to upgrade your server OpenSSL version to at least v1.2 or v1.3. Upgrade will depend on your Linux distros and a quick search should give you information on how to upgrade.

Let me know how it goes

Cheers,  
Syahrul


Tags: bitbucket-pipelines

bitbucket-runners

cloud

docker