docker-images icon indicating copy to clipboard operation
docker-images copied to clipboard

OracleWebCenterSites: library initialization failed - unable to allocate file descriptor table - out of memory/bin/sh: line 1: 41 Aborted

Open antoninoromeo opened this issue 2 years ago • 3 comments

After sh buildDockerImage.sh -v 12.2.1.4 docker image build process break with message:

library initialization failed - unable to allocate file descriptor table - out of memory/bin/sh: line 1: 41 Aborted (core dumped) $JAVA_HOME/bin/java -jar /u01/$SITES_JAR -silent -responseFile /u01/install.file -invPtrLoc /u01/oraInst.loc -jreLoc $JAVA_HOME -ignoreSysPrereqs -force -novalidation ORACLE_HOME=$ORACLE_HOME

SO: OracleLinux 9.

I had success with a fix: modify /usr/lib/systemd/system/docker.service ExecStart=/usr/bin/dockerd --default-ulimit nofile=65536:65536 -H fd:// --containerd=/run/containerd/containerd.sock

sudo systemctl daemon-reload sudo systemctl restart docker

antoninoromeo avatar Oct 06 '22 09:10 antoninoromeo

Is there going to be fix in a new release?

anatolysergeev avatar Mar 27 '23 19:03 anatolysergeev

The same error occurred to me when I tried to build a container for Express 21.3.0. I stopped docker deamon and started it manually with sudo. After that I managed to create the container.

c-diego avatar Dec 21 '23 02:12 c-diego

You can specify ulimits in docker run command: docker run -d --name oracle -p 1521:1521 --ulimit nofile=1024:65536 container-registry.oracle.com/database/enterprise:19.3.0.0

amritaramnauth avatar May 09 '24 17:05 amritaramnauth