Issue with buildkit started today

Ricardo José Brüggemann
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!
February 2, 2024

Our pipelines were working fine till ~9:40 today. 

 

After that, self hosted runners and bb runners are with issues to build:

 

BB Runner:

+ docker build -t "$IMAGE" .
2
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
3
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
4
environment-variable.
5
6
Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?
------------------------------------------------------------------------
Self hosted runner: 
Login Succeeded
133
#0 building with "default" instance using docker-container driver
134
135
#1 [internal] booting buildkit
136
#1 pulling image moby/buildkit:buildx-stable-1
137
#1 pulling image moby/buildkit:buildx-stable-1 4.7s done
138
#1 creating container buildx_buildkit_default 0.0s done
139
#1 ERROR: Error response from daemon: authorization denied by plugin pipelines: --privileged=true is not allowed
140
------
141
> [internal] booting buildkit:
142
------
143
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
144
ERROR: Error response from daemon: authorization denied by plugin pipelines: --privileged=true is not allowed
145
35 v0.11.2 /usr/local/libexec/docker/cli-plugins/docker-buildx buildx build --target test --build-arg BITBUCKET_USERNAME=osprey-renovate-bot --build-arg APP_PASSWORD=$PIPELINE_APP_PASSWORD -f docker/app/Dockerfile . -t ums:rm-834
172
runtime.goexit
173
runtime/asm_amd64.s:1598
Any idea why this started ?

5 answers

3 votes
Erwan d_Orgeville
Contributor
February 6, 2024

Hi everyone,

After exchanging with @Farha Atbai through Bitbucket's cloud support (thanks @Theodora Boudale for the link), here is the conclusion we came to:

1. If you are using an old version of docker-compose to interface with the docker daemon, you'll have to upgrade. I had to upgrade from `1.8.0-rc2` to `v2.24.5`

2. With this newer docker engine that Bitbucket rolled out, you have to disable the new "Docker Buildkit" system. Do so by adding the following to your pipelines, before executing anything docker related: `export DOCKER_BUILDKIT=0`

I hope this helps other users.

Tagging everyone else on this thread for visibility: @Ricardo José Brüggemann @Vegard Theriault @Chantal Delachevrotiere 

2 votes
Chantal Delachevrotiere
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!
February 2, 2024

Similar issue here
`cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial tcp 127.0.0.1:2375: connect: connection refused`

2 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 2, 2024

Hi Ricardo José and welcome to the community!

These errors may be related to an update we started rolling out, specifically an update to the Docker service and an upgraded version of the Docker client for running docker commands from 20.10.24 to 25.0.2:

I would suggest creating a ticket with the support team for further investigation and options regarding resolution.

You can create a ticket via https://support.atlassian.com/contact/#/, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Kind regards,
Theodora

Ricardo José Brüggemann
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!
February 2, 2024

Thanks Theodora, will open a ticket there. 

Like Theodora Boudale likes this
1 vote
Vegard Theriault
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!
February 6, 2024

We’re having the same issue

1 vote
Erwan d_Orgeville
Contributor
February 2, 2024

Similar issue here. Our "docker-in-docker" builds broke overnight. Now, we're greeted with a "Couldn't connect to Docker daemon at http://localhost:2375 - is it running?" error every time we try calling `docker-compose build` :(

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events