itzg / docker-minecraft-bedrock-server

Containerized Minecraft Bedrock Dedicated Server with selectable version
MIT License
1.15k stars 219 forks source link

Unable to download the server image. "Failed to locate data-platform element" #196

Open PavelGutin opened 2 years ago

PavelGutin commented 2 years ago

I am getting the following when I run docker-compose up on the synology. I'd appreciate some guidance on this.

pagu@Vault:/volume1/docker/minecraft$ sudo docker-compose up
Starting minecraft_bds_1 ... done
Attaching to minecraft_bds_1
bds_1  | DEBU[0000] Using /data to match uid and gid
bds_1  | DEBU[0000] Resolved UID=0 from match path
bds_1  | DEBU[0000] Resolved GID=0 from match path
bds_1  | Looking up latest version...
bds_1  | Failed to extract download URL 'Failed to locate data-platform element' from https://www.minecraft.net/en-us/download/server/bedrock
bds_1  | 2021/12/01 04:22:11 Failed to load content: Failed to retrieve response: Get "https://www.minecraft.net/en-us/download/server/bedrock": dial tcp: lookup www.minecraft.net on 127.0.0.11:53: read udp 127.0.0.1:39133->127.0.0.11:53: i/o timeout
minecraft_bds_1 exited with code 2
pagu@Vault:/volume1/docker/minecraft$
itzg commented 2 years ago

Since it mentions a UDP failure to port 53, there seems to be a DNS issue in or nearby your network. It could even be the docker daemon 's DNS config on the host.

user53245 commented 2 years ago

I have exactly the same problem. MacOS Big Sur. The bug is only seen on docker-compose.

With this configuration, it started without problems:

version: '3.3'
services:
    minecraft-bedrock-server:
        environment:
            - EULA=TRUE
        ports:
            - '19132:19132/udp'
        image: itzg/minecraft-bedrock-server