Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dogfooding :: Impossible to build che-code docker image due to reaching the maximum amount of opened files #22292

Closed
vitaliy-guliy opened this issue Jun 14, 2023 · 2 comments
Assignees
Labels
area/dogfooding Using Eclispe Che to code, test and build Eclipse Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@vitaliy-guliy
Copy link
Contributor

vitaliy-guliy commented Jun 14, 2023

Describe the bug

I'm trying to build che-code docker image on the dogfooding instance, but the build continuously fails with EMFILE: too many opened files

Screenshot from 2023-06-06 15-24-46

Che version

next (development version)

Steps to reproduce

  1. Create a workpace from https://github.com/che-incubator/che-code
  2. Open build/dockerfiles/linux-libc.Dockerfile, remove all the content related to testing ( Lines between ### Testing and # Store the content of the result )
  3. Open a terminal and run the build with podman build -f build/dockerfiles/linux-libc.no-test.Dockerfile -t linux-libc-amd64 .

Expected behavior

The linux-libc-amd64 image should be successfully built.

Runtime

OpenShift

@vitaliy-guliy vitaliy-guliy added kind/bug Outline of a bug - must adhere to the bug report template. area/dogfooding Using Eclispe Che to code, test and build Eclipse Che severity/P2 Has a minor but important impact to the usage or development of the system. dogfooding labels Jun 14, 2023
@l0rd l0rd moved this to 📅 Planned in Eclipse Che Team B Backlog Jun 14, 2023
@vitaliy-guliy vitaliy-guliy moved this from 📅 Planned to 🚧 In Progress in Eclipse Che Team B Backlog Jun 19, 2023
@vitaliy-guliy vitaliy-guliy self-assigned this Jun 19, 2023
@RomanNikitenko
Copy link
Member

@vitaliy-guliy
I was able to build che-code docker image on the dogfooding instance:

build_images_dogfooding

I've increased ulimit for open files directly in the command to get it working

ulimit_open_files

@vitaliy-guliy
Copy link
Contributor Author

@vitaliy-guliy I was able to build che-code docker image on the dogfooding instance:

I've increased ulimit for open files directly in the command to get it working

Exactly what I'm doing in the devfile https://github.com/che-incubator/che-code/blob/switch-to-udi/devfile.yaml#L107

To avoid providing this option to all podman commands I think we have to configure it by default like here containers/podman#6093 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dogfooding Using Eclispe Che to code, test and build Eclipse Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

3 participants