Uploaded image for project: 'Bedrock Dedicated Server'
  1. Bedrock Dedicated Server
  2. BDS-1305

Players can't access server when "online-mode=true"

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.8.1.2
    • Windows 10.

      (The version is really 1.12.0.28).

      This was working find up until yesterday. I've made a server for my two girls, but none of us can use it anymore.

      The server works just fine with if I set "online-mode=false", but I'd prefer it if the whitelist was working. And online mode needs to be on for that (which, of course, makes sense).

       

      This is the message that is displayed in the game: "You need to authenticate to Microsoft services".
      Other public servers are working just fine. Selecting "white-list=false" does not change anything.

          [BDS-1305] Players can't access server when "online-mode=true"

          Jagger Guns added a comment -

          This is a problem for me right now in 1.16.201. Every 40-50 days or so the servers will say I need to authenticate to Microsoft services. I end up deleting then re installing the app. It used to work but now it says failed to connect to Microsoft account when I try to sign in. I know it works because it shows my gamer tag for a split second but quickly changes to Steve. Also it doesn’t even let me put in my email and password, it tries to do it automatically

          Jagger Guns added a comment - This is a problem for me right now in 1.16.201. Every 40-50 days or so the servers will say I need to authenticate to Microsoft services. I end up deleting then re installing the app. It used to work but now it says failed to connect to Microsoft account when I try to sign in. I know it works because it shows my gamer tag for a split second but quickly changes to Steve. Also it doesn’t even let me put in my email and password, it tries to do it automatically

          Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

          Quick Links:
          πŸ““ Issue Guidelines – πŸ’¬ Mojang Support – πŸ“§ Suggestions – πŸ“– Minecraft Wiki

          [Mojang] Mega_Spud (Jay Wells) added a comment - Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete . If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem. Quick Links : πŸ““ Issue Guidelines – πŸ’¬ Mojang Support – πŸ“§ Suggestions – πŸ“– Minecraft Wiki

          John Dennison added a comment - - edited

          im trying to run a new server and currently experiencing this problem. the server is hosted on my computer, both myself (same machine) and my brother (different house) are being told to authenticate with MS services but there is no obvious way to do so

          reading through other responses, I actually just reinstalled windows last night and tried to get the server running afterwards

          dxdiag attached

           

          missed the mention about system time here. finally found the solution elsewhere. my clock was out by only a minute and that was enough to make it fail. this error message needs to change, its useless and completely unrelated to the solution as is

          John Dennison added a comment - - edited im trying to run a new server and currently experiencing this problem. the server is hosted on my computer, both myself (same machine) and my brother (different house) are being told to authenticate with MS services but there is no obvious way to do so reading through other responses, I actually just reinstalled windows last night and tried to get the server running afterwards dxdiag attached   missed the mention about system time here. finally found the solution elsewhere. my clock was out by only a minute and that was enough to make it fail. this error message needs to change, its useless and completely unrelated to the solution as is

          IonicEcko added a comment -

          Hi Moskus,

          I've not heard back from you in a while.

          In order to keep the Bedrock Dedicated Server project running smoothly I'm going to request this issue be closed as Awaiting Response.

          Never fear though! If this is still affecting you in the latest version (and is related to Bedrock Dedicated Server and not the Minecraft Bedrock game) all you have to do is comment and it will reopen.

          If your issue does still exist but is related to the game and not the server software please head over to the Minecraft (Bedrock codebase) project.

          Ionic

          Quick Links:
          πŸ““ Issue Guidelines – πŸ’¬ Community Support – πŸ“§ Customer Support – πŸ“– BDS Wiki – πŸ“– FAQs

          IonicEcko added a comment - Hi Moskus, I've not heard back from you in a while. In order to keep the Bedrock Dedicated Server project running smoothly I'm going to request this issue be closed as Awaiting Response . Never fear though! If this is still affecting you in the latest version (and is related to Bedrock Dedicated Server and not the Minecraft Bedrock game) all you have to do is comment and it will reopen. If your issue does still exist but is related to the game and not the server software please head over to the Minecraft (Bedrock codebase) project . Ionic Quick Links : πŸ““ Issue Guidelines – πŸ’¬ Community Support – πŸ“§ Customer Support – πŸ“– BDS Wiki – πŸ“– FAQs

          @IonicEcko, @Pandorda85, I think it is fair to have this issue closed. Either Ryan Valizan is no longer interested in a solution or he doesn't have the time available to describe his setup in sufficient detail to get our help.

          Bart Schipper added a comment - @IonicEcko, @Pandorda85, I think it is fair to have this issue closed. Either Ryan Valizan is no longer interested in a solution or he doesn't have the time available to describe his setup in sufficient detail to get our help.

          IonicEcko added a comment -

          Thats awesome Bart, thanks for getting to the bottom of that. I meant to respond but have been trying to get through the historical tickets as much as I can (600 tickets down so far!).

          There's a good chance BDS doesn't know the time is incorrect, it tries to authenticate with Mojang but the time difference causes secure comms to fail. A lot of apps have this problem but if it turns out its the same problem for the others I'll ask for if we can get it added to an FAQ of sorts.

          Thanks for the thanks

          IonicEcko added a comment - Thats awesome Bart, thanks for getting to the bottom of that. I meant to respond but have been trying to get through the historical tickets as much as I can (600 tickets down so far!). There's a good chance BDS doesn't know the time is incorrect, it tries to authenticate with Mojang but the time difference causes secure comms to fail. A lot of apps have this problem but if it turns out its the same problem for the others I'll ask for if we can get it added to an FAQ of sorts. Thanks for the thanks

          I use docker image https://github.com/itzg/docker-minecraft-bedrock-server to run BDS on a virtual machine. I have solved the issue thanks to the suggestions implied in your comments above. Only after hours of staring at tcpdumps and changing dns settings in hosts files and resolv.conf files, @tested2 (Ryan Bearfield)'s comment: "It did work for like a minute then it stopped." made me think it could be a system time issue. And indeed, I noticed that the system time of my virtual machine was not synced with its host. After fixing this, the issue is resolved.

          Apparently, the Minecraft app responds with the erroneous error message "You need to authenticate to Microsoft services" when the system time of the Minecraft server to which it connects is not set correctly. A better error message would be: "Server time out of sync. Please notify the server administrator." or more generic and less helpful: "Server incorrectly configured. Please notify the administrator." I suppose that this could/should be raised as an issue/improvement for the app, not for BDS. 

          @Pandorda85 (Ryan Valizan): I think you must provide more details of the setup of your server if you want help to solve your issue, which could have a different cause. Also, please report your findings back to help the community especially after solving the issue.

          @IonicEcko (Ionic): Thank you for volunteering to drive the BDS issue board!

          Bart Schipper added a comment - I use docker image https://github.com/itzg/docker-minecraft-bedrock-server  to run BDS on a virtual machine. I have solved the issue thanks to the suggestions implied in your comments above. Only after hours of staring at tcpdumps and changing dns settings in hosts files and resolv.conf files, @tested2 (Ryan Bearfield)'s comment: "It did work for like a minute then it stopped." made me think it could be a system time issue. And indeed, I noticed that the system time of my virtual machine was not synced with its host. After fixing this, the issue is resolved. Apparently, the Minecraft app responds with the erroneous error message "You need to authenticate to Microsoft services" when the system time of the Minecraft server to which it connects is not set correctly. A better error message would be: "Server time out of sync. Please notify the server administrator." or more generic and less helpful: "Server incorrectly configured. Please notify the administrator." I suppose that this could/should be raised as an issue/improvement for the app, not for BDS.  @Pandorda85 (Ryan Valizan): I think you must provide more details of the setup of your server if you want help to solve your issue, which could have a different cause. Also, please report your findings back to help the community especially after solving the issue. @IonicEcko (Ionic): Thank you for volunteering to drive the BDS issue board!

          Hi Ionic, my server is publicly accessible. You are welcome to try connecting. Server Name: rt, Server Address: rt.je, Port: 19132

          Bart Schipper added a comment - Hi Ionic, my server is publicly accessible. You are welcome to try connecting. Server Name: rt, Server Address: rt.je, Port: 19132

          IonicEcko added a comment - - edited

          Hi Ryan,

          At the time, other Ryan had resolved the issue by reinstalling Windows, as such this report wasn't valid.

          If you're having the issue please provide as much information about your environment as possible. As there are thousands of BDS instances running with online-mode on its clear this issue isn't reliably reproducible so we need to include as much information as possible.

          I have BDS instances running on Windows 10, Windows Server 2019 and Ubuntu for testing and online-mode works for all 3 of them so at the moment it looks like this issue is environmental rather than a bug but I'm happy to keep working with you to prove otherwise.

          Edit: @Ryan B could you please try using a hard coded DNS such as Google DNS or Cloudflare (on both server and client). Also, if your server is publicly accessible I would be keen to try connecting to see if my account is affected if I try to connect.

          Ionic

          IonicEcko added a comment - - edited Hi Ryan, At the time, other Ryan had resolved the issue by reinstalling Windows, as such this report wasn't valid. If you're having the issue please provide as much information about your environment as possible. As there are thousands of BDS instances running with online-mode on its clear this issue isn't reliably reproducible so we need to include as much information as possible. I have BDS instances running on Windows 10, Windows Server 2019 and Ubuntu for testing and online-mode works for all 3 of them so  at the moment  it looks like this issue is environmental rather than a bug but I'm happy to keep working with you to prove otherwise. Edit: @Ryan B could you please try using a hard coded DNS such as Google DNS or Cloudflare (on both server and client). Also, if your server is publicly accessible I would be keen to try connecting to see if my account is affected if I try to connect. Ionic

          Ryan Valizan added a comment -

          @IonicEcko how can you suggest the issue be closed when people are still reporting having the issue?  Reinstalling windows should not be the fix to a problem that arises out of nowhere, even on a server with restricted use and controlled windows updates – as in is my case.  I have not had time yet to test an ubuntu server or establish a new windows virtual server to see if the problem persist. 

          Ryan Valizan added a comment - @IonicEcko how can you suggest the issue be closed when people are still reporting having the issue?  Reinstalling windows should not be the fix to a problem that arises out of nowhere, even on a server with restricted use and controlled windows updates – as in is my case.  I have not had time yet to test an ubuntu server or establish a new windows virtual server to see if the problem persist. 

            Unassigned Unassigned
            Moskus Moskus
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: