docker-minecraft-bedrock-server
docker-minecraft-bedrock-server copied to clipboard
"You need to authenticate to Microsoft Services"
No matter what I do, I can't seem to get around this issue.
- My system time is correct (To make 100% sure the time is correct I linked
/etc/localtimefrom the host) - My internet connection is working 100% without issues
- I am signed in on the client
- I even tried the fix mentioned in #29 regarding forwarding both TCP and UDP ports, along with a custom resolv.conf (pointing to Cloudflare) just in case my adblocking DNS was the 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.
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.
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.
@ryaniskira Did you solve this? I am seeing this too.
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
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)
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.
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.