webdisplays icon indicating copy to clipboard operation
webdisplays copied to clipboard

Server block - Query error

Open SmokePuddingEveryday opened this issue 4 years ago • 17 comments

Trying to use a server block on 1.12.2 WebDisplays. Upon trying to use most commands (ls, quota, url), I get a 'Query Error, try "reconnect".' message. Am I doing something wrong here?

https://i.imgur.com/q7DgqF3.png

SmokePuddingEveryday avatar Jul 26 '20 23:07 SmokePuddingEveryday

@montoyo

ItsK1tty avatar Jul 26 '20 23:07 ItsK1tty

Interesting; will most definitely need your logs. If you don't know where to find them, check this out. Also try the reconnect command as suggested and screenshot the output here.

montoyo avatar Jul 27 '20 00:07 montoyo

oh, you actually answered! I thought, this repo is no longer maintained and I'm the only active person left

ItsK1tty avatar Jul 27 '20 00:07 ItsK1tty

Yeah. Since Nic got MCEF working on Mac I figured that maybe MCEF and WebDisplays do have a future. Guess we'll see. Also that issue is interesting.

montoyo avatar Jul 27 '20 00:07 montoyo

WebDisplays Version 1.1 (Minecraft 1.12.2) Forge Server 14.23.5.2838

How to reproduce: Place down Server block, right click, and attempt to use any of the commands "ls", "quota", and "url"

Video: https://streamable.com/0in8zm Server logs: https://hastebin.com/oqetayesot.md

The issue does not occur in singleplayer. Let me know if I'm missing any info.

SmokePuddingEveryday avatar Jul 28 '20 22:07 SmokePuddingEveryday

Thank you. For some reason I don't see any WebDisplays/Miniserv-related information in the server logs, which is very weird... could you also send us the WebDisplays config of the server?

Also, are you familiar with the concept of ports? MiniServ (= the server block) uses an extra port, 25566 by default. If another process is using this port or if the server's firewall is blocking it, the server block will not work.

montoyo avatar Jul 28 '20 23:07 montoyo

why wouldn't WD check if its working port is already binded and use some other one, say, 25567?

ItsK1tty avatar Jul 29 '20 00:07 ItsK1tty

Because I forgot or I was lazy, can't remember. But yeah, that's something that should be added. Solves only part of the problem though: it will make sure the port is unbound but I don't think there's a way to check if the port is blocked by the firewall.

montoyo avatar Jul 29 '20 00:07 montoyo

Also, are you familiar with the concept of ports? MiniServ (= the server block) uses an extra port, 25566 by default. If another process is using this port or if the server's firewall is blocking it, the server block will not work.

https://hastebin.com/wemonojoje.php

I'm familiar with ports, however, I'm hosting the server on server.pro, so I'm not sure if I'd be able to access the firewall, which is probably the problem.

SmokePuddingEveryday avatar Jul 29 '20 01:07 SmokePuddingEveryday

try contacting their support

ItsK1tty avatar Jul 30 '20 22:07 ItsK1tty

Thanks for sending the config. So yeah, miniServ is enabled on port 25566. Before contacting the support, you could try to change the miniservPort property in the config file on the server and all clients

montoyo avatar Jul 30 '20 23:07 montoyo

I don't think that would go, though: if I was an admin, I would configure the firewall that way, so only 25565 will stay open (because why would the normal user need something else, and also because of security reasons), so whatever they will try to change it to, it will still be closed. That's just a theory, though..

ItsK1tty avatar Jul 31 '20 00:07 ItsK1tty

Maybe, maybe not... I think rcon is using 25566 by default and that's something a commercial server would have enabled...

In any case, its worth trying

montoyo avatar Jul 31 '20 00:07 montoyo

probably.. ~~also, montoyo, take a look at #82, that issue might be also "interesting"~~

ItsK1tty avatar Jul 31 '20 00:07 ItsK1tty

Nah. This is most certainly due to mod incompatibility. Also the guy kept mentioning me for no goddamn reason.

montoyo avatar Jul 31 '20 01:07 montoyo

Thanks for the suggestion. I'll try changing the port next time I'm the only one on the server.

SmokePuddingEveryday avatar Jul 31 '20 03:07 SmokePuddingEveryday

Tried using some different ports, still seems to produce the same thing.

SmokePuddingEveryday avatar Aug 04 '20 00:08 SmokePuddingEveryday