Closed Johannes7k75 closed 3 years ago
Please provide details about how you're creating the container and provide the container logs.
logs
root@vmd69951:/home/minecraft/docker# docker logs -f mc
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxr-x 6 1000 1000 4096 Sep 30 16:30 /data'
[init] Resolved version given 1.12.2 into 1.12.2
[init] Resolving type given FORGE
[init] Checking Forge version information.
[init] Creating server.properties in /data/server.properties
[init] Disabling whitelist
[init] Setting whitelist to 'false' in /data/server.properties
[init] Setting white-list to 'false' in /data/server.properties
[init] Adding server-name with 'Dedicated Server' in /data/server.properties
[init] Setting server-port to '25565' in /data/server.properties
[init] Setting motd to 'A Forge Minecraft Server powered by Docker' in /data/server.properties
[init] Setting enable-rcon to 'true' in /data/server.properties
[init] Setting rcon.password to 'minecraft' in /data/server.properties
[init] Setting rcon.port to '25575' in /data/server.properties
[init] Setting level-name to 'world' in /data/server.properties
[init] Setting online-mode to 'true' in /data/server.properties
[init] Checking for JSON files.
[init] Setting initial memory to 1G and max to 20G
[init] Starting the Minecraft server...
Error: Unable to access jarfile forge-1.12.2-14.23.5.2855.jar
2021-09-30T16:31:04.306Z WARN mc-server-runner sub-process failed {"exitCode": 1}
2021-09-30T16:31:04.306Z INFO mc-server-runner Done
command to start docker run -d -v /home/minecraft/docker:/data -p 25565:25565 -e MAX_MEMORY=20G -e EULA=TRUE -e TYPE=FORGE -e VERSION=1.12.2 --name mc itzg/minecraft-server:java8
I'm thinking an old marker file .forge-installed-1.12.2-14.23.5.2855
has been left behind in the data directory. I'll enhance the script to detect a mismatch and re-install.
In the meantime, if you could add -e DEBUG=true
and provide that output, I can confirm that's the case.
here the output
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxr-x 6 1000 1000 4096 Sep 30 16:31 /data'
[init] Resolved version given 1.12.2 into 1.12.2
[init] Resolving type given FORGE
+ [[ -z '' ]]
+ [[ -z '' ]]
+ norm=1.12.2
+ case $VANILLA_VERSION in
+ norm=1.12.2
+ log 'Checking Forge version information.'
+ echo '[init] Checking Forge version information.'
+ case $FORGEVERSION in
+ curl -fsSL -o /tmp/forge.json http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[init] Checking Forge version information.
++ cat /tmp/forge.json
++ jq -r '.promos["1.12.2-recommended"]'
+ FORGE_VERSION=14.23.5.2855
+ '[' 14.23.5.2855 = null ']'
+ normForgeVersion=1.12.2-14.23.5.2855-1.12.2
+ shortForgeVersion=1.12.2-14.23.5.2855
+ FORGE_INSTALLER=/tmp/forge-1.12.2-14.23.5.2855-installer.jar
+ installMarker=/data/.forge-installed-1.12.2-14.23.5.2855
+ '[' '!' -e /data/.forge-installed-1.12.2-14.23.5.2855 ']'
++ cat /data/.forge-installed-1.12.2-14.23.5.2855
+ export SERVER=forge-1.12.2-14.23.5.2855.jar
+ SERVER=forge-1.12.2-14.23.5.2855.jar
+ exec /start-finalSetupWorld
+ : world
+ export LEVEL
+ '[' FORGE = CURSEFORGE ']'
+ worldDest=/data/world
+ [[ -n '' ]]
+ exec /start-finalSetupModpack
+ CURSE_URL_BASE=https://minecraft.curseforge.com/projects
+ isTrue false
+ local value=false
+ result=
+ case ${value} in
+ result=1
+ return 1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ exec /start-finalSetupModconfig
+ '[' -d /plugins ']'
+ : /data/mods
+ '[' -d /mods ']'
+ : /data/config
+ '[' -d /config ']'
+ exec /start-finalSetupServerProperties
[init] server.properties already created, skipping
[init] DEBUG Dumping server.properties
op-permission-level=4
allow-nether=true
level-name=world
enable-query=false
allow-flight=false
announce-player-achievements=true
server-port=25565
rcon.port=25575
query.port=25565
level-type=DEFAULT
enable-rcon=true
force-gamemode=false
level-seed=
server-ip=
max-tick-time=60000
max-build-height=256
spawn-npcs=true
white-list=false
spawn-animals=true
hardcore=false
snooper-enabled=true
texture-pack=
online-mode=true
resource-pack=
resource-pack-sha1=
pvp=true
difficulty=1
enable-command-block=true
player-idle-timeout=0
gamemode=0
max-players=20
spawn-monsters=true
generate-structures=true
view-distance=10
spawn-protection=16
motd=A Forge Minecraft Server powered by Docker
generator-settings=
rcon.password=minecraft
max-world-size=29999984
broadcast-console-to-ops=true
broadcast-rcon-to-ops=true
enable-jmx-monitoring=false
sync-chunk-writes=true
enable-status=true
entity-broadcast-range-percentage=100
function-permission-level=2
network-compression-threshold=256
op-permission-level=4
prevent-proxy-connections=false
use-native-transport=true
enforce-whitelist=false
server-name=Dedicated Server
+ '[' -n '' ']'
+ isTrue ''
+ local value=
+ result=
+ case ${value} in
+ result=1
+ return 1
+ '[' -n '' ']'
+ isTrue ''
+ local value=
+ result=
+ case ${value} in
+ result=1
+ return 1
+ '[' -n '' ']'
+ isTrue false
+ local value=false
+ result=
+ case ${value} in
+ result=1
+ return 1
+ log 'Checking for JSON files.'
+ echo '[init] Checking for JSON files.'
[init] Checking for JSON files.
++ find /data -maxdepth 1 -name '*.json'
+ JSON_FILES=
+ versionLessThan 1.14
+ local activeParts
+ IFS=.
+ read -ra activeParts
+ local givenParts
+ IFS=.
+ read -ra givenParts
+ (( 3 < 2 ))
+ (( 3 == 2 ))
+ (( activeParts[0] < givenParts[0] ))
+ (( activeParts[0] == givenParts[0] && activeParts[1] < givenParts[1] ))
+ return 0
+ [[ '' = false ]]
+ [[ '' = false ]]
+ [[ '' = FALSE ]]
+ log 'Setting initial memory to 1G and max to 20G'
+ echo '[init] Setting initial memory to 1G and max to 20G'
+ expandedDOpts=
+ '[' -n '' ']'
[init] Setting initial memory to 1G and max to 20G
+ isTrue
+ local value=
+ result=
+ case ${value} in
+ result=1
+ return 1
+ isTrue ''
+ local value=
+ result=
+ case ${value} in
+ result=1
+ return 1
+ isTrue ''
+ local value=
+ result=
+ case ${value} in
+ result=1
+ return 1
+ isTrue ''
+ local value=
+ result=
+ case ${value} in
+ result=1
+ return 1
+ isTrue ''
+ local value=
+ result=
+ case ${value} in
+ result=1
+ return 1
+ JVM_OPTS='-Xms1G -Xmx20G '
+ mcServerRunnerArgs='--stop-duration 60s'
+ [[ -n '' ]]
+ [[ FORGE == \C\U\R\S\E\_\I\N\S\T\A\N\C\E ]]
+ [[ FORGE == \C\U\R\S\E\F\O\R\G\E ]]
+ [[ FORGE == \C\U\R\S\E\F\O\R\G\E ]]
+ [[ -x run.sh ]]
+ '[' -f /data/bootstrap.txt ']'
+ log 'Starting the Minecraft server...'
+ echo '[init] Starting the Minecraft server...'
+ finalArgs=($JVM_XX_OPTS $JVM_OPTS $expandedDOpts -jar $SERVER "$@" $EXTRA_ARGS)
[init] Starting the Minecraft server...
+ isTrue false
+ local value=false
+ result=
+ case ${value} in
+ result=1
+ return 1
+ isTrue
+ local value=
+ result=
+ case ${value} in
+ result=1
+ return 1
+ isTrue false
+ local value=false
+ result=
+ case ${value} in
+ result=1
+ return 1
+ exec mc-server-runner --stop-duration 60s java -XX:+UseG1GC -Xms1G -Xmx20G -jar forge-1.12.2-14.23.5.2855.jar
Error: Unable to access jarfile forge-1.12.2-14.23.5.2855.jar
2021-10-02T12:34:50.795Z WARN mc-server-runner sub-process failed {"exitCode": 1}
2021-10-02T12:34:50.795Z INFO mc-server-runner Done
If you re-pull itzg/minecraft-server:java8
it will now re-install if it finds the referenced forge jar is missing.
it worked no error yet
hello i get this error
Error: Unable to access jarfile forge-1.12.2-14.23.5.2855.jar
if i want to mount an volume. i run the docker command as sudo!