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

Cannot build app: too many open files #2230

Closed
Andrei-Stepanov opened this issue Mar 17, 2020 · 1 comment
Closed

Cannot build app: too many open files #2230

Andrei-Stepanov opened this issue Mar 17, 2020 · 1 comment

Comments

@Andrei-Stepanov
Copy link

buildah cannot build app, it fails with "too many open files"

Steps to reproduce the issue:

  1. Without additional arguments buildah bud finish in: too many open files error

or

  1. buildah bud --ulimit nofile=90000:90000 --build-arg .
    finish in:
✗ buildah bud --ulimit nofile=90000:90000 --build-arg  .
STEP 1: FROM centos/nodejs-10-centos7 AS builder
STEP 2: WORKDIR /opt/app-root
STEP 3: COPY package* ./
STEP 4: COPY src/ src/
STEP 5: RUN ["bash","-c", "--", "npm install"]
WARN[0000] signal: killed                               
ERRO[0000] container_linux.go:346: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:378: setting rlimits for ready process caused \\\"error setting rlimit type 7: operation not permitted\\\"\"" 
container_linux.go:346: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:378: setting rlimits for ready process caused \\\"error setting rlimit type 7: operation not permitted\\\"\""
error running container: error creating container for [/usr/bin/bash -c -- npm install]: : exit status 1
error building at STEP "RUN bash -c -- npm install": error while running runtime: exit status 1
ERRO exit status 1                                

Describe the results you received:

Describe the results you expected:

Output of rpm -q buildah or apt list buildah:

rpm -q buildah
buildah-1.11.6-4.module_el8.1.0+272+3e64ee36.x86_64

Output of buildah version:

 buildah version
Version:         1.11.6
Go Version:      go1.12.12
Image Spec:      1.0.1-dev
Runtime Spec:    1.0.1-dev
CNI Spec:        0.4.0
libcni Version:  
image Version:   5.0.0
Git Commit:      
Built:           Thu Jan  1 01:00:00 1970
OS/Arch:         linux/amd64

Output of podman version if reporting a podman build issue:

podman version
Version:            1.6.4
RemoteAPI Version:  1
Go Version:         go1.12.12
OS/Arch:            linux/amd64

Output of cat /etc/*release:

cat /etc/*release
CentOS Linux release 8.1.1911 (Core) 
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

CentOS Linux release 8.1.1911 (Core) 
CentOS Linux release 8.1.1911 (Core) 

Output of uname -a:

Linux localhost.localdomain 4.18.0-147.5.1.el8_1.x86_64 #1 SMP Wed Feb 5 02:00:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Could be related to containers/podman#5526

@sab24
Copy link

sab24 commented Oct 14, 2020

you can build using buildah bud --ulimit nofile=4096:4096 .

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants