Bug 1732344 - buildkit freeze in various steps
Summary: buildkit freeze in various steps
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: moby-engine
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Olivier Lemasle
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-23 08:06 UTC by Olivier Samyn
Modified: 2020-04-25 02:59 UTC (History)
2 users (show)

Fixed In Version: moby-engine-19.03.8-1.ce.gitafacb8b.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-25 02:59:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Olivier Samyn 2019-07-23 08:06:51 UTC
Description of problem:

Trying to build images using `DOCKER_BUILDKIT=1` is not functional (block in the first step).


Version-Release number of selected component (if applicable):
Fedora 30, update-testing, build moby-engine-18.09.7-4.ce.git2d0083d.fc30

https://bodhi.fedoraproject.org/updates/FEDORA-2019-572b06a0f7


How reproducible:

Start in an empty directory with a simple Dockerfile:
  FROM fedora

  USER root
  RUN useradd -u 1000 foo

Try to build it with the following command:
  DOCKER_BUILDKIT=1 docker build --no-cache .

docker stays in the RUN step and never ends (the problem is not command specific, I reproduced the problem with a COPY command).

If I run the same steps without buildkit, as:
  docker build --no-cache .

Everything works fine, but of course, I can not use buildkit features.

The build kit build works fine with the current fedora30 package: moby-engine-18.06.3-2.ce.gitd7080c1.fc30.x86_64

I encountered the same buildkit issue with a rebuild of the current rawhide package: moby-engine-18.09.8-1.ce.git0dd43dd.fc31.src.rpm

Comment 1 Olivier Lemasle 2019-07-23 09:09:59 UTC
Thanks for the report. I reproduced the problem and I'm working on it.

Comment 2 Olivier Samyn 2019-09-16 10:17:07 UTC
Just tried to rebase the package on docker-ce 19.03.2. And the problem is still there.
So I suppose it's something fedora specific. 

I noticed that when stopping the build with ctrl-C, there is a runc process that keeps running.

I don't tried to investigate more, but could take time if needed. 

How can I help to get this bug solved ? Any tip, where to search or stuff to try ?

Comment 3 Olivier Samyn 2019-11-06 12:45:12 UTC
Just updated to Fedora 31. 

Same problem here.

Comment 4 Olivier Lemasle 2020-04-07 14:35:31 UTC
Should be fixed in moby-engine 18.09.8 (available for f31, f32 and rawhide). Please re-open if you still encounter the issue.

Comment 5 Olivier Lemasle 2020-04-07 14:39:10 UTC
Oops, finally reproduced it again.

Comment 6 Fedora Update System 2020-04-08 08:05:31 UTC
FEDORA-2020-e4cecd50ab has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-e4cecd50ab

Comment 7 Fedora Update System 2020-04-09 19:13:36 UTC
FEDORA-2020-e4cecd50ab has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-e4cecd50ab`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-e4cecd50ab

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Olivier Lemasle 2020-04-16 17:17:49 UTC
Hi, the issue is fixed with version 19.03.8, available on updates-testing for fedora 31 (https://bodhi.fedoraproject.org/updates/FEDORA-2020-e4cecd50ab) and available for fedora 32 and rawhide.

Comment 9 Olivier Samyn 2020-04-20 10:36:46 UTC
Sorry for the delay. 
Quickly tested it today, and seems to be working as expected; thanks.

I'll make further tests during the day and update bodhi.

Comment 10 Olivier Lemasle 2020-04-20 11:18:44 UTC
Thank you for your reply. I'll wait for your Bodhi feedback before pushing it to stable.

Comment 11 Olivier Samyn 2020-04-21 06:58:01 UTC
Working with that version since yesterday; so issue found; karma updated on bodhi. 

Problem solved for me, thanks.

Comment 12 Fedora Update System 2020-04-25 02:59:58 UTC
FEDORA-2020-e4cecd50ab has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.