Pocketmine-mp: Query does not always return data

Created on 12 Jul 2018  路  23Comments  路  Source: pmmp/PocketMine-MP

Issue description

For unknown reasons, there is often an error: "Failed to receive challenge.", but if I use the server based on Steadfast2, the server works well. I've tried many libraries and I get this error only with PM-MP.

Using library: https://github.com/xPaw/PHP-Minecraft-Query
I found the similar issue in this repository: https://github.com/xPaw/PHP-Minecraft-Query/issues/129

I use a dedicated server MC-16-V (OVH) and the site is on the same server as pocketmine.

OS and versions

Network Won't fix

All 23 comments

I think because its library has designed for Minecraft : Java Edition and PocketMine dont support it.

that's funny because it's designed to be compatible........

@zKoz210 if you can provide further reproducing information that would be great.

I can't give accurate information to reproduce the problem. Will any dumps be useful to you? This problem occurs intermittently, so it is extremely difficult to determine a specific sequence.

Try to get online several times in a row with

SimplexLand: sxland.ru:19132 (Steadfast2)

and with

PocketLife: pocketlife.ru:19132 (PM-MP)

and more than likely, with PocketLife you will get such an error.

that library's code is killing my brain cells... do you have any alternatives that also don't work?

it's no surprise the first library gives you errors... it tries to ping over TCP, so it's more likely you're getting a response from RCON than anything else...

@dktapps It is strange that PM-MP has it offline and another server is online when I have both RCON and Query enabled

Okay, but the second one doesn't work either.

as for the second library, pocketlife does not respond to queries at all, so please check that you actually have query enabled and that the IP address is not banned.

Hmm... But this library returns online perfectly.

https://github.com/pavel-grom/php-minecraft-pe-query

image
image

that's because that library does not use Query, it uses standard MCPE pings.

In that case, I don't know what to do, do you have any ideas?

Enable debug output in pocketmine.yml (in case RakLib is doing something it shouldn't) and add some debug in here to see if the server actually gets the packets: https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/network/query/QueryHandler.php#L77

I have the same problem with xPaw's library. When library outputs "Failed to receive challenge" debug output is empty.

I've been using xPaw's library for a while now and it works fine for me, here's an example:
https://api.nethergames.org/query.php?ip=mm.nethergames.org&port=19132
(Server running PMMP)

I'm using the library from around a year ago, not sure if the latest commit in his repository may change anything

@k3ithos so funny
image

@dktapps I'll try to check again with your changes during the day.

Here I get the answer, this is some nonsense

image

It works, I got an answer

image

@zKoz210 server froze and didn't respond to queries then, try again now :)

@Frago9876543210 The point is not receiving data, and the decision of problems of compatibility libraries PC and BE. I do not understand the reason why this is happening

I don't think anyone previously considered UDP reliability issues. I've had guys run tests and there is intermittent lacks of responses no matter what server you try to query, because UDP doesn't try to redeliver in case of packet loss.

This is plausibly (and highly likely) the real explanation, and there is no reason why PocketMine would be causing such a bug, so I'm going to close this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dktapps picture dktapps  路  3Comments

sergeysova picture sergeysova  路  3Comments

arfianadam picture arfianadam  路  3Comments

beetree picture beetree  路  3Comments

SuperAdam47 picture SuperAdam47  路  3Comments