docker-minecraft-bedrock-server icon indicating copy to clipboard operation
docker-minecraft-bedrock-server copied to clipboard

use only point releases, disable beta version support

Open kls0e opened this issue 3 years ago • 10 comments

Since today, my server reports 1.19.10-beta20 which is too new for our iOS clients to connect to (currently 1.18.31). I know there is a beta preview for iOS but it is closed, and I would like the server to only run the latest point release. -e VERSION=1.18 results in a 404, and -e VERSION=PREVIOUS results in 1.17.

kls0e avatar May 25 '22 06:05 kls0e

Just to note you can specify VERSION=1.18.33.02 - you need a specific point release - I found the correct server version at https://minecraft.fandom.com/wiki/Bedrock_Edition_1.18.33

kornysietsma avatar May 25 '22 09:05 kornysietsma

@kls0e please provide your container config, especially what you used for VERSION, and the logs. What you describe doesn't seem possible since it locates the version from https://www.minecraft.net/en-us/download/server/bedrock ...unless they accidentally published the beta in place of the release build.

itzg avatar May 25 '22 14:05 itzg

Think they did, same issue for me

Looking up latest version...
Downloading Bedrock server version 1.19.10.20 ...
Backing up behavior_packs into backup-pre-1.19.10.20
Backing up definitions into backup-pre-1.19.10.20
Backing up minecraftpe into backup-pre-1.19.10.20
Backing up resource_packs into backup-pre-1.19.10.20
Backing up structures into backup-pre-1.19.10.20
Backing up treatments into backup-pre-1.19.10.20
Backing up world_templates into backup-pre-1.19.10.20
Starting Bedrock server...

YML file

  bds5:
    image: itzg/minecraft-bedrock-server
    environment:
      EULA: "TRUE"
      GAMEMODE: survival
      DIFFICULTY: hard
      LEVEL_SEED: 1909697087
    container_name: rippo006
    ports:
      - 19135:19132/udp
    volumes:
      - bds5:/data005
    stdin_open: true
    tty: true
    sysctls:
      net.ipv4.ip_local_port_range: 39132 39133

There is a note on this page https://www.minecraft.net/en-us/download/server/bedrock which looks a little odd

rippo avatar May 25 '22 19:05 rippo

Ah, I didn't notice the big red note just earlier 😀. Sounds like explicitly setting VERSION will be required for a bit.

itzg avatar May 25 '22 21:05 itzg

Just to note you can specify VERSION=1.18.33.02 - you need a specific point release - I found the correct server version at https://minecraft.fandom.com/wiki/Bedrock_Edition_1.18.33

Hi @kornysietsma, did you managed to make it run with -e VERSION=1.18.33.02? No matter what I use it keeps using the beta version. @itzg I checked the bedrock-entry.sh file and it seems to me that the case statement only goes to version 1.17. After that it defaults to the LATEST version, in this case the beta. Ah, thank you for everything, my family already had a lot of fun thanks to you! 😀

mirosm avatar May 25 '22 23:05 mirosm

There's a wildcard/catch-all at the end that leaves VERSION as given

https://github.com/itzg/docker-minecraft-bedrock-server/blob/c82dc81222bbf320b54a85cf794f3624912592d3/bedrock-entry.sh#L81

itzg avatar May 25 '22 23:05 itzg

Hi @kornysietsma, did you managed to make it run with -e VERSION=1.18.33.02?

Yes - note I'm not using docker-compose, just a very simple commandline script:

docker run -d -it --name korny_minecraft \
  -e EULA=TRUE -e GAMEMODE=survival -e SERVER_NAME=my_server -e DIFFICULTY=easy  \
  -e VERSION=1.18.33.02 \
  -v /home/korny/minecraft/data:/data \
  -p 19132:19132/udp itzg/minecraft-bedrock-serve

kornysietsma avatar May 26 '22 07:05 kornysietsma

I can confirm that adding the VERSION=1.18.33.02 to the docker-compose downgrades the server and launches the expected version.

SeanPaulE avatar May 26 '22 11:05 SeanPaulE

Hi @kornysietsma, did you managed to make it run with -e VERSION=1.18.33.02?

Yes - note I'm not using docker-compose, just a very simple commandline script:

docker run -d -it --name korny_minecraft \
  -e EULA=TRUE -e GAMEMODE=survival -e SERVER_NAME=my_server -e DIFFICULTY=easy  \
  -e VERSION=1.18.33.02 \
  -v /home/korny/minecraft/data:/data \
  -p 19132:19132/udp itzg/minecraft-bedrock-serve

It worked for me too, thanks @kornysietsma!

mirosm avatar May 26 '22 12:05 mirosm

in a docker-compose file the following line worked for me

environment:
   VERSION: "1.18.33.02"

DominusExult avatar May 27 '22 07:05 DominusExult