itzg / docker-minecraft-bedrock-server

Containerized Minecraft Bedrock Dedicated Server with selectable version
MIT License
1.19k stars 225 forks source link

"You need to authenticate to Microsoft Services" #90

Open RyanHakurei opened 4 years ago

RyanHakurei commented 4 years ago

No matter what I do, I can't seem to get around this issue.

Here is the relevant snippet from my docker-compose:

# Minecraft Bedrock Server
    minecraft-bedrock-server:
        container_name: Minecraft-Bedrock
        environment:
            - EULA=TRUE
            - 'SERVER_NAME=Freyja Bedrock Server'
            - ALLOW_CHEATS=false
            - DEFAULT_PLAYER_PERMISSION_LEVEL=visitor
            - ONLINE_MODE=true
            - MAX_THREADS=8
            - GAMEMODE=survival
            - DIFFICULTY=easy
            - VIEW_DISTANCE=32
            - TICK_DISTANCE=4
        volumes:
            - '/mnt/Media/Sandbox/Minecraft-Bedrock/data:/data'
            - '/mnt/Media/Sandbox/Minecraft-Bedrock/resolv.conf:/etc/resolv.conf'
            - '/etc/localtime:/etc/localtime:ro'
        ports:
            - '19132:19132/udp'
            - '19132:19132'
        image: itzg/minecraft-bedrock-server
        stdin_open: true
        tty: true

Thing is I can sign into other servers suchs as Mineplex just fine, so it's not an issue on the client side.

itzg commented 4 years ago

It is hard for me to help with issues caused by Docker or networking issues outside of the container. I would suggest posting on the Mojang BDS forums.

Otherwise, I'm not sure your approach to DNS and local time mounts is correct. DNS is supposed to be customized with

https://docs.docker.com/compose/compose-file/#dns

As for the system clock, containers share the kernel's view of the clock just like any other process running on the host. With that said, I have experienced an issue where the VM used by Docker Desktop on Windows would lose clock sync ever time my PC would sleep. Are you running on Windows Docker Desktop? If so, try restarting the VM.

RyanHakurei commented 4 years ago

Otherwise, I'm not sure your approach to DNS and local time mounts is correct. DNS is supposed to be customized with

I will attempt doing it that way.

As for the system clock, containers share the kernel's view of the clock just like any other process running on the host.

So I've read in the documentation, but oftentimes a Docker container's documentation will instruct you to assign your timezone as an environment variable, or link in /etc/localtime (Binhex's qBittorrent container for example) so I thought I'd give it a try.

As for my OS, I am running Docker on Linux.

sprooose commented 4 years ago

@ryaniskira Did you solve this? I am seeing this too.

Screen Shot 2020-11-15 at 12 43 19 pm

Docker on Arch Linux... Started container with basic example from the documentation:

docker run -d -it --name bds-flat-creative \ -e EULA=TRUE -e LEVEL_TYPE=flat -e GAMEMODE=creative \ -p 19132:19132/udp itzg/minecraft-bedrock-server

sprooose commented 4 years ago

Actually I found it... Changing the ONLINE_MODE option to false allowed me to connect.

With ONLINE_MODE=false, remote users can connect via IP address (with their xbox id), and local clients on the same network as the server can connect without the need for a xbox id (the server becomes visible in the "Friends" tab)

kirkone commented 3 years ago

Hey @itzg you pointed us in the right direction! Indeed, there was a problem with the Time settings in our docker host. So, the time was wrong in the container. We fixed the wrong time, and all clients can connect right away.

For all the people with this problem, please check the time on your container.

JohnnyT009 commented 2 years ago

Hey @itzg you pointed us in the right direction! Indeed, there was a problem with the Time settings in our docker host. So, the time was wrong in the container. We fixed the wrong time, and all clients can connect right away.

For all the people with this problem, please check the time on your container.

How do you do this? I would like to be able to fix my timezone. I am in Central Time. I can't seem to get on my server without using the work around and would like to fix it right.