Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confusing error message: Battlefield control: master server communication failed #20495

Open
dpriskorn opened this issue Dec 2, 2022 · 10 comments

Comments

@dpriskorn
Copy link

dpriskorn commented Dec 2, 2022

Issue Summary

Unable to focus on gameplay because of message being repeated every second

DESCRIPTION
The error message keeps coming after starting the game every second.

Reproduction

STEPS TO REPRODUCE THE ISSUE

  1. tried upnp enabled on router and both clients

  2. created multiplayer game

  3. at once the error message starts appearing and beeping every second
    image

  4. tried https://www.reddit.com/r/openra/comments/9ey6m9/openra_direct_ip_problems/ forward tcp 1234 to the ip of the game host

  5. created a multiplayer game

  6. at once the error message starts appearing and beeping every second

Expected behavior

EXPECTED BEHAVIOR
either:

  • error that tells me what is wrong and what to do about it
    or
  • ability to turn of this kind of status updates which does not seem to matter and just disturbs gameplay

Screenshots / Screen recordings / Replays

$ openra-ra
Platform is Linux
Engine version is release-20210321
Using SDL 2 with OpenGL (Modern) renderer
Desktop resolution: 1366x768
No custom resolution provided, using desktop resolution
Using resolution: 1366x768
Using window scale 1.00
OpenGL renderer: NVA8
OpenGL version: 3.3 (Core Profile) Mesa 22.2.3
Using default sound device
Internal mods:
d2k: Dune 2000 (release-20210321)
ra: Red Alert (release-20210321)
modcontent: Mod Content Manager (release-20210321)
cnc: Tiberian Dawn (release-20210321)
External mods:
ra-release-20210321: Red Alert (release-20210321)
Loading mod: ra
Getting the external IP from NAT device failed: Data at the root level is invalid. Line 1, position 1.
System.Net.Sockets.SocketOptionName 0x17 is not supported at IP level
Platform is Linux
Engine version is release-20210321
AL lib: FreeContext: (0x55b4345b42f0) Deleting 32 Source(s)
$ Using SDL 2 with OpenGL (Modern) renderer
Desktop resolution: 1366x768
Using resolution: 1024x768
Using window scale 1.00
OpenGL renderer: NVA8
OpenGL version: 3.3 (Core Profile) Mesa 22.2.3
Using default sound device
Internal mods:
d2k: Dune 2000 (release-20210321)
ra: Red Alert (release-20210321)
modcontent: Mod Content Manager (release-20210321)
cnc: Tiberian Dawn (release-20210321)
External mods:
ra-release-20210321: Red Alert (release-20210321)
Loading mod: ra
Getting the external IP from NAT device failed: Data at the root level is invalid. Line 1, position 1.
System.Net.Sockets.SocketOptionName 0x17 is not supported at IP level
Platform is Linux
Engine version is release-20210321
AL lib: FreeContext: (0x556c5c616110) Deleting 32 Source(s)
Using SDL 2 with OpenGL (Modern) renderer
Desktop resolution: 1366x768
Using resolution: 1024x768
Using window scale 1.00
OpenGL renderer: NVA8
OpenGL version: 3.3 (Core Profile) Mesa 22.2.3
Using default sound device
Internal mods:
d2k: Dune 2000 (release-20210321)
ra: Red Alert (release-20210321)
modcontent: Mod Content Manager (release-20210321)
cnc: Tiberian Dawn (release-20210321)
External mods:
ra-release-20210321: Red Alert (release-20210321)
Loading mod: ra
System.Net.Sockets.SocketOptionName 0x17 is not supported at IP level
System.Net.Sockets.SocketOptionName 0x17 is not supported at IP level
System.Net.Sockets.SocketOptionName 0x17 is not supported at IP level

@dpriskorn dpriskorn added the Bug label Dec 2, 2022
@abcdefg30
Copy link
Member

There was a master server outage earlier this day. Does the problem still persist?

Regardless we shouldn't log this during gameplay.

@dpriskorn
Copy link
Author

dpriskorn commented Dec 2, 2022

Oh, This is appearing on a private LAN with no internet connection.

@dpriskorn
Copy link
Author

Is there any way to turn of the master server thing? E.g. Start with --no-master-server or somerhing?

@dragunoff
Copy link
Contributor

Is there any way to turn of the master server thing? E.g. Start with --no-master-server or somerhing?

Glancing at the code it looks like if the game is not advertised online then master server communication should not be going on. Do you have this checkbox on or off?
image

@dragunoff
Copy link
Contributor

dragunoff commented Dec 2, 2022

I was able to reproduce the bug:

  1. Turn off internet connection
  2. Start OpenRA
  3. Create a multiplayer server with "Advertise Online" turned ON

I doesn't happen if "Advertise Online" is OFF so I think printing the message is the correct behavior 🤔

@dpriskorn
Copy link
Author

Oh, that indeed sounds like sound logic to me. In that case I would like a more clear error message. E.g. "Publish online was selected at game creation. Cannot publish the game on the internet because we cannot reach the game list server, trying again in one second."

@dpriskorn dpriskorn changed the title annoying UI beep and error message: Battlefield control: master server communication failed confusing error message: Battlefield control: master server communication failed Dec 2, 2022
@Leo512bit
Copy link
Contributor

Leo512bit commented Dec 3, 2022

How about this message?

Master server communication failed. Failed to advertise online.

Also maybe don't have this message pop up in battle?

@dpriskorn
Copy link
Author

dpriskorn commented Dec 3, 2022

Also maybe don't have this message pop up in battle?

If they can't join during the battle anyway that sounds great

@Mailaender
Copy link
Member

There was a master server outage earlier this day.

I created https://status.openhv.net/ which also checks the master server.

@anvilvapre
Copy link
Contributor

Related source lines.

if (server.Settings.AdvertiseOnline)
UpdateMasterServer(server, gs.ToPOSTData(false));

catch (Exception ex)
{
Log.Write("server", ex.ToString());
lock (masterServerMessages)
masterServerMessages.Enqueue(Error);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants