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

Conflict of server port and query port #514

Open
reven opened this issue Nov 25, 2022 · 0 comments
Open

Conflict of server port and query port #514

reven opened this issue Nov 25, 2022 · 0 comments

Comments

@reven
Copy link

reven commented Nov 25, 2022

I'm running a waterfall server in front of a couple of paper servers in a docker.

Setting the waterfall server's config.yml options

query_port: 25565
query_enabled: true

when the server port is also 25565 causes the server to fail on startup and initiates a mineos startup loop. As far as I know, there shouldn't be a conflict, as the java server is on TCP and the query protocol is on UDP (ref: https://wiki.vg/Query). On a vanilla server I think having them on the same port is pretty common.

Changing the query port to 25564 for example (and exposing that port instead) works as expected with no error.

I'm running git commit: bd2e4d3

This is the error output:

Uncaught Exception: RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 4294967295. Received -574000226
RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 4294967295. Received -574000226
    at new NodeError (internal/errors.js:322:7)
    at checkInt (internal/buffer.js:71:11)
    at writeU_Int32BE (internal/buffer.js:801:3)
    at Buffer.writeUInt32BE (internal/buffer.js:814:10)
    at module.exports.BufferCursor.writeUInt32BE (/usr/games/minecraft/node_modules/buffercursor/buffercursor.js:336:15)
    at Function.RequestPacket.write (/usr/games/minecraft/node_modules/mcquery/lib/requestpacket.js:82:8)
    at Query.send (/usr/games/minecraft/node_modules/mcquery/lib/index.js:345:27)
    at Query.full_stat (/usr/games/minecraft/node_modules/mcquery/lib/index.js:173:10)
    at /usr/games/minecraft/mineos.js:1739:13
    at gotChallengeResponse (/usr/games/minecraft/node_modules/mcquery/lib/index.js:126:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant