docker-minecraft-server
docker-minecraft-server copied to clipboard
Fail to start java8 image
Describe the problem
java8-multiarch, java17 both work well. Only Java8 raise the error bellow I also tried vannilla and paper core but still
Not sure its a bug or some new feature add in to the docker. Google says it is related to docker ulimit?
library initialization failed - unable to allocate file descriptor table - out of memory
docker version
Docker version 20.10.14, build a224086
Linux version
Linux version 5.10.152-9.ph4-esx (root@photon) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35) #1-photon SMP Mon Dec 5 17:22:54 UTC 2022
Container definition
docker run -d -v /home/minecraft/test1:/data -e TYPE=FORGE --interactive --tty -e VERSION=1.12.2 -e MEMORY=4G -e ONLINE_MODE=FALSE -p 6001:25565 -e EULA=TRUE --name mc-test2 itzg/minecraft-server:java8
Container logs
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxr-x 2 1000 1000 4096 Dec 26 12:58 /data'
[init] Resolved version given 1.12.2 into 1.12.2 and major version 1.12
[init] Resolving type given FORGE
library initialization failed - unable to allocate file descriptor table - out of memory/start-deployForge: line 18: 156 Aborted (core dumped) mc-image-helper install-forge --output-directory=/data --results-file=/data/.run-forge.env --minecraft-version="${VANILLA_VERSION}" --forge-version="${FORGE_VERSION}" --force-reinstall="${FORGE_FORCE_REINSTALL}"
[init] ERROR failed to install forge
I am unable to recreate this issue:
https://youtu.be/xhActinh-n4
"unable to allocate file descriptor table" sounds like something lower level that is incorrect with your system: kernel, memory, disk.
I am unable to recreate this issue:
https://youtu.be/xhActinh-n4
"unable to allocate file descriptor table" sounds like something lower level that is incorrect with your system: kernel, memory, disk.
yes, it is just wired xDD I will try it out with another fresh install linux later
This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.
For anyone else looking, I just came across this issue and found the following explanations: Linux open file limit got increased: https://stackoverflow.com/a/56895801 You can set limits in docker-compose.yml: https://stackoverflow.com/a/72109503